/* Only full profile pages change; chat/duo sidebars keep their existing layout. */
.profile-full-layout.profile-layout{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:28px;align-items:stretch;max-width:1200px;margin:0 auto}
.profile-full-layout .profile-sidebar{grid-column:1;grid-row:1;align-self:stretch;padding:0 20px 24px 0;background:none;border:0;border-right:1px solid #25332b;box-shadow:none;min-width:0}
.profile-sidebar .profile-social-tabs{position:sticky;top:108px;display:flex;flex-direction:column;align-items:stretch;gap:2px;flex-wrap:nowrap!important;margin:0;padding:0;border:0;white-space:normal;overflow:visible}
.profile-sidebar .profile-social-tabs a{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;padding:9px 12px;min-height:38px;border-radius:5px;color:#a7b6aa;font-size:14px;line-height:1.35}
.profile-sidebar .profile-social-tabs a:hover{color:var(--green);background:#aaff3508}
.profile-sidebar .profile-social-tabs a.active{color:var(--green);background:#aaff350c;box-shadow:inset 2px 0 var(--green)}
.profile-sidebar .profile-social-tabs a.active:after{display:none}
.profile-sidebar .profile-achievement-count{margin-left:auto;font-size:10px;color:#8fa885}
.profile-full-layout>main{grid-column:2;grid-row:1;width:100%}
.profile-full-layout>main,.profile-full-layout .profile-head-copy{min-width:0}
.profile-full-layout .profile-head{display:grid;grid-template-columns:156px minmax(0,1fr);align-items:center;gap:20px 32px;padding:32px;margin-bottom:36px;border-radius:8px}
.profile-full-layout .profile-head:has(.profile-head-actions){grid-template-columns:156px minmax(0,1fr) 168px}
.profile-full-layout .profile-head:has(.avatar-frame-overlay){row-gap:40px}
.profile-full-layout .profile-head .profile-avatar{grid-column:1;grid-row:1;width:156px;height:156px;min-width:156px;font-size:56px;overflow:visible;margin:0}
.profile-full-layout .profile-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-full-layout .profile-avatar .avatar-frame-overlay{inset:-21.111111%;width:142.222222%!important;height:142.222222%!important}
.profile-full-layout .profile-head-copy{grid-column:2;grid-row:1;width:100%;padding:0}
.profile-full-layout .profile-head-copy h1{font-size:42px;line-height:1.12;overflow-wrap:anywhere}
.profile-full-layout .profile-head-details{grid-column:1/-1;min-width:0}
.profile-full-layout .profile-about{margin:0 0 18px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
.profile-full-layout .profile-stat-row{display:grid;grid-template-columns:repeat(5,minmax(0,max-content));gap:12px 26px;margin:0}
.profile-full-layout .profile-stat-row>a,.profile-full-layout .profile-stat-row>.profile-stat{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:0}
.profile-full-layout .profile-stat-row b{font-size:19px;line-height:1.3}
.profile-full-layout .profile-stat-row span{font-size:10px}
.profile-full-layout .profile-head-actions{grid-column:3;grid-row:1;display:flex;flex-direction:column;min-width:0;width:100%;margin:0}
.profile-full-layout .profile-head-actions .button{width:100%;margin:0;white-space:normal}
.profile-friend-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-head-actions .profile-friend-actions{flex-direction:column}
.profile-friend-actions form{margin:0}
.profile-friend-actions .button{font-size:11px}
.profile-social-inline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:8px;max-width:100%;padding:17px 0 4px}
.profile-social-inline .profile-social-chip{width:100%;min-width:0;justify-content:flex-start}
.profile-social-inline .profile-social-settings{grid-column:1/-1}
.profile-social-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:34px;padding:5px 6px;border:1px solid #324a34;border-radius:6px;color:#d9e8d4;font-size:10px;line-height:1.4;text-decoration:none}
.profile-social-chip>span:last-child{min-width:0;overflow-wrap:anywhere}
.profile-social-chip:hover{border-color:var(--green);background:#18261a}
.profile-social-chip .social-link-mark{width:22px;height:22px;flex-basis:22px;font-size:8px}
.profile-social-settings,.profile-add-social{font-size:11px;white-space:nowrap;margin-top:12px}
.profile-social-inline .profile-social-settings{margin:3px 0 0}
.profile-social-entry{display:flex;align-items:center;gap:12px;border-bottom:1px solid #28362d;padding:8px 0}
.profile-social-entry:last-child{border-bottom:0}
.profile-social-entry>.profile-social-row{min-width:0;flex:1;border:0}
.profile-social-entry .profile-friend-actions{flex:0 0 auto}
.profile-relationship-status{color:#d8c899;font-size:12px}
.profile-relationship-status:empty{display:none}
.profile-dialog{display:flex;flex-direction:column;height:clamp(580px,78dvh,800px);min-height:580px;padding:0;overflow:visible;scroll-margin-top:110px;border-radius:10px}
.profile-dialog[hidden],.profile-full-layout [data-profile-body][hidden]{display:none!important}
.profile-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #2c3b30}
.profile-dialog-heading h2{font-size:20px;margin:0}
.profile-dialog-heading .button{font-size:11px;min-height:36px;margin:0}
.profile-dialog-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px;scrollbar-width:thin;scrollbar-color:#577143 #111a15;outline-offset:-3px}
.profile-dm-message{display:flex;justify-content:flex-start;margin:0 0 12px;padding:0;border:0}
.profile-dm-message.is-own{justify-content:flex-end}
.profile-dm-bubble{min-width:70px;max-width:min(78%,760px);padding:11px 14px 7px;background:#1b2921;border:0;border-radius:12px 12px 12px 3px;color:#e0e9dd}
.is-own>.profile-dm-bubble{background:#233b25;border-radius:12px 12px 3px 12px}
.profile-dm-body{white-space:normal;overflow-wrap:anywhere;line-height:1.65;font-size:13px}
.profile-dm-bubble time{display:block;margin-top:5px;text-align:right;font-size:10px;color:#9aaa96;line-height:1.3}
.profile-dialog .chat-inline-image{max-width:min(360px,100%);max-height:320px}
.profile-dialog .chat-inline-sticker{max-width:150px;max-height:150px}
.profile-dialog-empty{display:grid;place-items:center;min-height:100%;margin:0;text-align:center;color:#90a18d;font-size:13px}
.profile-dialog .profile-dialog-form.direct-form{grid-template-columns:minmax(0,1fr) 40px 44px!important;grid-template-rows:40px 40px!important;gap:7px!important;align-items:stretch;padding:15px 20px;border-top:1px solid #2c3b30;margin:0;background:#111b15;border-radius:0 0 10px 10px}
.profile-dialog-form>.character-count{display:none}
.profile-dialog .profile-dialog-form>.chat-compose-field{grid-row:1/3;grid-column:1;min-height:87px;min-width:0}
.profile-dialog-form .chat-composer-visual{height:100%;min-height:85px;max-height:160px;overflow:auto;font-size:13px;padding:11px 13px}
.profile-dialog .profile-dialog-form>.chat-picker-wrap{grid-column:2;grid-row:1}
.profile-dialog .profile-dialog-form>.chat-photo-button{grid-column:2;grid-row:2}
.profile-dialog .profile-dialog-form .chat-picker-toggle,.profile-dialog .profile-dialog-form>.chat-photo-button{width:40px!important;height:40px!important}
.profile-dialog .profile-dialog-form>button[type=submit]{grid-column:3;grid-row:1/3;width:44px!important;height:100%!important;min-height:87px!important}
.profile-dialog-form>textarea{grid-column:1;grid-row:1/3;min-width:0}
.profile-dialog-form>noscript{grid-column:1/-1}
.profile-dialog .profile-dialog-form .chat-attachment,.profile-dialog .profile-dialog-form .chat-compose-status{grid-column:1/-1;grid-row:auto}
.profile-dialog-status{margin:0;padding:10px 22px;font-size:12px;color:#e2cfa0}
.profile-dialog-status:empty{display:none}
@media(min-width:901px) and (max-width:1120px){
  .profile-full-layout.profile-layout{grid-template-columns:188px minmax(0,1fr)!important;gap:20px}
  .profile-full-layout .profile-sidebar{padding-right:12px}
  .profile-sidebar .profile-social-tabs a{font-size:13px;padding-inline:9px}
  .profile-full-layout .profile-head{padding:26px;grid-template-columns:128px minmax(0,1fr);gap:22px 26px}
  .profile-full-layout .profile-head:has(.profile-head-actions){grid-template-columns:128px minmax(0,1fr)}
  .profile-full-layout .profile-head .profile-avatar{width:128px;height:128px;min-width:128px}
  .profile-full-layout .profile-head-actions{grid-column:1/-1;grid-row:auto;flex-direction:row;flex-wrap:wrap}
  .profile-full-layout .profile-head-actions>form,.profile-full-layout .profile-head-actions>a,.profile-full-layout .profile-head-actions>.profile-friend-actions{flex:1 1 150px}
  .profile-social-inline{display:flex;flex-wrap:wrap}
  .profile-social-inline .profile-social-chip{width:auto;flex:0 1 auto}
  .profile-social-inline .profile-social-settings{flex-basis:100%}
}
@media(max-width:900px){
  .nav-about{display:none}
  .profile-full-layout.profile-layout,.profile-full-layout.profile-own-layout{display:block!important}
  .profile-full-layout .profile-sidebar{margin-bottom:20px;padding:0 0 14px;border-right:0;border-bottom:1px solid #25332b}
  .profile-sidebar .profile-social-tabs{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;white-space:normal}
  .profile-sidebar .profile-social-tabs a{font-size:12px;min-width:0;min-height:37px;padding:8px;overflow-wrap:anywhere}
  .profile-full-layout>main{display:block}
  .profile-full-layout .profile-head,.profile-full-layout .profile-head:has(.profile-head-actions){grid-template-columns:100px minmax(0,1fr);padding:24px;gap:22px 24px;margin-bottom:24px}
  .profile-full-layout .profile-head .profile-avatar{width:100px;height:100px;min-width:100px;font-size:38px}
  .profile-full-layout .profile-head-copy h1{font-size:clamp(22px,6.4vw,36px)}
  .profile-full-layout .profile-head .eyebrow{font-size:8px;letter-spacing:.1em}
  .profile-full-layout .profile-head .profile-login{font-size:10px;overflow-wrap:anywhere}
  .profile-full-layout .profile-head-copy .muted{font-size:11px;overflow-wrap:anywhere}
  .profile-full-layout .profile-head-copy .profile-inline-edit{font-size:10px;line-height:1.4}
  .profile-full-layout .profile-stat-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 6px}
  .profile-full-layout .profile-stat-row b{font-size:17px}
  .profile-full-layout .profile-stat-row span{font-size:8px;overflow-wrap:anywhere}
  .profile-social-inline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-full-layout .profile-head-actions{grid-column:1/-1;grid-row:auto;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;min-width:0}
  .profile-head-actions>.profile-friend-actions{flex:1 1 auto;flex-direction:row}
  .profile-full-layout .profile-head-actions form,.profile-full-layout .profile-head-actions>a{flex:1 1 140px}
  .profile-full-layout .profile-head-actions .settings-gear{flex:0 0 38px}
  .profile-dialog{height:clamp(550px,78dvh,760px);min-height:550px;scroll-margin-top:190px}
  .profile-dialog-heading{padding:14px;gap:10px}
  .profile-dialog-heading h2{font-size:17px}
  .profile-dialog-heading .button{font-size:10px;padding:7px 9px}
  .profile-dialog-messages{padding:16px 12px}
  .profile-dm-bubble{max-width:90%;padding:9px 11px 6px}
  .profile-social-entry{flex-wrap:wrap}
  .profile-social-entry>.profile-friend-actions{margin-left:56px}
  .profile-dialog .profile-dialog-form.direct-form{padding:12px 10px;grid-template-columns:minmax(0,1fr) 36px 38px!important;grid-template-rows:36px 36px!important;gap:5px!important}
  .profile-dialog .profile-dialog-form .chat-picker-toggle,.profile-dialog .profile-dialog-form>.chat-photo-button{width:36px!important;height:36px!important}
  .profile-dialog .profile-dialog-form>button[type=submit]{width:38px!important;min-height:77px!important}
  .profile-dialog .profile-dialog-form>.chat-compose-field{min-height:77px}
  .profile-dialog-form .chat-composer-visual{min-height:75px}
}
