.social-page{max-width:900px;margin:32px auto;color:#25364b}.social-header,.social-bio,.social-wall{background:#fff;border:1px solid #e7edf5;border-radius:20px;padding:30px;margin-bottom:22px}.social-header{display:flex;align-items:center;gap:22px}.social-header h1{margin:0 0 10px;font-size:30px}.social-header>.btn-primary,.social-header>form{margin-left:auto}.social-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;object-fit:cover;border-radius:50%;background:#e8efff;color:#3565bb;font-weight:700;font-size:20px}.social-header>.social-avatar{width:90px;height:90px;font-size:38px}.social-status{background:#f4edda;color:#846522;padding:6px 12px;border-radius:20px}.social-bio p,.wall-post p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.social-page h2{font-size:20px;margin:0 0 20px}.social-person{display:inline-flex;align-items:center;gap:10px;color:#315888;text-decoration:none;font-weight:600;overflow-wrap:anywhere}.wall-composer{display:grid;gap:12px;margin-bottom:28px}.wall-composer textarea,.profile-settings textarea{width:100%;min-height:95px;border:1px solid #d9e1ed;border-radius:12px;padding:14px;font:inherit;box-sizing:border-box}.wall-composer button{justify-self:end}.wall-post{border-top:1px solid #e7edf5;padding:24px 0 8px}.wall-post header{display:flex;align-items:center;justify-content:space-between;gap:10px}.wall-post time,.social-empty,.connection-people p{font-size:13px;color:#7a8798}.wall-post .social-action button{background:transparent;color:#8b5960;padding:8px 0;box-shadow:none}.connection-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7edf5;padding:18px 0;flex-wrap:wrap}.connection-row>.social-person{margin-right:auto}.connections-widget{border-top:1px solid #e5eaf2;padding-top:22px;margin-top:22px}.connections-widget h2{font-size:18px}.connection-people{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}.connection-people .social-person{flex-direction:column;font-size:12px;max-width:85px}.connections-widget>a{font-size:14px;color:#3565bb}.profile-settings{margin:24px 0;padding:24px 0;border-block:1px solid #e7edf5}.profile-settings form,.profile-settings label{display:grid;gap:12px}.social-feedback{color:#b33146}.social-action button{min-height:42px;cursor:pointer}@media(max-width:650px){.social-page{margin:18px 0}.social-header{flex-wrap:wrap;padding:22px}.social-header>.btn-primary,.social-header>form{margin-left:0}.social-bio,.social-wall{padding:22px}.wall-post header{flex-wrap:wrap}.social-header h1{font-size:25px}}

/* Compact connection list; keep actions secondary to people. */
.social-page .connection-row{flex-wrap:nowrap;gap:12px;padding:12px 0}
.connection-row>.social-person{flex:1;min-width:0}
.connection-row>.social-person>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connection-row>.social-action{flex-shrink:0;margin:0}
.connection-row .social-action button{min-height:36px;padding:7px 11px;border:1px solid #dbe3ed;border-radius:9px;background:#f8fafc;color:#496078;font:inherit;font-size:12px;line-height:1.3;box-shadow:none;white-space:nowrap}
.connection-row .social-action[action$="/remove"] button{border-color:#f2dce0;background:#fff8f8;color:#b54757}
.connection-row .social-action[action$="/remove"] button:hover{background:#fcebed;border-color:#eab7c0}
.connection-row .social-action[action$="/accept"] button{background:#edf7f2;color:#267052;border-color:#d5eade}
.connection-row .social-action button:focus-visible,.connections-widget a:focus-visible{outline:2px solid #3565bb;outline-offset:3px}
.connections-widget{margin-top:18px;padding-top:18px}
.connections-widget h2{margin:0 0 12px;font-size:16px}
.connections-widget .connection-people{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 8px;margin:0 0 12px}
.connections-widget .connection-people .social-person{display:flex;flex-direction:column;gap:5px;width:48px;max-width:48px;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:#496078;font-size:10px;line-height:1.3;text-align:center;text-decoration:none}
.connections-widget .social-avatar{width:32px;height:32px;font-size:14px}
.connections-widget .social-person>span:last-child:not(.social-avatar){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connections-widget .connection-people p{margin:0}
.connections-widget a.connections-all{display:inline-block;padding:2px 0;border:0;border-radius:0;background:transparent;color:#3565bb;font-size:12px;font-weight:500;text-decoration:none}
.connections-widget a.connections-all:hover{text-decoration:underline;background:transparent}
@media(max-width:650px){.connection-row .social-avatar{width:36px;height:36px;font-size:16px}.connection-row .social-action button{min-height:44px;padding:8px}.connection-row>.social-person{gap:8px;font-size:13px}}

/* Public profile shell, compact composer and nickname lookup. */
.social-page .social-header .profile-edit{width:auto;flex:0 0 auto;padding:9px 14px;font-size:13px;min-height:36px;box-shadow:none}
.social-page .wall-composer>.btn-primary{width:auto;min-height:38px;padding:9px 18px;font-size:13px;justify-self:end;box-shadow:none}
.wall-composer{gap:0}.wall-composer>label{margin-bottom:12px}.wall-composer>.btn-primary{margin-top:12px}
.wall-composer .ql-toolbar{border-radius:12px 12px 0 0;border-color:#d9e1ed;background:#fafcff}
.wall-composer .ql-container{border-radius:0 0 12px 12px;border-color:#d9e1ed;font:inherit;min-height:120px}
.wall-content{line-height:1.7;overflow-wrap:anywhere}.wall-content img{max-width:100%;height:auto}.wall-content p{margin:10px 0}
.user-search{margin:22px 0 30px}.user-search label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}
.user-search input{width:100%;box-sizing:border-box;padding:13px 15px;border:1px solid #d9e1ed;border-radius:12px;font:inherit;background:white}
#user-search-results{margin-top:10px}#user-search-results:empty{display:none}
@media(max-width:650px){.social-page .social-header .profile-edit,.social-page .wall-composer>.btn-primary{min-height:44px}}

.social-page .wall-composer .ql-toolbar button{min-height:24px;width:28px;height:24px;padding:3px 5px;box-shadow:none;border-radius:0}

/* Keep all profile actions compact and visually balanced. */
.social-header .profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;align-items:center;justify-content:flex-end}
.social-header .profile-actions .btn-primary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-height:36px;margin:0;padding:8px 12px;font-size:13px;line-height:20px;border:1px solid transparent;border-radius:8px;text-decoration:none;white-space:nowrap}
.social-header .profile-actions form{margin:0}
.social-header .profile-actions .profile-connection-state{background:#f1f5f9;color:#475569;border-color:#e2e8f0;box-shadow:none}
.social-header .profile-actions .profile-connection-state:hover{background:#e2e8f0;color:#334155}
@media(max-width:700px){.social-header{flex-wrap:wrap}.social-header .profile-actions{width:100%;margin-left:0;justify-content:flex-start}}

/* Credit history follows the same rhythm as bio and wall cards. */
.social-page > .credit-profile{margin:0 0 22px;padding:30px;border:1px solid #e7edf5;border-radius:20px}
@media(max-width:650px){.social-page > .credit-profile{padding:20px}}
