.profile-card{padding:0;overflow:visible}
.profile-cover{position:relative;width:100%;height:auto;aspect-ratio:2048 / 682;background:var(--accent-soft)}
.profile-cover-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.profile-cover-open{position:absolute;inset:0;display:block;overflow:hidden}
.profile-avatar-open-plain{display:block;flex:0 0 auto;border-radius:50%}
.profile-avatar-open-plain img{display:block}
.profile-cover-placeholder{position:absolute;inset:0;width:100%;height:100%;background:linear-gradient(120deg,#dce9e5 0%,#c8d9e8 48%,#e4d7ed 100%)}
.profile-card-body{padding:0 22px 20px}
.profile-identity{display:flex;align-items:center;gap:16px;margin-top:14px;position:relative}
.profile-identity .avatar-large{width:96px;height:96px;border:4px solid var(--surface);box-shadow:0 2px 8px #0002}
.profile-copy{flex:1;min-width:180px;padding-bottom:7px}
.profile-copy h1{margin:0 0 5px}
.profile-page .profile-copy .profile-location{display:flex;align-items:center;gap:6px;margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.profile-copy p:last-child{margin:0}
.profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.profile-actions form{margin:0}
.cover-setting-preview{position:relative;width:100%;max-width:720px;height:auto;aspect-ratio:2048 / 682;display:grid;place-items:center;overflow:visible;border-radius:8px;background:linear-gradient(120deg,#dce9e5 0%,#c8d9e8 48%,#e4d7ed 100%);color:#40566a}
.cover-setting-preview img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.community-profile-card{padding:0 0 12px;overflow:visible}
.community-profile-cover{position:relative;display:block;width:100%;height:auto;aspect-ratio:2048 / 682;background:var(--accent-soft)}
.community-profile-cover img,.community-cover-placeholder{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.community-cover-placeholder{background:linear-gradient(120deg,#dce9e5 0%,#c8d9e8 48%,#e4d7ed 100%)}
.community-profile-summary{padding:0 14px;margin-top:0;position:relative}
.community-profile-link{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.community-profile-avatar{width:48px;height:48px;border:3px solid var(--surface)}
.community-profile-edit{margin:9px 14px 0;font-size:14px}
@media(max-width:520px){.profile-card-body{padding:0 15px 16px}.profile-identity{align-items:center;gap:10px;margin-top:12px}.profile-identity .avatar-large{width:70px;height:70px}.profile-copy{min-width:0;padding-top:0}.profile-copy h1{font-size:24px}.profile-actions{align-items:stretch}.profile-actions form,.profile-actions button{max-width:100%}}

/* Perfil individual: identidade, publicações e informação pública. */
.profile-page{max-width:1124px;margin:0 auto}
.profile-page .profile-card{padding:0;overflow:visible;border-radius:16px;border-color:var(--line);box-shadow:0 8px 26px rgba(33,72,58,.08)}
.profile-page .profile-cover{overflow:hidden;border-radius:15px 15px 0 0;background:linear-gradient(125deg,#e1eee8 0%,#dce8f2 52%,#f7ecd4 100%)}
.profile-page .profile-cover-image{object-fit:contain}
.profile-page .profile-cover-placeholder{background:radial-gradient(ellipse at 85% 15%,rgba(255,255,255,.86),transparent 34%),linear-gradient(125deg,#e1eee8 0%,#dce8f2 52%,#f7ecd4 100%)}
.profile-page .profile-card-body{padding:0 28px 22px}
.profile-page .profile-identity{align-items:flex-end;gap:18px;margin:16px 0 0;min-width:0}
.profile-page .profile-avatar{position:relative;width:104px;height:104px;border:5px solid var(--surface);box-shadow:0 5px 18px rgba(24,55,44,.17)}
.profile-page .profile-copy{min-width:0;padding:0 0 8px}
.profile-page .profile-copy h1{margin:0;font-size:clamp(26px,3vw,34px);overflow-wrap:anywhere}
.profile-page .profile-copy .eyebrow{margin-bottom:4px}
.profile-page .profile-private-avatar{font-size:26px}
.profile-page .profile-actions{margin:14px 0 0 122px;gap:8px}
.profile-page .profile-actions form{display:flex;align-items:center}
.profile-page .profile-actions .text-button{min-height:40px}
.profile-settings-link{margin:12px 0 18px}
.profile-content-grid{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(235px,.95fr);gap:24px;align-items:start;margin-top:22px}
.profile-content-grid-single{grid-template-columns:minmax(0,850px);justify-content:center}
.profile-page .profile-posts{min-width:0;max-width:none;margin:0}
.profile-page .profile-posts>h2{margin:0 0 12px;padding-left:2px}
.profile-page .post{min-width:0;margin-bottom:15px;padding:20px;border-radius:13px;box-shadow:0 3px 14px rgba(21,55,43,.045)}
.profile-page .post-head{min-width:0;align-items:flex-start}
.profile-page .post-head>div{min-width:0;flex:1}
.profile-page .person-link{min-width:0;max-width:100%}
.profile-page .person-link span:last-child{min-width:0}
.profile-page .person-link strong{overflow-wrap:anywhere}
.profile-page .post-body{margin:15px 0;line-height:1.72;white-space:normal;overflow-wrap:anywhere}
.profile-page .post-media-link{display:grid;place-items:center;max-width:100%;overflow:hidden;border-radius:9px;background:var(--page)}
.profile-page .post-image{width:auto;height:auto;max-width:100%;max-height:min(72vh,680px);object-fit:contain;margin:0}
.profile-page .post-video{max-width:100%;margin-inline:auto}
.profile-page .post-meta{gap:12px;flex-wrap:wrap;padding:11px 2px;color:var(--muted)}
.profile-page .post-actions{gap:6px 10px;flex-wrap:wrap;padding:7px 0 1px}
.profile-page .post-actions .text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 11px;border-radius:8px;text-decoration:none}
.profile-page .post-actions .text-button:hover{background:var(--accent-soft)}
.post-action-icon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-page .post-actions form:first-child .post-action-icon{fill:none}
.profile-sidebar{min-width:0}
.profile-info-card{position:sticky;top:88px;padding:20px;border-radius:13px;border-top:3px solid #cfb36e;box-shadow:0 3px 14px rgba(21,55,43,.045)}
.profile-info-card h2{margin:0 0 10px}
.profile-info-card p{margin:0;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-no-posts{padding:20px 22px;border:1px dashed var(--line);border-radius:12px;background:var(--surface)}
.profile-private-state{max-width:850px;margin:22px auto}
.post-menu{position:relative;flex:none}
.post-menu-trigger{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);cursor:pointer;list-style:none}
.post-menu-trigger::-webkit-details-marker{display:none}
.post-menu-trigger::marker{content:""}
.post-menu-trigger:hover{background:var(--accent-soft);color:var(--accent-strong)}
.post-menu-trigger svg{width:19px;height:19px;fill:currentColor}
.post-menu-panel{position:absolute;z-index:4;top:calc(100% + 6px);right:0;min-width:180px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 10px 28px rgba(20,42,33,.17)}
.post-menu-panel form{margin:0}
.post-delete-action{width:100%;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--coral);text-align:left;cursor:pointer}
.post-delete-action:hover{background:var(--page)}
.profile-page .comment-form,.profile-comments-page .comment-form{align-items:stretch;gap:9px}
.profile-page .comment-form textarea,.profile-comments-page .comment-form textarea{width:auto;flex:1;min-width:0;min-height:44px;max-height:180px;resize:vertical}
.profile-page .comment-submit,.profile-comments-page .comment-submit{align-self:flex-end;min-width:84px}
.profile-comments-page .comment-list{padding:22px;border-radius:13px}
.profile-comments-page .comment-list h2{margin-bottom:4px}
.profile-comments-page .comment-item:last-of-type{border-bottom:0}
.profile-comments-page .comment-item form{flex:none;margin:0}
@media(max-width:820px){.profile-content-grid{grid-template-columns:minmax(0,1fr);gap:14px}.profile-sidebar{grid-row:1}.profile-info-card{position:static}.profile-content-grid-single{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.profile-page .profile-cover{aspect-ratio:2048 / 682}.profile-page .profile-card-body{padding:0 15px 17px}.profile-page .profile-identity{align-items:flex-end;gap:11px;margin-top:13px}.profile-page .profile-avatar{width:76px;height:76px;border-width:4px}.profile-page .profile-copy{padding-bottom:3px}.profile-page .profile-copy h1{font-size:clamp(22px,7vw,28px)}.profile-page .profile-copy .eyebrow{font-size:10px}.profile-page .profile-actions{margin:13px 0 0;align-items:stretch}.profile-page .profile-actions form{max-width:100%}.profile-page .profile-actions .button{max-width:100%;padding-inline:10px}.profile-content-grid{margin-top:17px}.profile-page .post{padding:15px;border-radius:11px}.profile-page .post-meta{justify-content:flex-start}.profile-page .comment-form{flex-direction:column}.profile-page .comment-submit{align-self:stretch;width:100%}.profile-info-card{padding:17px}.profile-comments-page .comment-list{padding:17px}}
