.profile-avatar{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;overflow:hidden;border-radius:30%;vertical-align:middle;background:#e8ece2;color:#2b4739;font-weight:700;line-height:1}
.profile-avatar>svg{display:block;width:100%;height:100%}.profile-initial{font-size:1.1rem}.profile-avatar-large{width:68px;height:68px}.profile-avatar-large .profile-initial{font-size:1.8rem}
body[data-section] .bartools>.avatar:has(.profile-avatar){padding:0;width:40px;height:40px;background:transparent;box-shadow:none;overflow:visible}.bartools>.avatar .profile-avatar{width:40px;height:40px;border-radius:50%;box-shadow:0 0 0 1px var(--line)}
.profile-summary{display:flex;align-items:center;gap:16px;padding:22px 0 0;margin-top:20px;border-top:1px solid var(--line)}.profile-summary>div{flex:1;min-width:0}.profile-summary h3{margin:0 0 6px;font-size:1.1rem}.profile-summary p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}
.profile-picker-intro{color:var(--muted);margin:4px 0 16px}.profile-picker-preview{display:flex;gap:14px;align-items:center;padding:14px;border-radius:18px;background:var(--paper-tint);margin-bottom:22px}.profile-picker-preview .profile-avatar{width:64px;height:64px}.profile-picker-preview small,.profile-picker-preview strong{display:block}.profile-picker-preview small{font-size:.8rem;color:var(--muted);margin-bottom:4px}
#modal:has(#profileAvatarForm){width:min(660px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#profileAvatarForm .dialogactions{position:sticky;bottom:-24px;z-index:2;background:var(--card);padding:14px 0;margin-bottom:0;border-top:1px solid var(--line)}
#profileAvatarForm .profile-options{border:0;padding:0;margin:0 0 20px;min-width:0}#profileAvatarForm legend{font-size:.9rem;font-weight:700;margin:0 0 10px;padding:0;color:var(--ink)}.profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#profileAvatarForm .profile-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:8px;min-width:0;margin:0;padding:12px 6px 10px;border:2px solid var(--line);border-radius:16px;background:var(--card);cursor:pointer;color:var(--ink);text-align:center}
#profileAvatarForm .profile-choice input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}#profileAvatarForm .profile-choice .profile-avatar{width:72px;height:72px;max-width:100%;pointer-events:none}#profileAvatarForm .profile-choice-name{font-size:.82rem;font-weight:600;line-height:1.35;pointer-events:none}
#profileAvatarForm .profile-choice:has(input:checked){border-color:var(--green);background:var(--paper-tint);box-shadow:0 0 0 1px var(--green)}#profileAvatarForm .profile-choice:has(input:focus-visible){outline:3px solid var(--green);outline-offset:3px}.profile-choice-check{position:absolute;right:5px;top:5px;width:21px;height:21px;border-radius:50%;display:none;place-items:center;background:#315b44;color:#fff;pointer-events:none}.profile-choice:has(input:checked) .profile-choice-check{display:grid}
.profile-default{display:flex;align-items:center;gap:14px}.profile-default>.profile-choice{width:100px;flex:none}#profileAvatarForm .profile-default .profile-avatar{width:38px;height:38px}.profile-default p,.profile-picker-note{font-size:.85rem;line-height:1.5;color:var(--muted)}.profile-picker-note{display:flex;align-items:start;gap:8px;margin:18px 0}.profile-picker-note svg{flex:none;margin-top:2px}
.family-member-chip>.profile-avatar{width:28px;height:28px;border-radius:50%}.hh-person>.profile-avatar{width:42px;height:42px;border-radius:50%}.hh-person>.profile-member-actions{display:flex;flex:0 1 auto;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.profile-summary{flex-wrap:wrap;gap:12px}.profile-summary>.btn{margin-left:80px}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#profileAvatarForm .profile-choice .profile-avatar{width:76px;height:76px}#profileAvatarForm .profile-choice-name{font-size:.875rem}.hh-person:has(.profile-member-actions){flex-wrap:wrap}.hh-person>.profile-member-actions{flex-basis:100%;justify-content:flex-start;margin-left:48px}.profile-default p{flex:1}}
