/* Personal-information rows follow the supplied IA; colors inherit the product tokens. */
.mine-surface .page-scroll > .profile-page { padding: 0 var(--page-gutter) var(--space-6); }
.profile-avatar-area { display: flex; justify-content: center; padding: 24px 0 28px; }
.profile-avatar-button { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 144px; padding: 4px 16px; border-radius: var(--radius-panel); }
.profile-avatar-button .mine-avatar { width: 80px; height: 80px; }
.profile-avatar-button > span { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.profile-avatar-button:hover > span { color: var(--accent-strong); }
.profile-group + .profile-group { margin-top: 24px; }
.profile-group > h2 { margin: 0; padding: 0 0 6px; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-regular); }
.profile-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 16px 0; border-bottom: 1px solid var(--line-subtle); text-align: left; font-size: var(--text-md); line-height: var(--leading-md); }
.profile-row-label { flex: none; color: var(--ink); }
.profile-row-value { margin-left: auto; min-width: 0; max-width: 68%; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.profile-row > .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
button.profile-row:hover { background: var(--hover-surface); }
button.profile-row:focus-visible { outline-offset: -2px; }
.profile-copy { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin: -6px -10px -6px 0; color: var(--muted); border-radius: var(--radius-control); }
.profile-copy .icon { width: 18px; height: 18px; }
.profile-copy:hover { color: var(--accent); background: var(--accent-light); }
.profile-demo-note { margin-top: var(--space-5); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); text-align: center; }
.profile-logout.button.quiet { margin-top: var(--space-4); min-height: var(--button-height); border: 1px solid var(--line); background: var(--surface); color: var(--accent-strong); font-size: var(--text-md); font-weight: var(--weight-medium); }
.profile-editor { box-sizing: border-box; width: min(354px, calc(100vw - 40px)); max-height: calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom)); margin: auto; padding: 24px; border: 0; border-radius: var(--radius-panel); color: var(--ink); background: var(--paper); box-shadow: 0 18px 60px rgba(78,45,31,.18); overflow-y: auto; }
.profile-editor::backdrop { background: rgba(78,45,31,.25); }

.profile-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px -8px 16px 0; }
.profile-editor-heading h2 { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); }
.profile-editor-heading .icon-button { flex: none; }
.profile-input-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: var(--text-sm); }
.profile-editor input, .profile-editor textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: var(--text-md)/var(--leading-md) var(--font-body); caret-color: var(--accent); }
.profile-editor textarea { resize: vertical; }
.profile-editor [aria-invalid="true"] { border-color: var(--accent-strong); }
.profile-error { min-height: 20px; margin-top: 8px; color: var(--accent-strong); font-size: var(--text-xs); line-height: 20px; }
.profile-binding-note { margin: 4px 0 16px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.profile-wechat-copy { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-md); }
.profile-editor-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 8px; }
.profile-editor-actions .button { min-height: 48px; font-size: var(--text-md); }

.profile-editor [hidden] { display: none; }
.profile-editor-actions:has([hidden]) .cancel { grid-column: 1 / -1; }
.profile-unbind { display: block; width: 100%; min-height: 44px; margin-top: 12px; color: var(--accent-strong); font-size: var(--text-sm); }
@media (max-width: 360px) {
  .profile-avatar-area { padding-top: 16px; padding-bottom: 20px; }
  .profile-row { gap: 8px; font-size: var(--text-md); min-height: 60px; }
  .profile-row-value { max-width: 64%; }
  .profile-editor { padding: 20px; }
}
