/* Message first: scoped to profile relationships, preserving feed/chat controls. */
#view .profile-actions{position:relative;width:100%;margin:16px 0 8px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);isolation:isolate}
#view .profile-action-row{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:10px;max-width:680px;margin:0 auto}
#view .profile-action-row>.profile-action-button,#view .profile-friend-slot{flex:0 1 auto;min-width:0}
#view .profile-friend-slot,#view .profile-more-slot{position:relative}
#view .profile-more-slot{flex:0 0 48px;width:48px}
#view .profile-action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;max-width:100%;padding:12px 18px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--text);font-weight:600;font-family:inherit;font-size:14px;line-height:1.25;white-space:normal;transition:background .15s,border-color .15s}
#view .profile-action-button>span{min-width:0;overflow-wrap:anywhere}
#view .profile-friend-slot>.profile-action-button{width:100%;height:100%}
#view .profile-action-button svg,#view .profile-action-popover svg{display:block;width:19px;height:19px;min-width:19px;flex:none}
#view .profile-action-button:hover:not(:disabled){background:var(--panel2);border-color:var(--accent);color:var(--text)}
#view .profile-action-button.profile-action-message{min-width:140px;background:linear-gradient(110deg,var(--primary),var(--accent));border-color:transparent;color:#fff}
#view .profile-action-button.profile-action-message:hover:not(:disabled){filter:brightness(1.1);color:#fff}
#view .profile-action-button.profile-action-selected{background:#281b39;background:color-mix(in srgb,var(--primary) 18%,var(--panel));border-color:#775297;border-color:color-mix(in srgb,var(--primary) 65%,var(--line));color:var(--text)}
#view .profile-action-button.profile-action-more{width:48px;height:100%;min-width:44px;padding:0;background:var(--bg)}
#view .profile-action-button:disabled{cursor:wait;opacity:.55}
#view .profile-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#view .profile-action-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:40;display:grid;gap:4px;width:210px;max-width:calc(100vw - 48px);padding:6px;border:1px solid var(--line);border-radius:13px;background:var(--panel2);box-shadow:0 12px 32px #0006}
#view .profile-friend-popover{left:0;right:auto}
#view .profile-action-popover[hidden],#view .profile-action-status[hidden]{display:none!important}
#view .profile-action-popover>button{display:flex;align-items:center;gap:10px;min-height:44px;padding:12px;border:0;border-radius:8px;background:transparent;color:var(--text);font-family:inherit;font-size:14px;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere}
#view .profile-action-popover>button:hover:not(:disabled){background:var(--bg)}
#view .profile-action-popover>[data-block]{color:#ffc0cc}
#view .profile-action-status{margin:12px 0 0;font-size:14px;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
@media(max-width:720px){
 #view .profile-actions{margin:10px 0 4px;padding:12px;border-radius:16px}
 #view .profile-action-row{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) 44px;gap:10px 8px;max-width:none}
 #view .profile-action-row>.profile-action-message{grid-column:1/-1;min-width:0;width:100%}
 #view .profile-action-button{padding:11px 8px;gap:6px;font-size:13px;min-height:48px;min-width:0}
 #view .profile-action-button svg{width:18px;height:18px;min-width:18px}
 #view .profile-more-slot{width:44px}
 #view .profile-action-button.profile-action-more{width:44px;min-width:44px}
}
@media(max-width:359px){
 #view .profile-actions{padding:10px}
 #view .profile-action-button{padding:10px 6px;gap:5px}
 #view .profile-action-button[data-friend] svg,#view .profile-action-button[data-follow] svg{width:16px;height:16px;min-width:16px}
}
@media(prefers-reduced-motion:reduce){#view .profile-action-button{transition:none}}
