/* Phone profiles are full-screen navigation pages. Desktop dialogs keep their styles. */
.mobile-client #selfProfileDialog.mobile-profile-page {
  position:fixed;inset:0;width:100%;height:var(--mobile-height,100dvh);
  max-width:none;max-height:none;min-height:0;margin:0;border:0;border-radius:0;
  box-shadow:none;background:#fff;overflow:hidden;z-index:1800;
  display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) 0 0!important;
}
.mobile-client.mobile-profile-open #mobileTabs {display:none!important}
.mobile-client #selfProfileDialog.mobile-profile-page #profileDragHandle {
  display:flex;align-items:center;flex:0 0 auto;gap:4px;min-height:58px;
  padding:7px 12px 7px 6px;background:#fff;color:#233650;
  border-bottom:1px solid #edf0f5;cursor:default;touch-action:auto;
}
.mobile-profile-page #profileWindowTitle {font-size:18px;line-height:28px;font-weight:650}
.mobile-client #selfProfileDialog.mobile-profile-page #closeSelfProfile {
  position:static;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
  min-height:44px;padding:10px;margin:0;background:transparent;color:#243955;border-radius:12px;
}
.mobile-profile-page #closeSelfProfile .ui-icon {width:24px;height:24px}
.mobile-profile-body {flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
.mobile-client #selfProfileDialog.mobile-profile-page #selfProfileStatus {padding:12px 20px;margin:0;font-size:14px;line-height:1.6;background:#f2f6fc;color:#355983;position:static}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardView {padding:0 20px 16px;background:#fff}
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-hero {display:flex;align-items:center;min-height:128px;margin:0;padding:24px 0;gap:18px}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardAvatar {width:76px;height:76px;min-width:76px;border:0;border-radius:22px;box-shadow:none;font-size:30px}
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-identity {padding:0;min-width:0}
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-identity h2 {font-size:22px;font-weight:650;line-height:1.4;margin:0 0 5px}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardCopyID {display:block;font-size:12px;line-height:1.6;color:#64758c;padding:0;background:transparent}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardPresence {display:flex;align-items:center;gap:6px;margin-top:7px;font-size:13px}
.mobile-profile-page #profileCardPresence i {width:8px;height:8px}
.mobile-client #selfProfileDialog.mobile-profile-page #friendNoteInline {margin:0 0 18px;gap:5px}
.mobile-client #selfProfileDialog.mobile-profile-page #friendNoteInline label {font-size:14px;color:#52647d}
.mobile-client #selfProfileDialog.mobile-profile-page #friendNoteValue {height:46px;min-height:46px;margin-top:8px;padding:10px 12px;font-size:16px;border-radius:11px}
.mobile-profile-page #friendNoteStatus {font-size:12px;line-height:1.5;margin:0;color:#607592}
.mobile-profile-page #friendNoteStatus:empty {display:none}
.mobile-client #selfProfileDialog.mobile-profile-page .friend-profile-fields,
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-about {grid-template-columns:94px minmax(0,1fr);gap:16px 12px;margin:18px 0;line-height:1.65;font-size:15px}
.mobile-client #selfProfileDialog.mobile-profile-page .friend-profile-fields dt,
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-about dt {font-size:14px;color:#697b93}
.mobile-client #selfProfileDialog.mobile-profile-page .friend-profile-fields dd,
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-about dd {font-size:15px;color:#293b54;text-align:right;overflow-wrap:anywhere}
.mobile-profile-page #friendCopyID {font-size:14px;line-height:1.6;color:#334d6e}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardLevel {padding:14px 0;min-height:44px;border-top:1px solid #edf0f5}
.mobile-client #selfProfileDialog.mobile-profile-page #profileCardView .profile-card-region {font-size:15px;color:#334760;font-weight:400;line-height:1.6;margin:8px 0 20px}
.mobile-client #selfProfileDialog.mobile-profile-page #friendActivity,
.mobile-client #selfProfileDialog.mobile-profile-page #profileNetwork {padding:18px 0 0;margin:18px 0;border-top:1px solid #edf0f5}
.mobile-client #selfProfileDialog.mobile-profile-page #friendActivity h3,
.mobile-client #selfProfileDialog.mobile-profile-page #profileNetwork h3 {font-size:15px;color:#263c58;margin:0 0 12px}
.mobile-client #selfProfileDialog.mobile-profile-page #profileNetworkStatus,
.mobile-client #selfProfileDialog.mobile-profile-page #profileNetwork small {font-size:12px;line-height:1.6}
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-footer {padding:18px 0 0;min-height:0}
.mobile-client #selfProfileDialog.mobile-profile-page .profile-card-footer button {width:100%;min-height:48px;padding:12px 16px;border-radius:12px;background:#3279e8;color:#fff;font-size:16px;font-weight:600}
.mobile-profile-page .profile-contact-actions {gap:12px;margin-top:16px;padding-top:16px}
.mobile-profile-page .profile-contact-actions button {min-height:46px;border-radius:12px;font-size:14px}
.mobile-client #selfProfileDialog.mobile-profile-page #selfProfileForm {display:flex;flex-direction:column;gap:20px;padding:24px 20px 16px;color:#344961}
.mobile-profile-page #selfProfileForm label {display:flex;flex-direction:column;gap:8px!important;font-size:14px;min-width:0}
.mobile-client #selfProfileDialog.mobile-profile-page #selfProfileForm input,
.mobile-client #selfProfileDialog.mobile-profile-page #selfProfileForm select,
.mobile-client #selfProfileDialog.mobile-profile-page #selfProfileForm textarea {width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafd;color:#243c59;padding:11px 12px;font-size:16px;line-height:1.5}
.mobile-profile-page #selfProfileForm input[readonly] {color:#708198!important}
.mobile-profile-page #selfProfileForm textarea {height:110px}
.mobile-profile-page .self-id-row {display:flex;gap:8px}
.mobile-profile-page .self-id-row input {flex:1}
.mobile-profile-page .self-id-row button {min-width:58px}
.mobile-profile-page .self-region-select {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.mobile-profile-page #selfRegionHint {grid-column:1/-1;font-size:12px}
.mobile-profile-page .self-profile-avatar {display:flex;flex-direction:column;align-items:center;gap:10px}
.mobile-profile-page #selfProfileAvatar {width:84px;height:84px;border-radius:24px;overflow:hidden}
.mobile-profile-page #editSelfAvatar {min-height:44px;font-size:15px;background:#eef4ff;color:#2864b6}
.mobile-profile-page .self-profile-avatar small {font-size:12px;color:#718298}
.mobile-profile-page .profile-edit-actions {display:flex;gap:12px;padding-top:6px}
.mobile-profile-page .profile-edit-actions button {min-height:48px;flex:1;font-size:16px;border-radius:12px}
.mobile-profile-page #saveSelfProfile {background:#3279e8;color:#fff}
.mobile-profile-page #cancelSelfEdit {background:#edf2f9;color:#465d7d}
.mobile-profile-page button:focus-visible {outline:2px solid #3279e8;outline-offset:2px}
.mobile-profile-page button:disabled {cursor:default}
