/* Profile dashboard: account settings and compact connections. */
#profileView{max-width:1120px}
#profileView .profile-heading{margin-bottom:24px;gap:20px}
#profileView .profile-heading h1{font-size:32px;line-height:1.3}
#profileView .profile-heading .profile-avatar{display:none}
#profileView .profile-heading p{font-size:13px;overflow-wrap:anywhere}
#profileContacts{border:0;margin:0 0 30px;padding:0;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr);gap:22px;align-items:start}
#profileContacts[hidden]{display:none}
#profileContacts .profile-account-card,#profileContacts .profile-connection-card{border:1px solid #ece5e7;border-radius:16px;background:#fff;padding:24px;min-width:0}
#profileContacts h2{font-size:16px;line-height:1.5;margin:0 0 20px}
#profileContacts .contact-profile-edit{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:start}
#profileContacts .contact-profile-edit>.contact-avatar{width:64px;height:64px;font-size:24px;margin-top:22px}
#profileContacts #nicknameForm{display:flex;gap:8px;align-items:flex-end}
#profileContacts #nicknameForm label{display:grid;gap:8px;flex:1;min-width:0;font-size:12px;color:var(--muted)}
#profileContacts #nicknameForm .field{height:42px;font-size:14px;border-radius:8px}
#profileContacts #nicknameForm .icon-btn{height:42px;min-height:42px;width:42px;border-radius:8px;flex-shrink:0}
#profileContacts .contact-profile-edit p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;color:var(--muted);margin:12px 0}
#profileContacts .contact-profile-edit small{display:block;font-size:11px}
#profileContacts .contact-profile-edit .btn{font-size:12px;min-height:36px;border-radius:8px;cursor:pointer}
#profileContacts .password-settings{margin:22px 0 0;border:0;border-top:1px solid #eee5e7;border-radius:0;padding:18px 0 0}
#profileContacts summary{font-size:13px;font-weight:600;cursor:pointer;line-height:1.6}
#profileContacts #passwordForm{max-width:none;font-size:12px}
#profileContacts #passwordForm .field{height:42px;border-radius:8px}
#profileContacts .profile-qr-card{border-top:1px solid #eee5e7;padding-top:18px;margin-top:18px}
#profileContacts #profileQr{width:144px;padding:8px;margin-top:14px;box-sizing:content-box;border:1px solid #eee5e7;border-radius:10px}
#profileContacts #profileQr img,#profileContacts #profileQr canvas{width:144px;height:144px;max-width:100%}
#profileContacts .profile-qr-card p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 0}
#profileContacts .profile-connections{display:grid;gap:16px;min-width:0}
#profileContacts .contact-profile-list{display:grid;gap:10px;margin:0;max-height:310px;overflow:auto}
#profileContacts .contact-profile-list>p{margin:0;padding:18px 14px;background:#faf8f9;border-radius:10px;color:var(--muted);font-size:13px;line-height:1.6}
#profileContacts .friend-row{width:100%;min-width:0;margin:0;border-radius:10px;gap:10px;padding:12px;font-size:13px}
#profileContacts .friend-row .contact-avatar{width:38px;height:38px}
#profileContacts .friend-row .presence-status{margin-left:auto;font-size:11px;white-space:nowrap}
#profileContacts .profile-blocked{padding:4px 16px;color:var(--muted)}
#profileView .profile-toolbar{margin-top:12px;border-top:1px solid #eee5e7;padding-top:20px}
#profileContacts :is(button,input,summary):focus-visible{outline:2px solid #b52340;outline-offset:3px}
@media(max-width:760px){#profileContacts{grid-template-columns:1fr;gap:16px}#profileContacts .profile-account-card,#profileContacts .profile-connection-card{padding:20px}#profileView .profile-heading h1{font-size:27px}}
@media(max-width:390px){#profileContacts .contact-profile-edit{grid-template-columns:44px minmax(0,1fr);gap:12px}#profileContacts .contact-profile-edit>.contact-avatar{width:44px;height:44px}#profileContacts .profile-account-card,#profileContacts .profile-connection-card{padding:16px}}
