.content.friends-open>.intro,.content.friends-open>.stats,.content.friends-open>.journal,.content.friends-open>.note,.content.friends-open>.mobile-import{display:none!important}
#friends-page h1{margin:12px 0}#friends-page>p{font-size:13px;color:#77856d;line-height:1.8}.friend-request{display:flex;gap:12px;align-items:flex-end;margin:24px 0}.friend-request label{flex:1;font-size:12px}.friend-request input,.friend-record textarea{display:block;width:100%;border:1px solid var(--line);border-radius:6px;padding:12px;margin-top:8px;background:#fff;color:var(--ink);font:inherit;box-sizing:border-box}.friend-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.friend-groups>section,.friend-record,.social-note{background:#fff;border:1px solid var(--line);padding:20px;border-radius:8px;min-width:0}.friend-person{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:12px}.friend-person small,.friend-comment small{color:#8c9980}.friend-person button{font-size:12px;color:var(--green);padding:8px 10px 0 0}.friend-record{margin:18px 0}.friend-record h3{margin:0 0 12px}.friend-review,.friend-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px}.friend-comment{margin:12px 0;padding:12px;border-left:3px solid #b4c6a2;background:#f4f7ee;font-size:12px}.friend-comment button{font-size:11px;color:#8a6e5a}.friend-record form label{font-size:12px}.friend-record form button{margin-top:10px}#friends-error,.friend-record [role=alert]{color:#a35f4e;font-size:12px}.friend-pages{display:flex;gap:20px;justify-content:center;margin:20px}.friend-pages button{color:var(--green)}#my-social-comments{margin-top:28px}.social-note{margin:12px 0}.social-note>button{text-align:left;font-size:12px;color:var(--green)}
@media(max-width:760px){.friend-groups{grid-template-columns:1fr}.friend-request{flex-direction:column;align-items:stretch}.friend-request input,.friend-record textarea{font-size:16px}#my-social-comments .section-head{align-items:flex-start;gap:10px}}
/* Accepted friends lead the page; requests and adding friends follow below. */
#friends-page .friends-collection{margin:26px 0 20px;padding:24px;border:1px solid #b9cdbb;border-radius:18px;background:#edf4ed}
#friends-page .friends-collection-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
#friends-page .friends-collection-heading h2{display:flex;align-items:center;gap:10px;font-size:24px;color:#173e30;margin:0}
#friends-page #friends-count{font-size:14px;font-weight:600;white-space:nowrap;background:#214f43;color:#fff;padding:5px 10px;border-radius:20px}
#friends-page .friends-collection-heading p{font-size:14px;line-height:1.7;color:#49634f;margin:8px 0 0}
#friends-page #friends-refresh{flex:none;min-height:40px;font-size:13px;background:white;border-color:#b9cdbb}
#friends-page .friends-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#friends-page .friend-card{padding:20px;border:1px solid #cadbca;border-radius:14px;background:#fff;box-shadow:0 4px 12px #244f4210;min-width:0}
#friends-page .friend-card-head{display:flex;align-items:center;gap:14px;min-width:0}
#friends-page .friend-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:50%;background:#dfebdd;color:#214f43;font-size:24px;font-weight:700}
#friends-page .friend-identity{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
#friends-page .friend-identity b{font-size:19px;line-height:1.5;color:#173e30}
#friends-page .friend-identity small{font-size:13px;color:#58705a}
#friends-page .friend-card-actions{display:flex;align-items:center;gap:10px;margin-top:18px}
#friends-page .friend-profile-button{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;min-height:44px;border-radius:8px;background:#214f43;color:#fff;font-size:14px;font-weight:600;padding:10px 14px;text-align:left}
#friends-page .friend-profile-button:hover{background:#173e30}
#friends-page .friend-manage{position:relative;flex:none}
#friends-page .friend-manage summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:40px;min-height:44px;border:1px solid #d5dfd0;border-radius:8px;color:#58705a;font-size:23px}
#friends-page .friend-manage summary::-webkit-details-marker{display:none}
#friends-page .friend-manage button{position:absolute;right:0;top:48px;z-index:2;min-width:100px;padding:12px;background:#fff;border:1px solid #e6d4cc;border-radius:8px;box-shadow:0 4px 14px #253e2320;color:#9b4635;font-size:13px;white-space:nowrap}
#friends-page .friend-manage summary:focus-visible,#friends-page .friend-profile-button:focus-visible{outline:3px solid #a0bda0;outline-offset:3px}
#friends-page .friends-empty{grid-column:1/-1;text-align:center;padding:30px 16px;background:#ffffffb3;border:1px dashed #b9cdbb;border-radius:12px}
#friends-page .friends-empty>span{font-size:36px;color:#426c4b}
#friends-page .friends-empty h3{font-size:18px;margin:12px 0 8px;color:#214f43}
#friends-page .friends-empty p{font-size:14px;line-height:1.8;margin:0;color:#58705a}
#friends-page .friends-list-loading{grid-column:1/-1;padding:20px;margin:0;font-size:14px;color:#49634f}
#friends-page .friend-add-section{margin-top:28px;padding:20px;border:1px solid #dce4d5;border-radius:13px;background:#fff}
#friends-page .friend-add-section h2,#friends-page .friend-groups h2{font-size:17px;color:#52664c;margin:0 0 12px}
#friends-page .friend-request{margin:0}
#friends-page .friend-groups{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}
@media(max-width:900px){#friends-page .friends-card-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#friends-page .friends-collection{padding:18px 14px;margin-top:20px}#friends-page .friends-collection-heading{flex-wrap:wrap;gap:12px}#friends-page .friends-collection-heading h2{font-size:22px}#friends-page .friends-collection-heading p{font-size:13px}#friends-page .friend-card{padding:16px}#friends-page .friend-identity b{font-size:18px}#friends-page .friend-groups{grid-template-columns:minmax(0,1fr)}}

#friends-page .friend-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;padding:14px 8px;background:#f2f6ef;border-radius:10px;text-align:center}
#friends-page .friend-card-stats>div{min-width:0}
#friends-page .friend-card-stats>div+div{border-left:1px solid #dce6d7}
#friends-page .friend-card-stats dt{font-size:11px;line-height:1.6;color:#58705a}
#friends-page .friend-card-stats dd{margin:5px 0 0;font-size:23px;font-weight:700;line-height:1.3;color:#214f43;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#friends-page .friend-card-stats dd small{font-size:12px;margin-left:3px;font-weight:400}
#friends-page .friend-card-meta{font-size:12px;line-height:1.7;color:#58705a;margin:9px 0 0;overflow-wrap:anywhere}

.comment-replies{list-style:none;margin:12px 0 0;padding:0 0 0 12px;border-left:1px solid #b4c6a2}
.comment-reply{padding:10px 12px;background:#fff;border-radius:6px;overflow-wrap:anywhere}
.comment-reply+.comment-reply{margin-top:6px}
.friend-comment .comment-composer{margin-top:8px}
.comment-composer summary{display:list-item;width:fit-content;min-height:32px;padding-top:6px;color:#214f43;font-weight:650;cursor:pointer}
.comment-composer form{margin-top:6px}
.comment-composer label{display:grid;gap:4px}
.comment-composer textarea{width:100%;min-width:0;resize:vertical;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.friend-comment .comment-composer .secondary{margin-top:6px;min-height:36px;color:#214f43}
.comment-composer [role=alert]{color:#9b4635}

.comment-author-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;overflow-wrap:anywhere}
.comment-author-menu{min-width:0}
.comment-author-menu>summary{width:fit-content;cursor:pointer;color:#214f43}
.comment-author-menu>summary b{text-decoration:underline;text-underline-offset:2px}
.comment-profile-link{display:block;width:fit-content;margin:4px 0 0 10px;padding:5px 8px;border:1px solid #bdcfbb;border-radius:5px;background:#fff;color:#214f43;font-size:12px;font-weight:650}
.comment-author-play{font-size:12px;color:#435846}
.comment-author-play [aria-label]{white-space:nowrap;color:#6c4b1b}
