/* Friends reuse the inbox palette: quiet rows, one accent for the next action. */
.social-tabs{display:flex;gap:4px;width:max-content;max-width:100%;margin:-12px 0 20px;padding:4px;border:1px solid var(--outline);border-radius:6px;background:var(--surface)}
.social-tabs a{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:4px;color:var(--muted);font-size:12px;font-weight:500}
.social-tabs a.active{background:var(--surface-raised);color:var(--prose);font-weight:700}
.friends-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.friends-main{display:grid;gap:20px;min-width:0}
.friend-section h2{font-size:16px;margin-bottom:12px}
.friend-subhead{font-size:12px;color:var(--muted);font-weight:600;margin:14px 0 4px}
.friend-rows{list-style:none;margin:0;padding:0}
.friend-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--outline)}
.friend-row:last-child{border-bottom:0}
.friend-row.is-unavailable .player-link{color:var(--muted)}
.friend-name{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;min-width:0;font-weight:600;font-size:13px}
.friend-name small{flex-basis:100%;font-weight:400;font-size:11px;color:var(--muted)}
.friend-row .actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.friend-row .button{font-size:12px;padding:7px 12px}
.friend-add .message-search{padding:0}
.friend-results{margin-top:8px}
.friend-results .friend-row{padding:10px 0}
.friend-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.friend-pill{white-space:nowrap}
.profile-message-note{max-width:240px;font-size:12px;color:var(--muted)}
.profile-head-to-head{margin-top:20px}
.profile-head-to-head .section-heading{margin:0 0 16px}
.profile-head-to-head .section-heading h2{font-size:18px}
.h2h-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.h2h-cell{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--outline);border-radius:6px;background:var(--surface-dim)}
.h2h-cell span{font-size:11px;color:var(--muted)}
.h2h-cell strong{font-family:var(--font-roll);font-size:13px;white-space:nowrap}
.h2h-cell i{font-style:normal;color:var(--muted)}
.message-invite{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px;padding:12px 14px;border:1px solid var(--outline-strong);border-radius:8px;background:var(--surface)}
.message-invite div{display:flex;flex-direction:column;gap:2px;min-width:0}
.message-invite strong{font-size:13px}
.message-invite span{font-size:11px;color:var(--muted)}
.message-invite .button{flex-shrink:0;font-size:12px;padding:7px 14px}
.message-restricted{margin:0 24px 20px;padding:12px 14px;border:1px dashed var(--outline-strong);border-radius:8px;font-size:12px}
.account-privacy{margin-top:20px}
.account-privacy p{margin:6px 0 14px;color:var(--prose-2);font-size:13px}
.account-toggle{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;cursor:pointer}
.account-toggle input{width:18px;height:18px;margin:0;accent-color:var(--action)}
.friend-dialog{width:min(460px,calc(100vw - 32px))}
.friend-dialog>p{color:var(--prose-2);font-size:13px;margin:0 0 12px}
.friend-invite-list{max-height:min(320px,50vh);overflow:auto;margin-bottom:12px;border-top:1px solid var(--outline)}
.friend-check{display:flex;align-items:center;gap:10px;width:100%;cursor:pointer;font-size:13px;font-weight:600}
.friend-check input{width:17px;height:17px;margin:0;accent-color:var(--action)}
.friend-check small{margin-left:auto;font-weight:400;font-size:11px;color:var(--muted)}
.friend-dialog .message-status{min-height:18px;margin-bottom:12px}
.board-scope{margin-left:auto}
.filters:has(.board-scope){display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.header-messages{display:none;position:relative;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:var(--muted)}
.header-messages.active,.header-messages:hover{color:var(--prose);background:var(--surface-raised)}
.header-messages svg{width:20px;height:20px}
.header-messages .message-unread{position:absolute;top:-3px;right:-5px;min-width:16px;height:16px;font-size:9px;padding:0 4px}
@media(max-width:1050px){.header-messages{display:inline-flex}}
@media(max-width:860px){.friends-layout{grid-template-columns:1fr}.friend-add{order:-1}.h2h-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h2h-cell:first-child{grid-column:1/-1}}
@media(max-width:520px){.friend-row{flex-direction:column;align-items:flex-start}.friend-row .actions{justify-content:flex-start}.message-invite{flex-direction:column;align-items:stretch}.board-scope{margin-left:0}.social-tabs{margin-top:-8px}}
