/* Contact profiles share the accepted Settings palette and centered identity. */
#app.main-conversation-v2-mode #conversationProfileV1 {
  display: flex;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 6px 0 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app.main-conversation-v2-mode #conversationProfileV1:disabled { opacity: 1; cursor: default; }
#app.main-conversation-v2-mode #conversationProfileV1:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 3px; border-radius: 8px; }
#app .conversation-gift-v1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  max-width: 100%;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app .conversation-gift-art-v1 { display: grid; place-items: center; width: 150px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 8px; }
#app .conversation-gift-caption-v1 { display: block; align-self: stretch; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
#app .conversation-gift-v1:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
#app .contact-profile-v1 {
  --contact-profile-number: #b9ca8b;
  position: fixed;
  inset: 0;
  z-index: 74;
  display: block;
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: var(--pager-ui-font);
  line-height: 1.4;
  isolation: isolate;
}
html[data-pager-theme="light"] #app .contact-profile-v1 { --contact-profile-number: #52643e; }
#app .contact-profile-v1.is-overlay-only { background: transparent; }
#app .contact-profile-v1 [hidden], #app .contact-profile-v1[hidden] { display: none !important; }
#app .contact-profile-v1 *, #app .contact-profile-v1 *::before, #app .contact-profile-v1 *::after { box-sizing: border-box; }
#app .contact-profile-v1 button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#app .contact-profile-v1 button:disabled { cursor: default; }
#app .contact-profile-v1 button:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 3px; }
#app .contact-profile-page-v1 {
  width: min(100%, 420px);
  height: 100%;
  margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pt-bg);
  animation: contact-profile-enter-v1 .2s cubic-bezier(.2,.8,.2,1);
}
#app .contact-profile-head-v1 {
  flex: none;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 12px;
}
#app .contact-profile-icon-v1 {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pt-accent);
}
#app .contact-profile-icon-v1 svg { width: 22px; height: 22px; stroke-width: 1.65; }
#app .contact-profile-icon-v1:disabled { opacity: .45; }
#app .contact-profile-icon-v1:active:not(:disabled) { transform: scale(.94); }
#app .contact-profile-content-v1 {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 20px 28px;
  scroll-padding-block: 12px 28px;
  scrollbar-width: thin;
}
#app .contact-profile-hero-v1 { padding: 0 0 24px; text-align: center; }
#app .contact-profile-avatar-button-v1 {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#app .contact-profile-avatar-button-v1:active:not(:disabled) { transform: scale(.975); }
#app .contact-profile-avatar-v1 {
  display: block;
  width: 116px;
  height: 116px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#app .contact-profile-v1 :is(.contact-profile-avatar-v1, .contact-profile-sender-avatar-v1):is(.photo-avatar-v2, [data-avatar-kind="photo"]) { border-radius: 50%; object-fit: cover; }
#app .contact-profile-name-v1 {
  margin: 15px 0 0;
  font: 600 22px/1.25 var(--pager-ui-font);
  letter-spacing: 0;
  color: var(--pt-text);
  overflow-wrap: anywhere;
}
#app .contact-profile-name-v1.is-public, #app .contact-profile-public-v1 { color: var(--dialog-public-gold); }
#app .contact-profile-name-v1.is-number, #app .contact-profile-number-v1 {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .055em;
  color: var(--contact-profile-number);
}
#app .contact-profile-identity-v1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.35;
}
#app .contact-profile-public-v1 { font-weight: 600; overflow-wrap: anywhere; }
#app .contact-profile-number-v1 { font-size: 15px; }
#app .contact-profile-dot-v1 { color: var(--pt-muted); opacity: .55; }
#app .contact-profile-extra-names-v1 { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; margin: 7px 0 0; font-size: 14px; line-height: 1.4; }
#app .contact-profile-actions-v1 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
#app .contact-profile-actions-v1.without-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#app .contact-profile-actions-v1.with-mute { margin-bottom: 12px; }
#app .contact-profile-mute-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0 0 28px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--pt-surface-alt);
  color: var(--pt-text);
  text-align: left;
  font-size: 15px;
  line-height: 20px;
}
#app .contact-profile-mute-v2 > svg { flex: none; width: 20px; height: 20px; color: var(--pt-muted); }
#app .contact-profile-mute-label-v2 { flex: 1; min-width: 0; }
#app .contact-profile-mute-v2[aria-busy="true"] { opacity: .62; cursor: wait; }
#app .contact-profile-switch-v2 {
  flex: none;
  display: flex;
  align-items: center;
  width: 46px;
  height: 28px;
  padding: 3px;
  border: 1px solid rgba(135,150,109,.45);
  border-radius: 99px;
  background: #20281c;
  transition: background-color .16s ease, border-color .16s ease;
}
#app .contact-profile-switch-v2 > span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #87966d;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  transition: transform .16s ease, background-color .16s ease;
}
#app .contact-profile-mute-v2[aria-checked="true"] .contact-profile-switch-v2 { border-color: #d7e5a3; background: #53623f; }
#app .contact-profile-mute-v2[aria-checked="true"] .contact-profile-switch-v2 > span { transform: translateX(18px); background: #e3edb7; }
html[data-pager-theme="light"] #app .contact-profile-switch-v2 { background: var(--pt-surface-alt); border-color: #afb9a4; }
html[data-pager-theme="light"] #app .contact-profile-switch-v2 > span { background: #8a957d; box-shadow: 0 1px 4px rgba(47,57,34,.15); }
html[data-pager-theme="light"] #app .contact-profile-mute-v2[aria-checked="true"] .contact-profile-switch-v2 { background: var(--pt-accent); border-color: var(--pt-accent); }
html[data-pager-theme="light"] #app .contact-profile-mute-v2[aria-checked="true"] .contact-profile-switch-v2 > span { background: var(--pt-surface); }
#app .contact-profile-action-v1 {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 9px 3px;
  border: 0;
  border-radius: 14px;
  background: var(--pt-surface-alt);
  color: var(--pt-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
#app .contact-profile-action-v1 svg { width: 21px; height: 21px; stroke-width: 1.6; }
#app .contact-profile-action-v1:disabled { opacity: .45; }
#app .contact-profile-action-v1:active:not(:disabled) { background: color-mix(in srgb, var(--pt-surface-alt), var(--pt-accent) 12%); }
#app .contact-profile-gift-head-v1 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; }
#app .contact-profile-gift-head-v1 h3 { margin: 0; font: 600 18px/1.3 var(--pager-ui-font); color: var(--pt-text); letter-spacing: 0; }
#app .contact-profile-count-v1 { color: var(--pt-muted); font-size: 13px; }
#app .contact-profile-gifts-v1 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#app .contact-profile-gift-v1 { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 17px; background: transparent; }
#app .contact-profile-gift-v1 > .contact-profile-gift-avatar-v1 {
  position: absolute;
  top: 7px;
  left: 7px;
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pt-surface-alt);
  box-shadow: 0 0 0 2px var(--pt-surface-alt);
  pointer-events: none;
}
#app .contact-profile-gift-picture-v1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: var(--pt-surface-alt);
}
#app .contact-profile-gift-picture-v1 > svg { width: 48%; height: 48%; color: var(--pt-accent); }
#app .contact-profile-more-v1, #app .contact-profile-retry-v1 {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--pt-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 12px;
}
#app .contact-profile-more-v1 { width: 100%; margin-top: 12px; }
#app .contact-profile-gift-status-v1 { padding: 22px 8px; text-align: center; color: var(--pt-muted); font-size: 14px; line-height: 1.45; }
#app .contact-profile-gift-status-v1 p { margin: 0; overflow-wrap: anywhere; }
#app .contact-profile-retry-v1 { margin-top: 6px; }
#app .contact-profile-detail-overlay-v1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--pt-overlay);
  backdrop-filter: blur(5px);
}
#app .contact-profile-detail-v1 {
  width: min(100%, 390px);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 15px 22px 24px;
  border: 0;
  border-radius: 28px;
  background: var(--pt-surface);
  color: var(--pt-text);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
  animation: contact-profile-detail-enter-v1 .24s cubic-bezier(.2,.8,.2,1);
}
#app .contact-profile-detail-head-v1 { display: flex; align-items: center; gap: 5px; margin-right: -10px; }
#app .contact-profile-detail-head-v1 h3 { flex: 1; min-width: 0; margin: 0; font: 600 20px/1.25 var(--pager-ui-font); overflow-wrap: anywhere; color: var(--pt-text); letter-spacing: 0; }
#app .contact-profile-detail-head-v1 .contact-profile-icon-v1 { color: var(--pt-muted); }
#app .contact-profile-detail-picture-v1 { height: 186px; display: grid; place-items: center; position: relative; margin: 12px 0 20px; border-radius: 22px; background: var(--pt-surface-alt); overflow: hidden; }
#app .contact-profile-detail-picture-v1 > svg { width: 84px; height: 84px; color: var(--pt-accent); }
#app .contact-profile-caption-v1 { margin: 0 5px 15px; font: 400 19px/1.4 var(--pager-ui-font); text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
#app .contact-profile-gift-meta-v1 { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--pt-muted); font-size: 12px; }
#app .contact-profile-from-v1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
#app button.contact-profile-from-v1 {
  min-height: 44px;
  margin: -6px 0;
  padding: 6px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#app button.contact-profile-from-v1:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 4px; }
#app .contact-profile-from-v1 .contact-profile-number-v1 { font-size: 12px; }
#app .contact-profile-from-v1 .contact-profile-public-v1 { font-weight: 500; }
#app .contact-profile-sender-avatar-v1 { flex: 0 0 20px; display: block; width: 20px; height: 20px; background: transparent; box-shadow: none; }
#app .contact-profile-gift-date-v1 { color: var(--pt-muted); font-variant-numeric: tabular-nums; text-align: center; }
#app .contact-profile-primary-v1 {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--pt-accent);
  color: var(--pt-on-accent);
  font: 600 15px/1.4 var(--pager-ui-font);
}
html[data-pager-theme="light"] #app .contact-profile-primary-v1 { background: var(--pt-accent-soft); }
#app .contact-profile-primary-v1:disabled { opacity: .55; cursor: default; }
#app .contact-profile-primary-v1[aria-busy="true"] { position: relative; }
#app .contact-profile-primary-v1[aria-busy="true"]::after {
  content: ''; position: absolute; right: 14px; top: calc(50% - 7px); width: 14px; height: 14px;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: contact-profile-wait-v1 .8s linear infinite;
}
#app .contact-profile-gift-choices-v1 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin: 18px -6px 22px; }
#app .contact-profile-gift-choice-v1 {
  position: relative; min-width: 0; padding: 8px 3px; border: 0; border-radius: 14px;
  background: transparent; color: var(--pt-text); display: flex; flex-direction: column; align-items: center; gap: 7px;
}
#app .contact-profile-gift-choice-v1[aria-pressed="true"] { background: var(--pt-surface-alt); }
#app .contact-profile-gift-choice-v1:disabled { cursor: default; }
#app .contact-profile-choice-art-v1 { display: grid; place-items: center; aspect-ratio: 1; width: 100%; }
#app .contact-profile-choice-label-v1 { font: 400 12px/1.35 var(--pager-ui-font); }
#app .contact-profile-choice-check-v1 {
  position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  display: none; place-items: center; background: var(--pt-accent); color: var(--pt-on-accent);
}
#app .contact-profile-gift-choice-v1[aria-pressed="true"] .contact-profile-choice-check-v1 { display: grid; }
#app .contact-profile-choice-check-v1 svg { width: 12px; height: 12px; stroke-width: 2; }
html[data-pager-theme="light"] #app .contact-profile-choice-check-v1 { color: var(--pt-surface); }
#app .contact-profile-caption-label-v1 { display: block; margin: 0 0 18px; color: var(--pt-muted); font: 400 13px/1.4 var(--pager-ui-font); }
#app .contact-profile-caption-input-v1 {
  display: block; width: 100%; min-height: 96px; max-height: 180px; resize: vertical; margin-top: 7px;
  padding: 12px; border: 1px solid var(--pt-line); border-radius: 14px;
  background: var(--pt-surface-alt); color: var(--pt-text); font: 400 16px/1.4 var(--pager-ui-font);
}
#app .contact-profile-caption-input-v1::placeholder { color: var(--pt-muted); opacity: 1; }
#app .contact-profile-caption-input-v1:focus { outline: 2px solid var(--pt-accent); outline-offset: 1px; }
#app .contact-profile-publication-note-v1, #app .contact-profile-operation-status-v1, #app .contact-profile-feedback-v1 { margin: 12px 0 0; color: var(--pt-muted); font: 400 13px/1.45 var(--pager-ui-font); text-align: center; overflow-wrap: anywhere; }
#app .contact-profile-operation-status-v1, #app .contact-profile-feedback-v1 { color: var(--pt-danger); }
@keyframes contact-profile-wait-v1 { to { transform: rotate(1turn); } }
@keyframes contact-profile-enter-v1 { from { opacity: .3; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes contact-profile-detail-enter-v1 { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) {
  #app .contact-profile-content-v1 { padding-right: 16px; padding-left: 16px; }
  #app .contact-profile-detail-v1 { padding-right: 18px; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #app .contact-profile-switch-v2, #app .contact-profile-switch-v2 > span { transition: none; }
  #app .contact-profile-page-v1, #app .contact-profile-detail-v1 { animation: none; }
  #app .contact-profile-icon-v1:active:not(:disabled) { transform: none; }
  #app .contact-profile-avatar-button-v1:active:not(:disabled) { transform: none; }
  #app .contact-profile-primary-v1[aria-busy="true"]::after { animation: none; }
}
