.profile-activity{border-top:1px solid var(--border);margin:16px 0;padding-top:14px}.profile-activity summary{cursor:pointer;font-weight:600;min-height:44px;line-height:1.6;overflow-wrap:anywhere}.user-activity-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.user-activity-filters label{margin:8px 0;font-size:calc(13px * var(--font-overall,1) * var(--font-body,1))}.user-activity-filters label:nth-child(3){grid-column:1/-1}.user-activity-filters input,.user-activity-filters select{min-width:0;max-width:100%}.user-activity-filters button{justify-self:start}.user-activity-notice{color:var(--muted);font-size:calc(12px * var(--font-overall,1) * var(--font-body,1));line-height:1.6;margin:10px 0}.user-activity-list{display:grid;gap:10px;margin:12px 0}.user-activity-card{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;min-width:0;padding:12px;border:1px solid var(--border);border-radius:10px;background:transparent;white-space:normal;overflow-wrap:anywhere}.user-activity-card b{font-size:calc(15px * var(--font-overall,1) * var(--font-title,1));line-height:1.5}.user-activity-card p{font-size:calc(13px * var(--font-overall,1) * var(--font-body,1));white-space:pre-wrap;line-height:1.6}.user-activity-card small,.user-activity-card time{color:var(--muted);font-size:calc(11px * var(--font-overall,1) * var(--font-status,1));line-height:1.6}.user-activity-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.user-activity-list+button[hidden]{display:none}

.profile-activity summary{font-size:calc(14px * var(--font-overall,1) * var(--font-menu,1))}

/* Expanded activity view: use the viewport, with a single dialog scroll surface. */
#profile-dialog.profile-activity-expanded{width:min(1100px,calc(100vw - 24px));max-width:1100px;height:calc(100dvh - 24px);max-height:960px;overflow:auto;scrollbar-gutter:auto}
#profile-dialog.profile-activity-expanded .profile-sheet{min-height:100%;box-sizing:border-box;display:block}
#profile-dialog.profile-activity-expanded .profile-dialog-heading{flex-shrink:0;margin-bottom:8px}
#profile-dialog.profile-activity-expanded .profile-identity{flex-shrink:0;margin-bottom:4px;min-width:0}
#profile-dialog.profile-activity-expanded .profile-identity>div:last-child{min-width:0}
#profile-dialog.profile-activity-expanded .profile-identity h3{font-size:calc(16px * var(--font-overall,1) * var(--font-section,1))}
#profile-dialog.profile-activity-expanded .profile-card-photo .profile-avatar{width:36px;height:36px}
#profile-dialog.profile-activity-expanded :is(.profile-bio-section,.profile-photo-section,.profile-handle-section,#profile-later){display:none}
#profile-dialog.profile-activity-expanded .profile-activity{display:block;margin:8px 0 0;padding-top:4px}
#profile-dialog.profile-activity-expanded .profile-activity>summary{flex-shrink:0}
#profile-dialog.profile-activity-expanded #profile-activity-host{overflow:visible;padding:0 0 12px;min-width:0}
.user-activity-filter-panel,.user-activity-scope{border-bottom:1px solid var(--border)}
.user-activity-filter-panel>summary,.user-activity-scope>summary{min-height:36px;line-height:1.6;padding:6px 0;font-weight:400}
.user-activity-filter-panel>summary{color:var(--primary)}
.user-activity-scope>summary{color:var(--muted)}
#profile-dialog .user-activity-card{padding:10px 12px;gap:3px;border-radius:8px}
#profile-dialog .user-activity-card b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:calc(14px * var(--font-overall,1) * var(--font-title,1));line-height:1.4}
#profile-dialog .user-activity-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45;margin:0}
#profile-dialog .user-activity-card :is(small,time){line-height:1.4}
#profile-dialog .user-activity-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;align-items:stretch}
#profile-dialog .user-activity-card small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:600px){#profile-dialog .user-activity-card{padding:10px 8px}}
@media(min-width:800px){.user-activity-filters{grid-template-columns:1fr 1fr 2fr auto;align-items:end}.user-activity-filters label:nth-child(3){grid-column:auto}.user-activity-filters button{margin-bottom:8px}}
@media(max-width:600px){#profile-dialog.profile-activity-expanded{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:12px}#profile-dialog.profile-activity-expanded .profile-sheet{padding:12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}#profile-dialog.profile-activity-expanded .profile-dialog-heading{margin:-12px -12px 8px;padding:8px 12px}}
