@import url("../../../shared-components/assets/prototype-components.css?v=1.1.4");

:root {
  --primary: #ff4d6d;
  --primary-light: #ff6b8a;
  --primary-soft: #ffe4e9;
  --purple: #7c5cfc;
  --purple-soft: #f0edff;
  --gold: #ffb930;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b6b80;
  --weak: #a0a0b0;
  --line: #f0ebe8;
  --shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-primary: 0 4px 16px rgba(255, 77, 109, 0.3);
  --shadow-secondary: 0 4px 16px rgba(124, 92, 252, 0.3);
  --grad-primary: linear-gradient(135deg, #ff4d6d, #ff6b9d);
  --grad-tech: linear-gradient(135deg, #7c5cfc, #9b7fff);
  --safe-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #f0eeef;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:active,
a:active { transform: scale(0.96); }

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff4f7 0%, #fbf8fb 42%, var(--bg) 100%);
}

.nav {
  height: 62px;
  display: grid;
  grid-template-columns: 72px 1fr 108px;
  align-items: center;
  padding: 0 14px 0 16px;
}

.nav-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

prototype-switch {
  min-width: 0;
}

.nav-switch {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.nav-switch a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-switch a.active {
  color: var(--text);
}

.nav-switch a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
}

.back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.scroll {
  position: absolute;
  inset: 108px 0 82px;
  overflow-y: auto;
  padding: 0 20px 24px;
  scrollbar-width: none;
}

.sub-page .scroll {
  inset-bottom: var(--safe-bottom);
  padding-bottom: calc(var(--safe-bottom) + 18px);
}

.phone.has-floating-notice .scroll {
  inset-top: var(--notice-scroll-top, 306px);
}

.scroll::-webkit-scrollbar,
.h-scroll::-webkit-scrollbar { display: none; }

.bottom-tabs {
  grid-template-columns: repeat(5, 1fr);
  padding-left: 10px;
  padding-right: 10px;
}

.tab { font-size: 11px; }

.tab-icon {
  position: relative;
  width: 29px;
  height: 29px;
  font-size: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.section-head[id] {
  scroll-margin-top: 58px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.section-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-card,
.card,
.person-card,
.record-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  padding: 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 92, 252, 0.16), transparent 66px),
    linear-gradient(135deg, #fff, #fff4f7);
}

.intro-card {
  height: 172px;
  display: grid;
  align-content: space-between;
}

.intro-image-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.intro-image-card .hero-setting {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}

.intro-card .hero-title {
  align-items: flex-start;
}

.intro-card .hero-title h1 {
  max-width: 196px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.hero-title span,
.hero-setting {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.hero-setting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-setting .ri {
  font-size: 14px;
  line-height: 1;
}

.hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.h-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.status-card {
  flex: 0 0 158px;
  min-height: 198px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.status-card.cover {
  position: relative;
  flex-basis: 154px;
  min-height: 194px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.status-card.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.02) 16%, rgba(7, 11, 21, 0.25) 56%, rgba(7, 11, 21, 0.84) 100%);
}

.status-card.cover .status-body {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  padding: 10px 10px 10px;
  color: #fff;
}

.status-card .photo {
  height: 104px;
  background-position: center;
  background-size: cover;
}

.status-body {
  padding: 10px 11px 12px;
}

.status-card.cover .status-body strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.15;
  flex-wrap: wrap;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-inline.success { background: #dcfce7; color: #15803d; }
.status-inline.warning { background: #fef3c7; color: #b45309; }
.status-inline.purple { background: var(--purple-soft); color: var(--purple); }
.status-inline.blue { background: #dbeafe; color: #1d4ed8; }

.status-body strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.status-body small {
  display: block;
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.tag.purple { background: var(--purple-soft); color: var(--purple); }
.tag.success { background: #dcfce7; color: #15803d; }
.tag.warning { background: #fef3c7; color: #b45309; }
.tag.blue { background: #dbeafe; color: #1d4ed8; }
.tag.gray { background: #f2f2f5; color: var(--muted); }

.tag.ink { background: #e8ecff; color: #3143b8; }

.person-list,
.record-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.filter-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(16px);
}

.filter-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.filter-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.person-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-xs);
}

.person-main { min-width: 0; }

.person-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.person-top strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online,
.offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.offline { color: var(--weak); }

.online::before,
.offline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.person-main p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-btn {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.mini-btn.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.mini-btn.disabled {
  background: #f1f0f4;
  color: var(--weak);
  pointer-events: none;
}

.full-row { grid-template-columns: 1fr; }

.notice-stack {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.notice-float {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 14px 14px 14px 13px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.notice-float.hidden {
  display: none;
}

.notice-float.urgent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 244, 0.98)),
    linear-gradient(135deg, rgba(255, 77, 109, 0.05), rgba(124, 92, 252, 0.04));
  border: 1px solid rgba(255, 77, 109, 0.14);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.16);
}

.notice-float.reminder {
  min-height: 78px;
  background: linear-gradient(135deg, rgba(228, 244, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.notice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.notice-avatar.reminder {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #2563eb;
  font-size: 22px;
}

.notice-copy {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.notice-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notice-kicker.blue {
  color: #2563eb;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.notice-kicker.blue .notice-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.notice-float strong {
  display: block;
}

.notice-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-float small {
  display: block;
}

.notice-body {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-actions {
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
  min-width: 78px;
  justify-items: stretch;
}

.pill-action {
  min-height: 36px;
  min-width: 70px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.pill-action.secondary {
  background: #f2f2f5;
  color: var(--muted);
  box-shadow: none;
}

.pill-action.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.22);
}

.pill-action.ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  box-shadow: var(--shadow-xs);
}

.switch-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(16px);
}

.switch-tabs a,
.switch-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.switch-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.record-card {
  padding: 16px;
}

.record-top {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}

.record-top .avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.record-top strong,
.record-top small {
  display: block;
}

.record-top strong { font-size: 15px; }
.record-top small { margin-top: 3px; color: var(--weak); font-size: 12px; }

.record-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.time-option-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.time-option-list span,
.time-option-list button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--line);
}

.time-option-list button.selected {
  background: #fff4f7;
  color: var(--primary);
  border-color: transparent;
}

.record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.record-actions.room-action {
  display: flex;
  justify-content: flex-end;
}

.record-actions.room-action .mini-btn {
  min-width: 104px;
  padding: 0 18px;
}

.call-page {
  background: radial-gradient(circle at 50% 22%, rgba(255, 77, 109, 0.28), transparent 142px), #17182b;
  color: #fff;
}

.call-page .status-bar,
.call-page .nav,
.call-page .phone-indicators { color: #fff; }

.call-page .battery { background: rgba(255,255,255,0.24); }
.call-page .signal i { background: #fff; }

.call-body {
  position: absolute;
  inset: 108px 0 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 20px 24px calc(var(--safe-bottom) + 22px);
}

.voice-center {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.voice-avatar {
  width: 138px;
  height: 138px;
  border: 5px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.call-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.call-meta {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.timer {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-weight: 700;
}

.call-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.control {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
}

.control span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 24px;
}

.control.end span {
  background: var(--error);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.36);
}

.video-stage {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26,26,46,0.18), rgba(26,26,46,0.68)),
    url("../../../assets/avatar-wanqing-blue-shirt.png");
  background-position: center;
  background-size: cover;
}

.video-page .status-bar,
.video-page .nav,
.video-page .call-body {
  position: relative;
  z-index: 2;
}

.video-mini {
  position: absolute;
  right: 18px;
  top: 128px;
  z-index: 3;
  width: 98px;
  height: 132px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background-image: url("../../../assets/avatar-kuangnani-blue-blazer.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.video-info {
  align-self: end;
  margin-bottom: 28px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.mode-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

.mode-grid { grid-template-columns: 1fr 1fr; }

.choice-card,
.time-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.choice-card strong,
.time-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.choice-card small,
.time-card small {
  color: var(--muted);
  font-size: 12px;
}

.choice-card.selected,
.time-card.selected {
  border-color: transparent;
  background: #fff1f4;
  box-shadow: var(--shadow-primary);
}

.time-slot {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.time-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-slot-head strong {
  font-size: 15px;
}

.slot-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8f6f8;
  color: var(--muted);
  font-size: 18px;
}

.time-fields {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 8px;
}

.time-fields button {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 13px;
  background: #faf9fb;
  text-align: left;
}

.time-fields small {
  color: var(--weak);
  font-size: 11px;
}

.time-fields strong {
  font-size: 12px;
  white-space: nowrap;
}

.add-time {
  min-height: 44px;
  border: 1px dashed #ddd7e8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--weak);
  font-size: 13px;
  font-weight: 700;
}

.add-time.disabled {
  background: #f7f6f8;
}

.bottom-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  padding: 12px 24px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,255,255,0.56), #fff 36%);
  z-index: 10;
}

.ended-card {
  margin-top: 26px;
  padding: 30px 20px;
  text-align: center;
}

.result-page .ended-card {
  margin-top: 20px;
  padding: 38px 20px 36px;
}

.ended-card .voice-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border: 4px solid #fff;
}

.result-page .ended-card .voice-avatar {
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}

.ended-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ended-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-item {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 21px;
}

.settings-copy strong,
.settings-copy small {
  display: block;
}

.settings-copy strong { font-size: 15px; }
.settings-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.toggle {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  padding: 3px;
  background: var(--grad-primary);
  transition: background 0.16s ease;
}

.toggle::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transform: translateX(22px);
  transition: transform 0.16s ease;
}

.toggle.off {
  background: #d8d3d6;
}

.toggle.off::before {
  transform: translateX(0);
}

.dialog-mask.show { display: block; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 106px;
  z-index: 40;
  min-width: 166px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.onboarding-scroll {
  inset: 108px 0 0;
  padding: 0 20px calc(var(--safe-bottom) + 108px);
}

.page-title {
  margin: 2px 0 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
}

.page-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.progress-rail {
  height: 8px;
  margin: 10px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ebee;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad-primary);
}

.form-card {
  display: grid;
  gap: 4px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.field-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child { border-bottom: 0; }

.field-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 18px;
}

.field-row strong {
  display: block;
  font-size: 15px;
}

.field-row small {
  display: block;
  margin-top: 3px;
  color: var(--weak);
  font-size: 12px;
}

.field-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.field-value.missing { color: var(--primary); }

.completion-hero {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(124, 92, 252, 0.18), transparent 78px),
    linear-gradient(135deg, #fff, #fff5f7);
  box-shadow: var(--shadow-sm);
}

.completion-hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
}

.completion-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.unlock-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.unlock-step {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.unlock-step.done { color: #15803d; background: #dcfce7; }
.unlock-step.current { color: var(--primary); background: #fff4f7; }

.task-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.task-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.task-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 22px;
}

.task-card.current .task-icon {
  background: #fff4f7;
  color: var(--primary);
}

.task-card strong,
.auth-card strong {
  display: block;
  font-size: 16px;
}

.task-card small,
.auth-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.fixed-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 14px 24px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,255,255,0.32), #fff 34%);
}

.primary-action {
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-primary);
}

.primary-action.disabled,
.primary-action:disabled {
  background: #e6e6eb;
  color: var(--weak);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.secondary-action {
  min-height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #f2f2f5;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.secondary-action.text-weak {
  min-height: 36px;
  background: transparent;
  color: var(--weak);
  font-size: 14px;
  font-weight: 700;
}

.auth-list {
  display: grid;
  gap: 12px;
}

.auth-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.auth-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 22px;
}

.auth-card.optional .auth-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.done { background: #f2f2f5; color: var(--muted); }
.status-pill.wait { background: #fef3c7; color: #b45309; }
.status-pill.skip { background: #f2f2f5; color: var(--muted); }

.avatar-upload {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.avatar-preview {
  width: 116px;
  height: 116px;
  border: 4px solid #fff;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
}

.intro-box {
  min-height: 132px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfafb;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.reminder-card {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 185, 48, 0.18), transparent 70px),
    linear-gradient(135deg, #fff, #fff5f7);
  box-shadow: var(--shadow-sm);
}

.blind-date-reminder {
  margin-bottom: 18px;
}

.reminder-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.reminder-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reminder-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.inline-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.recommend-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.recommend-photo {
  height: 310px;
  background-position: center;
  background-size: cover;
}

.recommend-body {
  padding: 16px;
}

.recommend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recommend-head h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.recommend-head p,
.recommend-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 82px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 20px;
  pointer-events: none;
}

.round-action {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 24px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.round-action.like {
  background: var(--grad-primary);
  color: #fff;
}

.round-action.super {
  background: var(--grad-tech);
  color: #fff;
}

.dialog-mask {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(26, 26, 46, 0.42);
}

.dialog-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: calc(var(--safe-bottom) + 16px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.dialog-panel h3 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.dialog-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

#incompleteDialog .dialog-panel {
  left: 0;
  right: 0;
  bottom: 0;
  gap: 16px;
  padding: 32px 30px calc(var(--safe-bottom) + 28px);
  border-radius: 28px 28px 0 0;
}

#incompleteDialog .dialog-panel h3 {
  font-size: 21px;
  line-height: 1.28;
}

#incompleteDialog .dialog-panel p {
  font-size: 15px;
  line-height: 1.6;
}

.empty-state {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.empty-illustration {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 42px;
  box-shadow: var(--shadow-sm);
}

.empty-state h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
}

.empty-state p {
  max-width: 272px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.heartbeat-empty-card {
  min-height: 504px;
  padding: 28px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.heartbeat-empty-card .primary-action {
  width: 176px;
  margin-top: 4px;
}

.status-bar {
  height: 46px;
  padding: 14px 26px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.phone-indicators {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  color: var(--text);
}

.signal {
  display: inline-flex;
  gap: 2px;
  align-items: end;
}

.signal i {
  width: 3px;
  border-radius: 2px;
  background: #202234;
}

.signal i:nth-child(1) { height: 6px; }
.signal i:nth-child(2) { height: 9px; }
.signal i:nth-child(3) { height: 12px; }
.signal i:nth-child(4) { height: 15px; }

.battery {
  min-width: 28px;
  padding: 1px 5px;
  border-radius: 7px;
  background: #2c2f3b;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.launch-phone {
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 228, 233, 0.95), transparent 118px),
    linear-gradient(180deg, #fff7f8 0%, #faf7f5 58%, #fff 100%);
}

.launch-wrap {
  position: absolute;
  inset: 46px 0 0;
  padding: 0 28px calc(var(--safe-bottom) + 22px);
  display: grid;
  grid-template-rows: 62px 1fr auto;
}

.launch-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.brand-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  transform: translateY(-18px);
}

.brand-logo {
  width: 94px;
  height: 94px;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.brand-name {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-slogan {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.launch-actions {
  display: grid;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.secondary-btn {
  width: 100%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.ghost-btn {
  min-height: 44px;
  color: var(--weak);
  font-weight: 500;
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agreement-row a {
  color: var(--primary);
}

.check-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid #d8d3d2;
  background: #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.agreement-row.active .check-dot,
.check-dot.active {
  border-color: var(--primary);
  background: var(--primary);
}

.sheet-mask {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(26, 26, 46, 0.34);
  z-index: 30;
}

.sheet-mask.show,
.show-sheet .sheet-mask {
  display: block;
}

.phone-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  padding: 28px 30px calc(var(--safe-bottom) + 24px);
  box-shadow: var(--shadow-lg);
}

.sheet-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.sheet-mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.sheet-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.sheet-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sheet-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--weak);
  font-size: 22px;
}

.phone-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #faf7f5;
}

.masked-phone,
.phone-note {
  display: block;
}

.masked-phone {
  font-size: 20px;
  font-weight: 800;
}

.phone-note {
  margin-top: 5px;
  color: var(--weak);
  font-size: 12px;
}

.phone-sheet .primary-btn {
  min-height: 60px;
  font-size: 19px;
  box-shadow: 0 10px 22px rgba(255, 77, 109, 0.24);
}

.phone-sheet .ghost-btn {
  width: auto;
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 8px;
  color: var(--weak);
  font-size: 18px;
  font-weight: 700;
}

.photo {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #f3f0ef;
  background-position: center;
  background-size: cover;
}

.portrait-male { background-image: url("../../../assets/avatar-kuangnani-blue-blazer.png"); }
.portrait-hoodie { background-image: url("../../../assets/avatar-qingfeng-gray-shirt.png"); }
.portrait-sakura { background-image: url("../../../assets/avatar-yuzhu-short-hair.png"); }
.portrait-kangnaixiang { background-image: url("../../../assets/avatar-kangnaixiang-beach.png"); }
.portrait-wanqing { background-image: url("../../../assets/avatar-wanqing-blue-shirt.png"); }
.portrait-default { background-image: url("../../../assets/avatar-anyi-cream-shirt.png"); }

.onboarding-phone {
  background: #fff;
}

.onboarding-phone .onboarding-scroll {
  position: absolute;
  inset: 108px 0 92px;
  overflow-y: auto;
  padding: 0 28px 30px;
  scrollbar-width: none;
}

.onboarding-phone .onboarding-scroll::-webkit-scrollbar {
  display: none;
}

.step-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 16px 28px 4px;
}

.step-bars.five {
  grid-template-columns: repeat(5, 1fr);
}

.step-bars i {
  height: 7px;
  border-radius: 999px;
  background: #e5e1e4;
}

.step-bars i.done {
  background: rgba(255, 77, 109, 0.34);
}

.step-bars i.active {
  background: var(--grad-primary);
}

.onboarding-title {
  margin: 28px 0 8px;
  color: #25263d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.onboarding-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.choice-stack {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.choice-pill,
.input-pill,
.picker-pill {
  min-height: 58px;
  border: 1px solid #f1edf0;
  border-radius: 999px;
  background: #fff;
  color: var(--weak);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.choice-pill.selected {
  border-color: transparent;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.gender-card {
  min-height: 150px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  text-align: left;
}

.gender-card .gender-illus {
  width: 104px;
  height: 116px;
  border-radius: 18px;
}

.gender-card strong {
  display: block;
  font-size: 24px;
}

.gender-card span span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.gender-card.selected {
  border-color: transparent;
  background: #fff1f4;
  box-shadow: var(--shadow-primary);
}

.wheel-picker {
  margin-top: 84px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: var(--weak);
  font-size: 20px;
}

.wheel-picker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  height: 54px;
  border-radius: 999px;
  background: #f6f5f7;
}

.wheel-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.wheel-col strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.location-box {
  margin-top: 84px;
  display: grid;
  gap: 16px;
}

.picker-pill {
  justify-content: space-between;
  padding: 0 24px;
  color: var(--text);
  background: #f7f6f8;
  border: 0;
}

.location-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.input-pill {
  justify-content: flex-start;
  padding: 0 24px;
  margin-top: 84px;
  background: #f7f6f8;
  border: 0;
}

.input-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.bottom-cta.single {
  grid-template-columns: 1fr;
}

.onboarding-phone .bottom-cta {
  height: 92px;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 12px 28px var(--safe-bottom);
}

.onboarding-phone .bottom-cta.single {
  grid-template-columns: 1fr;
}

.completion-flow-page {
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 92, 252, 0.14), transparent 150px),
    linear-gradient(180deg, #f7f9ff 0%, #fff 38%, #fff 100%);
}

.completion-flow-page .nav {
  height: 64px;
}

.completion-flow-scroll {
  inset: 108px 0 86px;
  padding: 0 22px 28px;
}

.completion-flow-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: 0;
}

.completion-flow-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.completion-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.completion-step {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  color: var(--weak);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.completion-step .ri {
  font-size: 17px;
}

.completion-step.active {
  position: relative;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.completion-step.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--primary);
  transform: translateX(-50%) rotate(45deg);
}

.completion-step.done {
  color: var(--muted);
}

.completion-step.locked {
  cursor: default;
  opacity: 0.56;
}

.completion-progress {
  position: relative;
  height: 14px;
  margin: 12px 2px 24px;
  display: flex;
  align-items: center;
}

.completion-progress::before,
.completion-progress-fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 999px;
  background: #edf0f5;
}

.completion-progress-fill {
  right: auto;
  width: 10%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.24s ease;
}

.completion-progress-dot {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e3e6ee;
  box-shadow: var(--shadow-xs);
  transform: translate(-50%, -50%);
}

.completion-progress-dot.one { left: 10%; }
.completion-progress-dot.two { left: 50%; }
.completion-progress-dot.three { left: 90%; }

.completion-flow-page[data-step="0"] .completion-progress-dot.one,
.completion-flow-page[data-step="1"] .completion-progress-dot.one,
.completion-flow-page[data-step="1"] .completion-progress-dot.two,
.completion-flow-page[data-step="2"] .completion-progress-dot {
  background: var(--primary);
}

.completion-panel {
  display: none;
}

.completion-panel.active {
  display: block;
}

.completion-section-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.completion-section-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.completion-section-title span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.completion-field-list {
  display: grid;
  gap: 2px;
}

.completion-field-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 116px) minmax(0, 1fr) 20px;
  gap: 8px;
  align-items: center;
  color: var(--text);
  text-align: left;
}

.completion-field-row span {
  font-size: 16px;
  font-weight: 600;
}

.completion-field-row strong {
  min-width: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.completion-field-row .ri {
  color: var(--weak);
  font-size: 20px;
}

.completion-auth-list {
  display: grid;
  gap: 14px;
}

.completion-auth-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f8;
}

.completion-auth-card > .ri {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 30px;
}

.completion-auth-card strong,
.completion-auth-card small {
  display: block;
}

.completion-auth-card strong {
  font-size: 16px;
}

.completion-auth-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.completion-auth-card a,
.completion-auth-card button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-tech);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.completion-auth-card.optional a,
.completion-auth-card.optional button {
  background: var(--grad-tech);
  color: #fff;
  box-shadow: none;
}

.completion-auth-card.reviewing a,
.completion-auth-card.reviewing button {
  background: #fef3c7;
  color: #b45309;
  box-shadow: none;
}

.completion-auth-card.done a,
.completion-auth-card.done button {
  background: #f2f2f5;
  color: var(--muted);
  box-shadow: none;
}

.completion-auth-card.failed a,
.completion-auth-card.failed button {
  background: var(--grad-tech);
  color: #fff;
  box-shadow: none;
}

.completion-auth-error {
  margin: -6px 4px 2px 62px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.completion-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.avatar-intro-area {
  display: grid;
  gap: 18px;
}

.avatar-upload-box {
  width: 188px;
  height: 188px;
  justify-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff4f7, #f0edff);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.avatar-upload-box .ri {
  color: var(--primary);
  font-size: 42px;
}

.avatar-upload-box strong,
.avatar-upload-box small {
  display: block;
}

.avatar-upload-box strong {
  font-size: 16px;
}

.avatar-upload-box small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.avatar-upload-box.uploaded {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.18), var(--shadow-sm);
}

.avatar-upload-box.uploaded .ri {
  color: var(--primary);
}

.avatar-photo-preview {
  width: 92px;
  height: 92px;
  position: relative;
  display: block;
  border-radius: 50%;
  background: #f2f2f5 center / cover no-repeat;
  box-shadow: 0 12px 26px rgba(26, 26, 46, 0.14);
}

.avatar-photo-preview em {
  min-width: 68px;
  min-height: 24px;
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f2f5;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(26, 26, 46, 0.12);
}

.avatar-upload-box.uploaded.success {
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.16), var(--shadow-sm);
}

.avatar-upload-box.uploaded.success .ri,
.avatar-upload-box.uploaded.success .avatar-photo-preview em {
  color: #15803d;
}

.avatar-upload-box.uploaded.success .avatar-photo-preview em {
  background: #dcfce7;
}

.avatar-upload-box.uploaded.failed {
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.16), var(--shadow-sm);
}

.avatar-upload-box.uploaded.failed .ri,
.avatar-upload-box.uploaded.failed .avatar-photo-preview em {
  color: #e11d48;
}

.avatar-upload-box.uploaded.failed .avatar-photo-preview em {
  background: #ffe4e6;
}

.avatar-upload-box.uploaded.reviewing {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18), var(--shadow-sm);
}

.avatar-upload-box.uploaded.reviewing .avatar-photo-preview em {
  background: #fef3c7;
  color: #b45309;
}

.intro-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.intro-editor-head strong {
  font-size: 18px;
}

.intro-editor-head span {
  color: var(--weak);
  font-size: 14px;
}

.intro-editor textarea {
  width: 100%;
  height: 154px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 16px;
  border-radius: 16px;
  background: #f7f7f8;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.avatar-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-rules span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  box-shadow: var(--shadow-xs);
}

.circle-back {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #ddd7d7;
  display: grid;
  place-items: center;
  color: var(--weak);
  font-size: 24px;
  background: #fff;
}

/* 0.6 original-page restricted states */
.heart-nav {
  height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 18px 0 22px;
}

.heart-switch {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-size: 19px;
  font-weight: 700;
}

.heart-switch a,
.heart-switch button {
  position: relative;
  min-width: max-content;
  padding: 16px 0 18px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.heart-switch .active {
  color: var(--primary);
}

.heart-switch .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--primary);
}

.heartbeat-page {
  background: linear-gradient(180deg, #ecefff 0%, #f5f7ff 42%, #fbfbff 100%);
}

.heartbeat-status {
  padding-right: 24px;
}

.heartbeat-status .status-time {
  font-size: 18px;
}

.heartbeat-indicators {
  gap: 7px;
}

.heartbeat-indicators > .ri {
  font-size: 20px;
  color: #11131f;
}

.network-speed {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  color: var(--text);
}

.network-speed strong {
  font-size: 11px;
  font-weight: 700;
}

.network-speed small {
  font-size: 10px;
  font-weight: 700;
}

.heartbeat-scroll,
.recommend-scroll {
  inset: 120px 0 82px;
}

.heartbeat-scroll {
  padding: 0 20px 26px;
}

.recommend-scroll {
  padding: 0 20px 118px;
}

.restrict-reminder {
  margin-bottom: 14px;
}

.recommend-card-shell {
  touch-action: pan-y;
  will-change: transform;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.recommend-actions {
  left: 0;
  right: 0;
  bottom: 82px;
  height: 92px;
  display: grid;
  grid-template-columns: 1fr 1.46fr 1fr;
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  padding: 10px 24px var(--safe-bottom);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 16%,
    rgba(255, 255, 255, 0.68) 30%,
    rgba(255, 255, 255, 1) 42%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
}

.recommend-actions .round-action {
  width: auto;
  height: auto;
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  box-shadow: none;
  pointer-events: auto;
}

.recommend-actions .round-action strong {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}

.recommend-actions .round-action.skip strong {
  color: var(--muted);
}

.recommend-actions .round-action.like strong {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.recommend-actions .round-action.super strong {
  width: 132px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--grad-tech);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-secondary);
}

.recommend-actions .round-action.super strong span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.recommend-card-shell.is-dragging {
  transition: none;
}

.recommend-card-shell.is-flying-left,
.recommend-card-shell.is-flying-right {
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.recommend-card-shell.is-super-liked {
  transform: translateY(-18px) scale(0.96);
  opacity: 0.24;
  transition: transform 0.38s ease, opacity 0.38s ease;
}

.detail-photo {
  height: 420px;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.profile-head {
  margin: -48px 14px 14px;
  position: relative;
  z-index: 2;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
}

.vip,
.uid,
.gender-female,
.gender-male {
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.vip {
  background: #fff3cc;
  color: #8a5a00;
}

.uid {
  color: var(--muted);
  background: #f3f1f4;
}

.gender-female {
  color: var(--primary);
  background: var(--primary-soft);
}

.gender-male {
  color: #3b82f6;
  background: #eaf2ff;
}

.quick-info {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.block-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.intro {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.pink-link {
  display: inline;
  min-height: 0;
  margin-left: 4px;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.chips > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7f4f4;
  color: var(--text);
  font-size: 13px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.cert-grid > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
}

.cert-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 20px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-row .thumb {
  height: 116px;
  border-radius: 16px;
}

.heart-stats {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  align-items: center;
  margin: 0 -20px 12px;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, #eef1ff 0%, rgba(245, 247, 255, 0.96) 100%);
  text-align: center;
}

.heart-stats-two {
  grid-template-columns: 92px 1px 92px;
  justify-content: center;
  column-gap: 30px;
}

.heart-stats-three {
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
}

.heart-stats .num {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}

.heart-stats > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.heart-stats > div > span:not(.num) {
  font-size: 14px;
  font-weight: 400;
}

.divider {
  height: 50px;
  background: #dad5d0;
}

.heart-list-body {
  padding-top: 2px;
  padding-bottom: 22px;
}

.heart-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.heart-card-grid-single {
  grid-template-columns: 168px;
}

.liked-photo-card {
  display: block;
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.liked-photo-card::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  min-height: 42px;
  padding: 9px 12px 10px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(122, 116, 128, 0.62), rgba(122, 116, 128, 0.32));
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(26, 26, 46, 0.28);
}

.heart-card-grid .liked-photo-card {
  width: 168px;
  height: 168px;
}

.visit-section + .visit-section {
  margin-top: 24px;
}

.visit-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.visit-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
}

.messages-page {
  background: linear-gradient(180deg, #f1f7ff 0%, #fbf9f8 42%, var(--bg) 100%);
}

.messages-scroll {
  padding-top: 4px;
}

.thread-list {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.thread-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(240, 235, 232, 0.9);
  text-align: left;
}

.thread-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
}

.thread-main {
  min-width: 0;
}

.thread-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.thread-top strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.thread-tag {
  height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.thread-tag.secondary {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.thread-preview {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.thread-time {
  color: var(--weak);
  font-size: 11px;
}

.thread-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.system-thread-icon {
  display: grid;
  place-items: center;
  background: var(--grad-tech);
  color: #fff;
  font-size: 22px;
}

/* Sync legacy handwritten navs with prototype-shared-components v1.1.4. */
.nav.prototype-normalized-nav,
.prototype-top-nav {
  height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  column-gap: 12px;
  align-items: center;
  padding: 0 14px 0 16px;
}

.nav.prototype-normalized-nav.has-back,
.prototype-top-nav.has-back {
  grid-template-columns: 28px minmax(0, 1fr) 108px;
  column-gap: 6px;
  padding-left: 20px;
}

.nav.prototype-normalized-nav.no-back > span:first-child:empty {
  display: none;
}

.nav.prototype-normalized-nav.no-back > .nav-title,
.nav.prototype-normalized-nav.no-back > .home-switch,
.nav.prototype-normalized-nav.no-back > .heart-switch,
.nav.prototype-normalized-nav.no-back > .edit-switch,
.nav.prototype-normalized-nav.no-back > .top-switch {
  grid-column: 1;
  justify-self: start;
}

.nav.prototype-normalized-nav.no-back > mp-capsule {
  grid-column: 2;
}

.nav.prototype-normalized-nav.has-back > .back {
  grid-column: 1;
  justify-self: start;
  width: 28px;
  height: 44px;
}

.nav.prototype-normalized-nav.has-back > .nav-title,
.nav.prototype-normalized-nav.has-back > .home-switch,
.nav.prototype-normalized-nav.has-back > .heart-switch,
.nav.prototype-normalized-nav.has-back > .edit-switch,
.nav.prototype-normalized-nav.has-back > .chat-nav-title,
.nav.prototype-normalized-nav.has-back > .top-switch {
  grid-column: 2;
  justify-self: start;
}

.nav.prototype-normalized-nav.has-back > mp-capsule {
  grid-column: 3;
}

.nav.prototype-normalized-nav .nav-title,
.prototype-top-nav .nav-title {
  width: 100%;
  overflow: hidden;
  justify-self: start;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heartbeat-page .heart-nav.prototype-normalized-nav {
  height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 18px 0 22px;
}

.heartbeat-page .heart-switch {
  gap: 34px;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
}

.heartbeat-page .heart-switch a,
.heartbeat-page .heart-switch button {
  position: relative;
  min-height: auto;
  min-width: max-content;
  display: inline-block;
  padding: 16px 0 18px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.heartbeat-page .heart-switch .active {
  color: var(--primary);
}

.heartbeat-page .heart-switch .active::after {
  bottom: 7px;
  width: 28px;
  height: 4px;
}

.heartbeat-page .heartbeat-scroll {
  inset-top: 120px;
}
