.profile-menu-avatar, .account-email-trigger .profile-menu-avatar { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: cover; border-radius: 50%; }
.post-profile-author { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink); }
.post-profile-author img { display: block; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; }
.post-profile-author:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-sidebar-user.profile-account-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px 11px; }
.account-sidebar-user .profile-account-avatar { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.account-sidebar-user .profile-account-home { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-self: start; gap: 5px; margin-top: 0; font-size: 12px; color: var(--muted); }
.profile-editor { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.profile-editor-heading, .user-profile-posts-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.profile-editor-heading h2, .user-profile-posts-heading h2 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.profile-preview-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.profile-preview-link:hover { color: var(--ink); }
.profile-editor .profile-editor-intro { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.profile-editor form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); align-items: start; gap: 20px 40px; }
.profile-editor-preview { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.profile-editor-preview > img { display: block; width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; }
.profile-editor-preview strong { display: block; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.profile-editor-preview small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.profile-avatar-picker { grid-column: 1; grid-row: span 3; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-avatar-picker legend { margin-bottom: 11px; padding: 0; font-size: 13px; font-weight: 600; }
.profile-avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 10px; }
.profile-avatar-grid button { display: block; aspect-ratio: 1; width: 100%; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; transition: border-color .15s, transform .15s; }
.profile-avatar-grid button img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.profile-avatar-grid button:hover:not(:disabled) { transform: translateY(-2px); }
.profile-avatar-grid button.selected { border-color: var(--ink); }
.profile-avatar-picker:disabled { opacity: .65; }
.profile-avatar-grid button:focus-visible, .profile-preview-link:focus-visible, .user-profile-page a:focus-visible, .user-profile-page button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.profile-editor .profile-name-field { display: grid; gap: 8px; grid-column: 2; font-size: 13px; }
.profile-name-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.profile-name-field small { color: var(--muted); font-weight: 400; font-size: 11px; }
.profile-editor input { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); outline: none; }
.profile-editor input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 12%, transparent); }
.profile-editor input[aria-invalid="true"] { border-color: #c85f50; }
.profile-editor .profile-form-error, .profile-editor .profile-form-success { grid-column: 2; margin: 0; font-size: 12px; line-height: 1.6; }
.profile-editor .profile-form-error { color: #c35a48; }
.profile-editor .profile-form-success { color: var(--teal); }
.profile-editor .profile-save-button { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 116px; padding: 10px 18px; border: 0; border-radius: 7px; color: var(--paper); background: var(--ink); font-size: 13px; }
.profile-save-button:disabled { opacity: .55; cursor: default; }
.directory-home-shell.directory-inner-shell.account-layout-shell:has(> .user-profile-page) { position: relative; height: 100dvh; min-height: 0; overflow: hidden; --profile-header-height: 56px; }
.directory-home-shell > .user-profile-page { flex: 1 1 0%; height: 100%; min-height: 0; overflow: hidden; }
.directory-home-shell:has(> .user-profile-page) > .directory-topbar { position: absolute; top: 0; left: 0; width: 100%; height: var(--profile-header-height); background: color-mix(in srgb, var(--paper) 68%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); }
.user-profile-page { width: 100%; max-width: none; margin: 0; padding: 0 clamp(18px, 2.3vw, 44px); color: var(--ink); background: var(--paper); }
.user-profile-page * { box-sizing: border-box; }
.user-profile-wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 300px); align-items: stretch; gap: clamp(24px, 2vw, 32px); width: clamp(960px, 70vw, 1280px); max-width: 100%; height: 100%; margin: 0 auto; }
.user-profile-main { height: 100%; min-width: 0; min-height: 0; padding-top: var(--profile-header-height, 56px); padding-bottom: 35px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; background: var(--card); }
.user-profile-page, .user-profile-main, .user-profile-discovery, .user-profile-tabs { scrollbar-width: none; -ms-overflow-style: none; }
.user-profile-page::-webkit-scrollbar, .user-profile-main::-webkit-scrollbar, .user-profile-discovery::-webkit-scrollbar, .user-profile-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.user-profile-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 59px; padding: 0 25px; border-bottom: 1px solid var(--line); }
.user-profile-back { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 600; }
.user-profile-topline > span { color: var(--muted); font-size: 12px; }
.user-profile-hero { background: var(--card); }
.user-profile-cover { position: relative; overflow: hidden; height: clamp(185px, 15vw, 280px); background: #c9ded9; }
.user-profile-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(10px); transform: scale(1.07); }
.user-profile-cover-edit { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #ffffff50; border-radius: 30px; background: #101e2b65; color: #fff; font-size: 12px; backdrop-filter: blur(10px); }
.user-profile-hero-content { padding: 0 28px 22px; }
.user-profile-identity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; min-height: 94px; }
.user-profile-avatar { position: relative; display: block; width: 128px; height: 128px; flex: 0 0 128px; margin-top: -50px; border: 5px solid var(--card); border-radius: 50%; object-fit: cover; }
.user-profile-edit { margin-top: 19px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink); font-size: 13px; font-weight: 600; transition: background .15s; }
.user-profile-edit:hover { background: var(--paper); }
.user-profile-name-line { display: flex; align-items: center; gap: 9px; }
.user-profile-heading h1 { margin: 0; font-size: clamp(25px, 1.8vw, 34px); font-weight: 750; letter-spacing: -.035em; line-height: 1.35; overflow-wrap: anywhere; }
.user-profile-name-verified { flex-shrink: 0; color: var(--teal); }
.user-profile-heading .user-profile-guid { margin: 7px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.user-profile-source-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.user-profile-bio { margin: 18px 0 16px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.user-profile-details { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.user-profile-details > span { display: inline-flex; align-items: center; gap: 6px; }
.user-profile-verifications { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 11px; }
.user-profile-verifications > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 5px; color: var(--muted); background: var(--paper); }
.user-profile-verifications > .is-verified { color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.user-profile-verifications > a { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: var(--teal); }
.user-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.user-profile-stats button { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 5px 7px; padding: 0 13px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.user-profile-stats button:first-child { padding-left: 0; border-left: 0; }
.user-profile-stats strong { font-size: 19px; font-weight: 700; }
.user-profile-stats span { color: var(--muted); font-size: 11px; }
.user-profile-stats button:hover span { color: var(--teal); }
.user-profile-stats button:disabled { cursor: default; }
.user-profile-posts { border-top: 7px solid var(--paper); padding-bottom: 25px; }
.user-profile-posts-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 28px 6px; }
.user-profile-posts-heading h2 { margin: 0; font-size: 18px; font-weight: 700; }
.user-profile-posts-heading > span { color: var(--muted); font-size: 11px; }
.user-profile-tabs { display: flex; margin-top: 9px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.user-profile-tabs button { position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 53px; padding: 12px 15px; border: 0; background: transparent; color: var(--muted); font-size: 13px; transition: background .15s; }
.user-profile-tabs button:hover { background: var(--paper); }
.user-profile-tabs small { font-size: 10px; opacity: .75; }
.user-profile-tabs button.active { color: var(--ink); font-weight: 700; }
.user-profile-tabs button.active:after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 3px; border-radius: 3px; background: var(--teal); }
.user-profile-post { display: flex; align-items: flex-start; gap: 13px; padding: 24px 28px; border-bottom: 1px solid var(--line); transition: background .15s; }
.user-profile-post:hover { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.user-profile-post-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; }
.user-profile-post-body { min-width: 0; flex: 1; }
.user-profile-post-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; line-height: 1.6; }
.user-profile-post-author strong { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.user-profile-post-author time { color: var(--muted); font-size: 11px; }
.user-profile-post-kind { display: inline-flex; align-items: center; gap: 5px; margin: 9px 0 7px; color: var(--teal); font-size: 11px; }
.user-profile-post-kind.is-risk { color: #be6254; }
.user-profile-post-body h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.user-profile-post-body h3 a:hover { color: var(--teal); }
.user-profile-post-body > p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 7px 0 0; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.user-profile-record-open { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--teal); font-size: 11px; }
.user-profile-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 280px; color: var(--muted); font-size: 13px; }
.user-profile-status.compact { min-height: 230px; }
.user-profile-status.is-error, .user-profile-inline-error { color: #bd594d; }
.user-profile-inline-error { display: flex; align-items: center; gap: 8px; margin: 20px 28px; font-size: 12px; line-height: 1.6; }
.user-profile-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 290px; padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.user-profile-empty strong { color: var(--ink); font-size: 15px; }
.user-profile-empty p { margin: 0; line-height: 1.8; }
.user-profile-empty a { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--teal); font-size: 12px; }
.user-profile-load-more { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px auto 4px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink); font-size: 12px; }
.user-profile-load-more:disabled { opacity: .6; cursor: wait; }
.user-profile-discovery { height: 100%; min-height: 0; min-width: 0; padding: calc(var(--profile-header-height, 56px) + 24px) 0 30px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; }
.user-profile-discovery-section { overflow: hidden; margin-bottom: 20px; padding: 20px; border: 0; border-radius: 15px; background: var(--card); }
.user-profile-discovery-heading { display: flex; align-items: center; gap: 9px; color: var(--teal); }
.user-profile-discovery-heading h2 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.45; font-weight: 700; }
.user-profile-discovery-refresh { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 50%; }
.user-profile-discovery-refresh:hover { background: var(--paper); }
.user-profile-discovery-note { margin: 9px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.user-profile-discovery-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 80px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.user-profile-discovery-state button { border: 0; background: transparent; color: var(--teal); }
.user-profile-discovery-empty { margin: 17px 0 3px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.user-profile-recommendation { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); }
.user-profile-recommendation:last-child { padding-bottom: 0; border-bottom: 0; }
.user-profile-recommendation-type { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--teal); font-size: 10px; }
.user-profile-recommendation > strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-size: 13px; line-height: 1.7; font-weight: 650; }
.user-profile-recommendation:hover > strong { color: var(--teal); }
.user-profile-recommendation > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.user-profile-recommendation-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.user-profile-suggestion { display: flex; align-items: center; gap: 9px; padding: 18px 0 0; }
.user-profile-suggestion-link { display: grid; flex: 1; min-width: 0; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ink); }
.user-profile-suggestion-link > img { display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.user-profile-suggestion-link > span { min-width: 0; }
.user-profile-suggestion-link strong, .user-profile-suggestion-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-profile-suggestion-link strong { font-size: 13px; font-weight: 650; }
.user-profile-suggestion-link small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.user-profile-follow { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 57px; min-height: 32px; padding: 6px 11px; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: var(--card); font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.user-profile-follow:hover { background: var(--teal); border-color: var(--teal); }
.user-profile-follow.is-following { background: transparent; color: var(--ink); border-color: var(--line); }
.user-profile-follow.is-following:hover { color: #bd594d; border-color: #bd594d; }
.user-profile-follow:disabled { cursor: progress; }
.user-profile-main-follow { margin-top: 20px; min-width: 100px; min-height: 41px; font-size: 14px; }
.user-profile-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; margin-top: 19px; }
.user-profile-actions .user-profile-edit, .user-profile-actions .user-profile-main-follow { margin-top: 0; }
.user-profile-icon-action { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 41px; height: 41px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: background .18s, border-color .18s; }
.user-profile-icon-action:hover:not(:disabled) { background: var(--paper); border-color: var(--muted); }
.user-profile-icon-action:disabled { opacity: .4; cursor: default; }
.user-profile-more { position: relative; }
.user-profile-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; width: 264px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 8px 32px #00000020; }
.user-profile-menu > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; }
.user-profile-menu > button:hover:not(:disabled) { background: var(--paper); }
.user-profile-menu > button:disabled { opacity: .45; }
.user-profile-menu > button.is-danger { color: #d45050; }
.user-profile-menu > p { margin: 5px 12px 9px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.user-profile-menu-error { padding: 10px 12px; font-size: 12px; color: #d45050; line-height: 1.7; }
.user-profile-menu-error button, .user-profile-about-status button { border: 0; background: transparent; color: var(--teal); margin-left: 8px; }
.user-profile-follow.is-blocked { background: transparent; color: #d45050; border-color: #d45050; }
.user-profile-blocked-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 55px 25px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.user-profile-blocked-state h2 { color: var(--ink); font-size: 19px; margin: 0; }
.user-profile-blocked-state p { font-size: 13px; line-height: 1.8; margin: 0; }
.user-profile-blocked-state button { margin-top: 5px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: transparent; font-weight: 600; }
.user-profile-dialog-backdrop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 22px; background: #00000065; backdrop-filter: blur(5px); }
.user-profile-about-dialog { width: min(100%, 460px); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 80px #00000030; outline: none; }
.user-profile-about-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.user-profile-about-dialog h2 { margin: 0; font-size: 21px; }
.user-profile-about-identity { display: flex; align-items: center; gap: 13px; padding: 24px 0; }
.user-profile-about-identity img { width: 56px; height: 56px; border-radius: 50%; }
.user-profile-about-identity strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.user-profile-about-identity span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.user-profile-about-dialog dl { margin: 0; }
.user-profile-about-dialog dl > div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.user-profile-about-dialog dt { color: var(--muted); flex-shrink: 0; }
.user-profile-about-dialog dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.user-profile-about-dialog .user-profile-about-guid { flex-direction: column; gap: 5px; }
.user-profile-about-guid dd { text-align: left; font-size: 11px; font-family: ui-monospace, monospace; }
.user-profile-about-status { font-size: 13px; color: var(--muted); line-height: 1.8; }
.user-profile-social-stats { display: flex; gap: 24px; margin-top: 20px; }
.user-profile-social-stats button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.user-profile-social-stats strong { color: var(--ink); font-size: 15px; }
.user-profile-social-stats button:hover { text-decoration: underline; }
.user-profile-follow-error { color: #bd594d; margin: 13px 0 0; font-size: 12px; }
.user-profile-connections { margin-top: 6px; padding-bottom: 24px; background: var(--card); }
.user-profile-connections-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.user-profile-connections-heading > div { display: flex; gap: 18px; }
.user-profile-connections-heading > div button { border: 0; background: transparent; color: var(--muted); padding: 5px 0; font-size: 14px; }
.user-profile-connections-heading > div button.active { color: var(--ink); font-weight: 700; box-shadow: 0 2px 0 var(--teal); }
.user-profile-connections-heading > div button:disabled { display: none; }
.user-profile-connection { display: flex; align-items: center; gap: 18px; padding: 19px 28px; border-bottom: 1px solid var(--line); }
.user-profile-connection-link { display: flex; flex: 1; align-items: center; gap: 13px; min-width: 0; }
.user-profile-connection-link > img { width: 45px; height: 45px; flex-shrink: 0; border-radius: 50%; }
.user-profile-connection-link > span { min-width: 0; }
.user-profile-connection-link strong { font-size: 14px; overflow-wrap: anywhere; }
.user-profile-connection-link small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); margin-top: 5px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.user-profile-connections-empty { padding: 70px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.user-profile-inline-error button { border: 0; background: transparent; color: var(--teal); }
.user-profile-visit { padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: 10px; }
.user-profile-suggestion-link:hover .user-profile-visit { background: var(--ink); color: var(--card); }
.user-profile-suggestion-reason { display: block; margin: 6px 0 0 48px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.user-profile-interest-list { margin-top: 12px; }
.user-profile-interest-link { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); }
.user-profile-interest-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--paper); color: var(--teal); }
.user-profile-interest-link strong, .user-profile-interest-link small { display: block; }
.user-profile-interest-link strong { font-size: 12px; line-height: 1.5; font-weight: 600; }
.user-profile-interest-link small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.user-profile-interest-link > svg { color: var(--muted); }
.user-profile-safety-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0 6px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.user-profile-safety-note svg { flex-shrink: 0; margin-top: 2px; }
.user-profile-footer { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 17px 6px 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.profile-spin { flex-shrink: 0; animation: profile-spin .8s linear infinite; }
@keyframes profile-spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .user-profile-page { padding-right: 18px; padding-left: 18px; }
  .user-profile-wrap { width: 100%; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .user-profile-hero-content { padding-right: 21px; padding-left: 21px; }
  .user-profile-tabs button { padding-right: 10px; padding-left: 10px; font-size: 12px; }
  .user-profile-tabs small { display: none; }
}
@media (max-width: 760px) {
  .directory-home-shell.directory-inner-shell.account-layout-shell:has(> .user-profile-page) { height: 100dvh; min-height: 0; overflow: hidden; }
  .directory-home-shell > .user-profile-page, .profile-layout-shell > .user-profile-page { flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  .user-profile-page { padding: var(--profile-header-height, 56px) 0 calc(var(--mobile-nav-height, 66px) + 25px); }
  .user-profile-wrap { width: 100%; grid-template-columns: minmax(0, 1fr); height: auto; gap: 0; }
  .user-profile-main { height: auto; border: 0; min-height: 0; padding-top: 0; overflow: visible; }
  .user-profile-topline { height: 51px; padding: 0 18px; }
  .user-profile-topline > span { font-size: 10px; }
  .user-profile-cover { height: clamp(150px, 32vw, 230px); }
  .user-profile-cover-edit { right: 13px; bottom: 12px; padding: 6px 10px; font-size: 10px; }
  .user-profile-hero-content { padding: 0 18px 19px; }
  .user-profile-avatar { width: 102px; height: 102px; flex-basis: 102px; margin-top: -39px; border-width: 4px; }
  .user-profile-identity-top { min-height: 78px; }
  .user-profile-edit { margin-top: 14px; padding: 8px 14px; font-size: 12px; }
  .user-profile-main-follow { margin-top: 14px; min-width: 88px; min-height: 37px; font-size: 13px; }
  .user-profile-actions { margin-top: 14px; gap: 6px; }
  .user-profile-actions .user-profile-icon-action { width: 37px; height: 37px; }
  .user-profile-menu { right: -84px; width: 252px; }
  .user-profile-connection { padding: 17px 18px; }
  .user-profile-connections-heading { padding: 18px; }
  .user-profile-heading h1 { font-size: 26px; }
  .user-profile-bio { font-size: 13px; margin-top: 15px; }
  .user-profile-details { gap: 8px 16px; font-size: 11px; }
  .user-profile-stats button { padding-right: 5px; padding-left: 10px; }
  .user-profile-stats strong { font-size: 18px; }
  .user-profile-stats span { font-size: 10px; }
  .user-profile-posts-heading { padding: 19px 18px 5px; }
  .user-profile-posts-heading h2 { font-size: 17px; }
  .user-profile-tabs button { font-size: 12px; padding-right: 9px; padding-left: 9px; }
  .user-profile-post { padding: 21px 18px; gap: 11px; }
  .user-profile-post-avatar { width: 35px; height: 35px; flex-basis: 35px; }
  .user-profile-post-body h3 { font-size: 14px; }
  .user-profile-post-body > p { font-size: 12px; }
  .user-profile-discovery { height: auto; overflow: visible; padding: 20px 16px 0; }
  .user-profile-discovery-section { margin-bottom: 16px; padding: 18px; }
  .user-profile-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .user-profile-recommendation:last-child { padding-bottom: 17px; }
  .user-profile-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .user-profile-interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 430px) {
  .user-profile-suggestions { grid-template-columns: 1fr; }
  .user-profile-stats button { flex-direction: column; gap: 3px; }
  .user-profile-discovery-heading h2 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-spin { animation: none; }
  .user-profile-page a, .user-profile-page button, .profile-avatar-grid button { transition: none; }
}

.profile-editor form { grid-template-columns: minmax(0, 1fr) minmax(270px, .95fr); gap: 24px 36px; }
.profile-editor .profile-editor-preview { display: block; grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.profile-editor .profile-editor-cover-preview { display: block; width: 100%; height: 136px; border-radius: 0; object-fit: cover; }
.profile-editor-preview-identity { display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 0 20px 15px; }
.profile-editor-preview-identity > img { position: relative; display: block; flex: 0 0 70px; width: 70px; height: 70px; margin-top: -20px; border: 4px solid var(--paper); border-radius: 50%; object-fit: cover; }
.profile-editor-preview-identity > div { min-width: 0; padding-top: 7px; }
.profile-editor .profile-editor-preview-identity small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 4px; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.profile-editor .profile-cover-picker, .profile-editor .profile-avatar-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-editor .profile-cover-picker { grid-column: 1 / -1; grid-row: 2; scroll-margin-top: 90px; }
.profile-editor .profile-avatar-picker { grid-column: 2; grid-row: 3 / span 2; }
.profile-editor .profile-cover-picker legend, .profile-editor .profile-avatar-picker legend { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 600; }
.profile-editor fieldset legend > span { color: var(--muted); font-size: 11px; font-weight: 400; }
.profile-editor .profile-cover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-cover-grid button { position: relative; display: block; min-width: 0; padding: 3px; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); transition: border-color .15s, transform .15s; }
.profile-cover-grid button img { display: block; width: 100%; aspect-ratio: 10 / 3; border-radius: 5px; object-fit: cover; }
.profile-cover-grid button span { display: block; padding: 6px 2px 1px; font-size: 12px; line-height: 1.4; }
.profile-cover-grid button.selected { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 5%, transparent); }
.profile-cover-grid button:hover:not(:disabled) { transform: translateY(-2px); }
.profile-cover-grid button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.profile-editor .profile-avatar-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.profile-editor .profile-avatar-grid button { max-width: 52px; }
.profile-editor .profile-avatar-grid button.selected { border-color: var(--teal); }
.profile-editor .profile-name-field { grid-column: 1; grid-row: 3; }
.profile-editor .profile-bio-field { display: grid; grid-column: 1; grid-row: 4; gap: 8px; font-size: 13px; }
.profile-bio-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.profile-bio-field small { color: var(--muted); font-weight: 400; font-size: 11px; line-height: 1.6; }
.profile-editor textarea { display: block; width: 100%; min-height: 105px; max-height: 260px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; background: var(--paper); color: var(--ink); font: inherit; line-height: 1.7; }
.profile-editor textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 12%, transparent); }
.profile-editor .profile-form-error, .profile-editor .profile-form-success, .profile-editor .profile-save-button { grid-column: 1 / -1; }
.profile-editor .profile-save-button { justify-self: end; }
.profile-cover-picker:disabled { opacity: .65; }
@media (max-width: 760px) {
  .profile-editor { padding: 22px; }
  .profile-editor form { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .profile-editor .profile-cover-picker { grid-column: 1; grid-row: 2; }
  .profile-editor .profile-name-field { grid-column: 1; grid-row: 3; }
  .profile-editor .profile-bio-field { grid-column: 1; grid-row: 4; }
  .profile-editor .profile-avatar-picker { grid-column: 1; grid-row: 5; }
  .profile-editor .profile-avatar-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 480px; gap: 8px; }
  .profile-editor .profile-cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .profile-editor .profile-editor-cover-preview { height: 118px; }
  .profile-editor .profile-save-button { width: 100%; }
}
@media (max-width: 430px) {
  .profile-editor { padding: 18px; }
  .profile-editor .profile-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profile-editor .profile-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .profile-editor-preview-identity { gap: 11px; padding-right: 14px; padding-left: 14px; }
  .profile-editor-preview-identity > img { flex-basis: 62px; width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-cover-grid button, .profile-avatar-grid button { transition: none; }
}
