.fm-shell {
  padding-bottom: 28px;
}

.fm-page-enter {
  animation: fmPageIn 0.55s var(--ease-soft) both;
}

@keyframes fmPageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Quiet inbox ── */
.fm-inbox-quiet {
  margin-bottom: 18px;
  padding: 14px 14px 12px;
  border-radius: calc(var(--radius-md) + 2px);
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(212, 165, 116, 0.14);
}

.fm-inbox-quiet.hidden {
  display: none;
}

.fm-inbox-quiet-lead {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.fm-inbox-quiet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-inbox-quiet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(212, 165, 116, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.22s var(--ease-soft),
    background 0.22s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-inbox-quiet-item:active {
  border-color: rgba(212, 165, 116, 0.28);
  background: rgba(253, 246, 236, 0.5);
}

.fm-inbox-quiet-wave {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(251, 240, 238, 0.65);
  padding: 5px 4px;
}

.fm-inbox-quiet-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.fm-inbox-quiet-bars span {
  flex: 1;
  max-width: 3px;
  border-radius: 2px;
  background: rgba(196, 112, 75, 0.45);
}

.fm-inbox-quiet-copy {
  flex: 1;
  min-width: 0;
}

.fm-inbox-quiet-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.fm-inbox-quiet-copy span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-inbox-quiet-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  opacity: 0.85;
}

/* ── Invite link ── */
.fm-invite-quiet {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  padding: 10px 2px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease-soft);
}

.fm-invite-quiet > i:first-child {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--brand);
  background: rgba(253, 246, 236, 0.7);
}

.fm-invite-quiet > span {
  flex: 1;
  min-width: 0;
}

.fm-invite-quiet > i:last-child {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-tertiary);
  opacity: 0.55;
}

.fm-invite-quiet:active {
  color: var(--brand);
}

@media (hover: hover) {
  .fm-invite-quiet:hover {
    color: var(--brand);
  }

  .fm-invite-quiet:hover > i:last-child {
    opacity: 0.85;
  }
}

/* ── Compliance ── */
.fm-compliance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-tertiary);
  opacity: 0.72;
  text-align: center;
}

.fm-compliance i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  color: var(--worth);
  opacity: 0.65;
}
.fm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fm-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.fm-section-meta {
  font-size: 12px;
  font-family: var(--font-family-data);
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.fm-roster {
  margin-bottom: 16px;
}

/* ── Layout-family: quiet roster ── */
.layout-family .profile-fm-list .fm-mini-card {
  min-height: 100px;
  padding: 14px 8px 12px;
  border-radius: calc(var(--radius-md) + 2px);
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid rgba(212, 165, 116, 0.1);
  box-shadow: none;
}

.layout-family .profile-fm-list .fm-mini-card::before {
  display: none;
}

.layout-family .profile-fm-list .fm-mini-enter {
  animation: fmCardIn 0.4s var(--ease-soft) both;
}

.layout-family .profile-fm-list .fm-mini-card--pending {
  background: transparent;
  border-style: dashed;
  border-color: rgba(196, 112, 75, 0.18);
}

.layout-family .profile-fm-list .fm-mini-initial {
  width: 34px;
  height: 34px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(44, 54, 57, 0.05);
}

.layout-family .profile-fm-list .fm-mini-name {
  font-family: var(--font-family-display);
  font-size: 13px;
  font-weight: 600;
}

.layout-family .profile-fm-list .fm-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 2px;
}

.layout-family .profile-fm-list .fm-mini-dot--ready {
  background: var(--grow);
  opacity: 0.7;
}

.layout-family .profile-fm-list .fm-mini-dot--pending {
  background: transparent;
  border: 1.5px dashed rgba(196, 112, 75, 0.45);
  width: 7px;
  height: 7px;
}

.layout-family .profile-fm-list .fm-mini-card--add {
  border-style: dashed;
  border-color: rgba(196, 112, 75, 0.2);
  background: transparent;
}

.layout-family .profile-fm-list .fm-mini-card--add i {
  width: 32px;
  height: 32px;
  font-size: 14px;
  background: rgba(253, 246, 236, 0.65);
  opacity: 1;
}

.layout-family .fm-list {
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .fm-page-enter {
    animation: none;
  }
}

.layout-family .vp-sheet-panel:not(.fm-help-panel) {
  background: linear-gradient(180deg, #fffdfb 0%, var(--surface-card) 24%);
  box-shadow: 0 -12px 40px rgba(44, 54, 57, 0.14);
}

/* ── Help sheet · 暮光暖巢 ── */
#fm-help-sheet .vp-sheet-backdrop {
  background: rgba(44, 54, 57, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#fm-help-sheet:not(.hidden) .vp-sheet-backdrop {
  animation: vpFadeIn 0.32s var(--ease-soft);
}

.fm-help-panel {
  position: relative;
  overflow: hidden;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  border-radius: calc(var(--radius-lg) + 6px) calc(var(--radius-lg) + 6px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(168deg, #fffdfb 0%, #fff6ee 38%, #fffcf8 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 -16px 48px rgba(196, 112, 75, 0.12),
    0 -4px 20px rgba(44, 54, 57, 0.08) !important;
  animation: none;
}

.fm-help-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 100% -5%, rgba(232, 168, 124, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 45% at -5% 100%, rgba(107, 144, 128, 0.07), transparent 52%);
}

.fm-help-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(44, 54, 57, 0.04) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(175deg, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(175deg, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
}

.fm-help-panel .vp-sheet-handle {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 4px;
  margin-bottom: 18px;
  background: rgba(196, 112, 75, 0.22);
}

.fm-help-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.fm-help-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--brand-on);
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(196, 112, 75, 0.28);
}

.fm-help-head-copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.fm-help-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.fm-help-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
}

.fm-help-body {
  position: relative;
  z-index: 1;
}

.fm-help-lead {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(212, 165, 116, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fm-help-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(212, 165, 116, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 10px rgba(44, 54, 57, 0.04);
}

#fm-help-sheet:not(.hidden) .fm-help-head,
#fm-help-sheet:not(.hidden) .fm-help-lead {
  animation: fmHelpItemIn 0.44s var(--ease-soft) both;
}

#fm-help-sheet:not(.hidden) .fm-help-lead {
  animation-delay: 0.05s;
}

#fm-help-sheet:not(.hidden) .fm-help-item {
  animation: fmHelpItemIn 0.48s var(--ease-soft) calc(0.1s + var(--i, 0) * 0.05s) both;
}

#fm-help-sheet:not(.hidden) .fm-help-close {
  animation: fmHelpItemIn 0.44s var(--ease-soft) 0.32s both;
}

#fm-help-sheet:not(.hidden) .fm-help-panel {
  animation: fmHelpPanelUp 0.42s var(--ease-soft);
}

.fm-help-item-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--brand);
  background: var(--spark-bg);
  border: 1px solid rgba(212, 165, 116, 0.2);
}

.fm-help-item-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
  padding-top: 4px;
}

.fm-help-close {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: var(--brand-on);
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 18px rgba(196, 112, 75, 0.28);
  transition: transform 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-help-close:active {
  transform: scale(0.988);
}

@media (hover: hover) {
  .fm-help-close:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 6px 22px rgba(196, 112, 75, 0.34);
  }
}

@keyframes fmHelpItemIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fmHelpPanelUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-help-item,
  .fm-help-head,
  .fm-help-lead,
  .fm-help-close,
  .fm-help-panel {
    animation: none !important;
  }

  .fm-help-close {
    transition: none;
  }
}

/* ── Intro (shared vp-* from voiceprint) ── */
.vp-intro {
  position: relative;
  padding: 20px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #FFF8F0 0%, #FFFCF8 55%, #F5EDE4 100%);
  border: 1px solid rgba(232, 168, 124, 0.22);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.vp-intro-glow {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.28), transparent 70%);
  pointer-events: none;
}

.vp-intro-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--brand-on);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(196, 112, 75, 0.28);
}

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

.vp-intro-text strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.vp-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.vp-summary-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.vp-summary-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vp-ring-track {
  fill: none;
  stroke: var(--surface-muted);
  stroke-width: 4;
}

.vp-ring-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease-soft);
}

.vp-summary-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.vp-summary-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.vp-summary-copy span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Mini card grid ── */
.fm-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.fm-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.12s var(--ease-soft), border-color 0.12s, box-shadow 0.12s;
}

.fm-mini-card:active {
  transform: scale(0.96);
}

.fm-mini-card--ready:hover {
  border-color: rgba(232, 168, 124, 0.35);
}

.fm-mini-card--pending {
  border-style: dashed;
  border-color: var(--border-default);
  background: linear-gradient(180deg, var(--surface-card) 0%, rgba(253, 246, 236, 0.4) 100%);
  box-shadow: none;
}

.fm-mini-relation {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.fm-mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-mini-status {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.fm-mini-status--ready {
  background: var(--grow-bg);
  color: var(--grow);
}

.fm-mini-status--pending {
  background: var(--spark-bg);
  color: var(--brand-dark);
}

/* ── Detail sheet ── */
.fm-detail-panel {
  padding-bottom: 32px;
}

.fm-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fm-detail-head .vp-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.fm-detail-head .vp-sheet-title {
  margin: 0 0 2px;
  font-size: 18px;
}

.fm-detail-relation {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.fm-detail-head .vp-status {
  margin-left: auto;
  flex-shrink: 0;
}

.fm-detail-wave-wrap {
  margin-bottom: 12px;
}

.fm-detail-wave-wrap.is-playing .vp-wave-bars span {
  animation: vpBarPulse 0.55s ease-in-out infinite alternate;
}

.fm-detail-meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

.fm-detail-pending {
  margin: 0 0 20px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--spark-bg);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

.fm-detail-pending.hidden,
.fm-detail-wave-wrap.hidden,
#fm-detail-play.hidden { display: none; }

.fm-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.fm-detail-actions .vp-btn {
  flex: 1;
  justify-content: center;
  height: 44px;
  font-size: 14px;
}

/* ── Avatar & wave (detail sheet) ── */
.vp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}

.vp-avatar--parent {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--brand-on);
  box-shadow: 0 2px 10px rgba(196, 112, 75, 0.22);
}

.vp-avatar--guardian {
  background: linear-gradient(135deg, var(--worth-bg), var(--grow-bg));
  color: var(--grow);
}

.vp-avatar--child {
  background: linear-gradient(135deg, var(--spark-bg), var(--worth-bg));
  color: var(--brand-dark);
}

.vp-avatar--muted {
  opacity: 0.55;
  background: var(--surface-muted);
  color: var(--text-tertiary);
}

.vp-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.vp-status--ready {
  background: var(--grow-bg);
  color: var(--grow);
}

.vp-status--pending {
  background: var(--spark-bg);
  color: var(--brand-dark);
}

.vp-status--stranger {
  background: var(--notice-bg);
  color: var(--notice);
}

.vp-avatar--stranger {
  background: var(--notice-bg);
  color: var(--notice);
  font-family: var(--font-family-data);
}

.vp-wave--stranger .vp-wave-bars span {
  background: var(--notice);
  opacity: 0.45;
}

/* ── Stranger claim sheet · 暮光暖巢 ── */
#fm-stranger-sheet .vp-sheet-backdrop {
  background: rgba(44, 54, 57, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#fm-stranger-sheet:not(.hidden) .vp-sheet-backdrop {
  animation: vpFadeIn 0.32s var(--ease-soft);
}

.fm-stranger-panel {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  max-height: 88vh;
  border-radius: calc(var(--radius-lg) + 6px) calc(var(--radius-lg) + 6px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(168deg, #fffdfb 0%, #fff6ee 38%, #fffcf8 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 -16px 48px rgba(196, 112, 75, 0.12),
    0 -4px 20px rgba(44, 54, 57, 0.08) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 112, 75, 0.22) transparent;
}

.fm-stranger-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(232, 168, 124, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(107, 144, 128, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 20%, rgba(212, 165, 116, 0.08), transparent 60%);
}

.fm-stranger-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(44, 54, 57, 0.04) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(175deg, rgba(0, 0, 0, 0.45) 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(175deg, rgba(0, 0, 0, 0.45) 0%, transparent 78%);
}

.fm-stranger-panel .vp-sheet-handle {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 4px;
  margin-bottom: 16px;
  background: rgba(196, 112, 75, 0.22);
}

#fm-stranger-sheet:not(.hidden) .fm-stranger-panel {
  animation: fmHelpPanelUp 0.42s var(--ease-soft);
}

.fm-stranger-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.fm-stranger-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.fm-stranger-head .vp-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
  box-shadow:
    0 0 0 2px rgba(255, 252, 248, 0.95),
    0 0 0 3px rgba(212, 165, 116, 0.18);
}

.fm-stranger-head-copy {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.fm-stranger-eyebrow {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.fm-stranger-title {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
}

.fm-stranger-source {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.fm-stranger-head .vp-status {
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fm-stranger-audio-card {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: calc(var(--radius-md) + 2px);
  background: rgba(255, 252, 248, 0.78);
  border: 1px solid rgba(212, 165, 116, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 16px rgba(44, 54, 57, 0.05);
}

#fm-stranger-sheet:not(.hidden) .fm-stranger-audio-card {
  animation: fmHelpItemIn 0.44s var(--ease-soft) 0.06s both;
}

.fm-stranger-audio-card .fm-detail-wave-wrap {
  margin-bottom: 12px;
}

.fm-stranger-audio-card .vp-wave {
  margin-bottom: 0;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(253, 246, 236, 0.55) 100%);
  border: 1px solid rgba(212, 165, 116, 0.12);
}

.fm-stranger-audio-card .vp-wave-bars {
  height: 40px;
}

.fm-stranger-meta {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
  text-align: center;
}

.fm-stranger-play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.92);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.28s var(--ease-soft),
    background 0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-soft),
    transform 0.28s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-stranger-play:active {
  transform: scale(0.992);
}

.fm-stranger-play-ring {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--brand-on);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(196, 112, 75, 0.26);
  transition: transform 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.fm-stranger-play-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fm-stranger-play-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.fm-stranger-play-copy span {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.fm-stranger-play.is-playing {
  border-color: rgba(196, 112, 75, 0.35);
  background: rgba(253, 246, 236, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(196, 112, 75, 0.1);
}

.fm-stranger-play.is-playing .fm-stranger-play-ring {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 18px rgba(196, 112, 75, 0.34);
}

.fm-stranger-claim {
  position: relative;
  z-index: 1;
}

#fm-stranger-sheet:not(.hidden) .fm-stranger-claim {
  animation: fmHelpItemIn 0.44s var(--ease-soft) 0.12s both;
}

.fm-claim-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(245, 237, 228, 0.65);
  border: 1px solid rgba(212, 165, 116, 0.12);
  box-shadow: inset 0 1px 2px rgba(44, 54, 57, 0.04);
}

.fm-claim-mode-btn {
  height: 38px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.28s var(--ease-soft), color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-claim-mode-btn.is-active {
  background: rgba(255, 252, 248, 0.98);
  color: var(--text-primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(44, 54, 57, 0.08);
}

.fm-claim-member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 196px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 112, 75, 0.2) transparent;
}

.fm-claim-member-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 165, 116, 0.12);
  background: rgba(255, 252, 248, 0.72);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.22s var(--ease-soft),
    background 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft),
    transform 0.22s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-claim-member-option:active {
  transform: scale(0.992);
}

.fm-claim-member-option.is-selected {
  border-color: rgba(196, 112, 75, 0.45);
  background: rgba(253, 246, 236, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(196, 112, 75, 0.1);
}

.fm-claim-member-option.is-recommended:not(.is-selected) {
  border-style: dashed;
  border-color: rgba(196, 112, 75, 0.32);
  background: rgba(255, 252, 248, 0.85);
}

.fm-claim-member-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--brand-on);
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft);
}

.fm-claim-member-option.is-selected .fm-claim-member-check {
  opacity: 1;
  transform: scale(1);
}

.fm-claim-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fm-claim-member-copy {
  flex: 1;
  min-width: 0;
}

.fm-claim-member-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fm-claim-member-copy span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.fm-claim-member-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--spark-bg);
  color: var(--brand-dark);
  border: 1px solid rgba(212, 165, 116, 0.18);
}

.fm-stranger-link-btn {
  width: 100%;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 16px rgba(196, 112, 75, 0.24);
  transition: transform 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft), opacity 0.28s var(--ease-soft);
}

.fm-stranger-link-btn:not(:disabled):active {
  transform: scale(0.988);
}

.fm-stranger-link-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

#fm-claim-new-panel .fm-sheet-submit {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 16px rgba(196, 112, 75, 0.24);
}

#fm-claim-new-panel .fm-name-input {
  background: rgba(255, 252, 248, 0.92);
  border-color: rgba(212, 165, 116, 0.18);
}

#fm-claim-new-panel.hidden,
#fm-claim-link-panel.hidden { display: none; }

.fm-claim-member-avatar--parent {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--brand-on);
}

.fm-claim-member-avatar--child {
  background: linear-gradient(135deg, var(--spark-bg), var(--worth-bg));
  color: var(--brand-dark);
}

.fm-claim-member-avatar--guardian {
  background: linear-gradient(135deg, var(--worth-bg), var(--grow-bg));
  color: var(--grow);
}

.fm-claim-member-avatar--pending {
  background: var(--surface-muted);
  color: var(--text-tertiary);
}

.fm-stranger-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 165, 116, 0.12);
}

#fm-stranger-sheet:not(.hidden) .fm-stranger-actions {
  animation: fmHelpItemIn 0.44s var(--ease-soft) 0.18s both;
}

.fm-stranger-actions .fm-sheet-submit {
  width: 100%;
}

.fm-stranger-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.22s var(--ease-soft), background 0.22s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.fm-stranger-delete i {
  font-size: 12px;
  color: var(--notice);
}

.fm-stranger-delete:active {
  background: rgba(212, 165, 116, 0.08);
  color: var(--notice);
}

#fm-stranger-wave-wrap.is-playing .vp-wave-bars span {
  animation: vpBarPulse 0.55s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .fm-stranger-panel,
  .fm-stranger-audio-card,
  .fm-stranger-claim,
  .fm-stranger-actions,
  .fm-claim-member-check {
    animation: none !important;
    transition: none !important;
  }
}

.vp-wave {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-muted) 0%, rgba(245, 237, 228, 0.4) 100%);
  overflow: hidden;
}

.vp-wave-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 36px;
}

.vp-wave-bars span {
  flex: 1;
  max-width: 5px;
  height: var(--h, 50%);
  border-radius: 3px;
  background: var(--brand-light);
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.vp-wave--parent .vp-wave-bars span { background: var(--text-secondary); opacity: 0.45; }
.vp-wave--guardian .vp-wave-bars span { background: var(--grow); opacity: 0.45; }
.vp-wave--child .vp-wave-bars span { background: var(--brand-light); opacity: 0.5; }

@keyframes vpBarPulse {
  from { transform: scaleY(0.65); opacity: 0.4; }
  to { transform: scaleY(1.15); opacity: 0.85; }
}

.vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.12s var(--ease-soft), background 0.12s;
}

.vp-btn:active { transform: scale(0.96); }

.vp-btn--ghost {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.vp-btn--ghost.is-playing {
  background: var(--spark-bg);
  color: var(--brand);
}

.vp-btn--ghost.is-playing i::before { content: "\f04c"; }

.vp-btn--brand {
  background: var(--brand);
  color: var(--brand-on);
}

/* ── Add / invite ── */
.fm-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--brand-on);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 112, 75, 0.28);
  transition: transform 0.12s var(--ease-soft);
}

.fm-add-btn:active { transform: scale(0.98); }

.fm-invite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.fm-invite-btn:active {
  border-color: var(--brand-light);
  background: var(--spark-bg);
}

.vp-compliance {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--worth-bg);
  border: 1px solid rgba(123, 167, 188, 0.18);
}

.vp-compliance i {
  color: var(--worth);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.vp-compliance p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Toast & sheets ── */
.vp-toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(44, 54, 57, 0.88);
  color: var(--brand-on);
  font-size: 13px;
  white-space: nowrap;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

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

.vp-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vp-sheet.hidden { display: none; }

.vp-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 54, 57, 0.35);
  animation: vpFadeIn 0.25s var(--ease-soft);
}

.vp-sheet-panel {
  position: relative;
  width: 100%;
  padding: 12px 20px 28px;
  background: var(--surface-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 32px rgba(44, 54, 57, 0.12);
  animation: vpSlideUp 0.35s var(--ease-soft);
}

.vp-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-default);
  margin: 0 auto 16px;
}

.vp-sheet-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.fm-sheet-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fm-field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.fm-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.fm-role-chip {
  flex: 0 0 calc(33.333% - 6px);
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s var(--ease-soft);
}

.fm-role-chip.is-active {
  background: var(--spark-bg);
  border-color: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 500;
}

.fm-name-input {
  width: 100%;
  height: 48px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface-card);
  outline: none;
}

.fm-name-input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.15);
}

.fm-age-field {
  margin-top: -8px;
}

.fm-age-field.hidden {
  display: none;
}

.fm-age-input {
  margin-bottom: 24px;
}

.fm-age-input::-webkit-outer-spin-button,
.fm-age-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fm-age-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.fm-sheet-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--brand-on);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vp-sheet-body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.vp-sheet-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.vp-sheet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.vp-sheet-list li i {
  color: var(--grow);
  margin-top: 3px;
  font-size: 12px;
}

.vp-sheet-close {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--brand-on);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

@keyframes vpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vpSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.fm-list--loading {
  pointer-events: none;
}

.fm-mini-card--skeleton {
  min-height: 108px;
  border: none;
  background: linear-gradient(
    90deg,
    rgba(245, 237, 228, 0.55) 0%,
    rgba(255, 248, 240, 0.95) 45%,
    rgba(245, 237, 228, 0.55) 100%
  );
  background-size: 200% 100%;
  animation: fmSkeletonShimmer 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

@keyframes fmSkeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
