.friends-page { width: min(720px,100%); gap: 18px; }
.friends-layout { display: grid; gap: 18px; min-width: 0; }
.friends-card { background: #18181b; border: 1px solid #ffffff20; border-radius: 12px; padding: 20px; min-width: 0; }
.friends-card h2 { color: #f7f3ea; font: 700 23px/1.2 'Barlow Condensed',sans-serif; }
.friends-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.friends-count { display: inline-block; color: #b9b3a8; font: 500 12px/1.4 Inter,sans-serif; margin-left: 6px; vertical-align: middle; }
.friends-copy,.friends-status,.friends-notice p { font: 13px/1.7 Inter,sans-serif; color: #c8bfae; }
.friends-copy { margin-top: 10px; }
.friends-status:empty,.friends-copy:empty { display: none; }
.friends-status { margin: 0 2px; }
.friends-list { list-style: none; padding: 0; margin: 8px 0 0; }
.friends-list:empty { display: none; }
.friend-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid #ffffff12; }
.friend-row:last-child { border: 0; padding-bottom: 0; }
.friend-info { flex: 1; min-width: 0; }
.friend-meta { color: #aaa69e; font: 11px/1.6 Inter,sans-serif; margin-top: 4px; overflow-wrap: anywhere; }
.friend-last-seen { flex-shrink: 0; margin: 0; }
.friend-actions { display: flex; align-items: center; flex-shrink: 0; gap: 6px; justify-content: flex-end; }
.friend-action,.friends-text-button { color: #f5d76e; font: 600 12px/1.4 Inter,sans-serif; cursor: pointer; min-height: 44px; border-radius: 7px; }
.friend-action { border: 1px solid #ffffff20; background: #29292d; padding: 9px 12px; }
.friend-action.is-primary { color: #17140a; background: #f5ce53; border-color: #f5ce53; }
.friend-action.is-subtle,.friends-text-button { background: transparent; border: 0; padding: 8px 4px; }
.friend-row-friends .friend-action { color: #e6a3a3; }
.friend-action:disabled,.friends-text-button:disabled { opacity: .5; cursor: default; }
.friend-state { color: #b9b3a8; font: 12px/1.5 Inter,sans-serif; }
.friends-page a:hover,.friends-text-button:hover { color: #fff; }
.friends-page :is(a,button,input):focus-visible { outline: 2px solid #ffcc1a; outline-offset: 4px; }
.friends-list-note { font-size: 11px; margin-top: 18px; }
.friends-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.friends-card input,.friends-dialog input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #ffffff28; border-radius: 7px; background: #101012; color: #f1ede5; font: 16px/1.4 Inter,sans-serif; padding: 12px; }
.friends-card input::placeholder { color: #aaa69e; }
.friends-search { display: flex; gap: 8px; }
.friends-search .btn { flex-shrink: 0; padding: 10px 16px; font-size: 18px; }
.friends-invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-top: 1px solid #ffffff12; padding-top: 16px; margin-top: 16px; }
.friends-invite-row p { color: #d3c9b4; font: 14px/1.5 Inter,sans-serif; }
.friends-invite-row .btn,.friends-invite .btn { font-size: 18px; }
.friends-invite label { display: block; font: 600 12px/1.5 Inter,sans-serif; color: #c8bfae; margin: 16px 0 8px; }
.friends-invite .button-row { margin-top: 12px; }
.friends-your-id { margin-top: 20px; padding-top: 16px; border-top: 1px solid #ffffff17; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font: 11px/1.6 Inter,sans-serif; color: #aaa69e; }
.friends-your-id strong { font-weight: 500; color: #d3c9b4; overflow-wrap: anywhere; }
.friends-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #29251b; border: 1px solid #f5d76e40; border-radius: 12px; padding: 20px; }
.friends-dialog .friends-copy { margin: 10px 0 0; }
.friends-danger { border-color: #ce6565; }
@media(max-width:480px) {
 .friends-card { padding: 16px; }
 .friend-row { flex-wrap: wrap; gap: 4px 12px; }
 .friend-info { flex-basis: 100%; }
 .friend-actions { margin-left: auto; }
 .friend-row-friends { display: grid; grid-template-columns: minmax(0,1fr) auto; }
 .friend-row-friends .friend-info { grid-column: 1; }
 .friend-row-friends .friend-last-seen { grid-column: 1; grid-row: 2; }
 .friend-row-friends .friend-actions { grid-column: 2; grid-row: 1 / 3; }
 .friends-notice { align-items: flex-start; flex-direction: column; }
}
@media(max-width:360px) {
 .friends-search { flex-direction: column; }
}
