:root {
    --friends-ink: #172a56;
    --friends-muted: #66789f;
    --friends-blue: #168fe1;
    --friends-blue-dark: #0876ca;
    --friends-pink: #f35b8b;
    --friends-green: #28b66c;
    --friends-purple: #8162ed;
    --friends-yellow: #ffca36;
    --friends-line: #cddcf3;
    --friends-shadow: 0 14px 34px rgba(49, 82, 140, .14);
}

body.community-friends-page {
    overflow-x: hidden;
    color: var(--friends-ink);
    background:
        radial-gradient(circle at 8% 28%, rgba(251, 187, 220, .28), transparent 22rem),
        radial-gradient(circle at 92% 36%, rgba(103, 190, 255, .24), transparent 28rem),
        #f4f8ff;
}

.community-friends-page *,
.community-friends-page *::before,
.community-friends-page *::after {
    box-sizing: border-box;
}

.community-friends-page .community-header {
    display: block;
    width: 100%;
    padding: 0;
}

.community-friends-page .community-header__inner {
    grid-template-columns: 210px minmax(0, 1fr) max-content;
    gap: clamp(10px, 1.2vw, 20px);
    width: calc(100% - 48px);
    max-width: 1480px;
}

.community-friends-page .community-header__brand,
.community-friends-page .community-header__brand img {
    width: 200px;
    max-width: 100%;
}

.community-friends-page .community-nav {
    display: block;
    min-width: 0;
}

.community-friends-page .community-nav__links {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, .3vw, 5px);
    white-space: nowrap;
}

.community-friends-page .community-nav__links > a {
    padding-inline: clamp(4px, .45vw, 8px);
    font-size: clamp(.68rem, .72vw, .79rem);
}

.community-friends-page .community-nav__mobile-actions {
    display: none;
}

.community-friends-page .community-header__actions {
    justify-self: end;
}

.community-friends-page .community-main {
    min-width: 0;
    background:
        radial-gradient(circle at 4% 17%, rgba(255, 214, 232, .32), transparent 18rem),
        radial-gradient(circle at 95% 34%, rgba(128, 202, 255, .24), transparent 24rem),
        linear-gradient(180deg, #f7fbff 0, #f4f8ff 100%);
}

.friends-page {
    min-width: 0;
    padding-bottom: 64px;
}

.friends-page a {
    text-underline-offset: 3px;
}

.friends-page button,
.friends-page input,
.friends-page select,
.friends-page textarea {
    font: inherit;
}

.friends-page button,
.friends-page a {
    -webkit-tap-highlight-color: transparent;
}

.friends-shell {
    width: min(var(--xl-content-max, 1180px), calc(100% - 32px));
    margin-inline: auto;
}

.friends-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 8% 16%, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 24% 72%, rgba(255, 255, 255, .85) 0 1px, transparent 2px),
        radial-gradient(circle at 55% 18%, rgba(255, 255, 255, .8) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 64%, #fff 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 92% 14%, rgba(255, 218, 117, .95) 0 2px, transparent 3px),
        radial-gradient(circle at 76% 45%, rgba(106, 222, 255, .35), transparent 14rem),
        radial-gradient(circle at 22% 25%, rgba(132, 103, 255, .38), transparent 18rem),
        linear-gradient(118deg, #07184f 0%, #152f8d 48%, #0e6db7 100%);
}

.friends-hero::before,
.friends-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.friends-hero::before {
    inset: 0;
    opacity: .36;
    background-image:
        radial-gradient(circle, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle, #71d4ff 0 1px, transparent 1.7px);
    background-position: 0 0, 19px 23px;
    background-size: 42px 42px, 57px 57px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .8), transparent 62%, rgba(0, 0, 0, .8));
}

.friends-hero::after {
    right: -120px;
    bottom: -190px;
    width: 620px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, .035), 0 0 0 98px rgba(255, 255, 255, .025);
    transform: rotate(-12deg);
}

.friends-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 320px;
    grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
    align-items: center;
}

.friends-hero__copy {
    position: relative;
    z-index: 4;
    padding: 38px 0 65px;
}

.friends-eyebrow {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    color: #d7f5ff;
    background: rgba(10, 35, 100, .32);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.friends-hero h1 {
    margin: 12px 0 4px;
    color: #fff;
    font-size: clamp(3.25rem, 6vw, 5.7rem);
    font-weight: 950;
    letter-spacing: .05em;
    line-height: .98;
    text-shadow: 0 5px 16px rgba(2, 17, 68, .46);
}

.friends-hero h1 span {
    display: inline-grid;
    width: .65em;
    height: .65em;
    place-items: center;
    margin-left: .08em;
    border-radius: 50%;
    color: #fff;
    background: var(--friends-pink);
    font-size: .46em;
    vertical-align: middle;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .16);
}

.friends-hero__copy > p {
    margin: 12px 0 24px;
    color: #e4f7ff;
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    font-weight: 800;
    letter-spacing: .04em;
}

.friends-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friends-hero__actions a {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 21px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease;
}

.friends-hero__actions a:first-child {
    border-color: #ffda57;
    color: #163569;
    background: linear-gradient(135deg, #ffe973, #ffbc21);
}

.friends-hero__actions a:hover,
.friends-hero__actions a:focus-visible {
    transform: translateY(-2px);
}

.friends-hero__mascot {
    position: absolute;
    z-index: 3;
    bottom: -16px;
    width: clamp(130px, 15vw, 205px);
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(2, 17, 68, .34));
}

.friends-hero__mascot--yellow {
    right: 25%;
}

.friends-hero__mascot--blue {
    right: 3%;
}

.friends-hero__orbit {
    position: absolute;
    z-index: 2;
    right: 13%;
    top: 24px;
    width: 420px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    transform: rotate(-8deg);
}

.friends-hero__orbit img {
    position: absolute;
    width: 65px;
    height: 65px;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(1, 18, 70, .32);
    transform: rotate(8deg);
}

.friends-hero__orbit img:nth-child(1) { left: 42px; top: 14px; }
.friends-hero__orbit img:nth-child(2) { right: 38px; top: 34px; }
.friends-hero__orbit img:nth-child(3) { right: 3px; bottom: 32px; }

.friends-data-notice,
.friends-login-notice {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 13px 18px;
    border: 1px solid #b8dff7;
    border-radius: 16px;
    color: #164f88;
    background: #effaff;
    box-shadow: 0 7px 18px rgba(50, 104, 160, .08);
}

.friends-data-notice {
    justify-content: center;
    border-color: #f5d98a;
    color: #6a4a08;
    background: #fff9e9;
    text-align: center;
}

.friends-login-notice div {
    display: grid;
    gap: 3px;
}

.friends-login-notice span {
    color: var(--friends-muted);
    font-size: .86rem;
}

.friends-login-notice > a {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    background: var(--friends-blue);
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.friends-stats {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0;
    overflow: hidden;
    margin-top: -34px;
    border: 1px solid rgba(184, 210, 239, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 32px rgba(20, 62, 123, .18);
    backdrop-filter: blur(10px);
}

.friends-data-notice + .friends-login-notice,
.friends-login-notice + .friends-stats,
.friends-data-notice + .friends-stats {
    margin-top: 14px;
}

.friends-stats > div {
    display: flex;
    min-width: 0;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 10px;
    border-right: 1px solid #e0e9f6;
}

.friends-stats img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
}

.friends-stats span {
    display: grid;
    gap: 2px;
    color: var(--friends-muted);
    font-size: .77rem;
    font-weight: 800;
}

.friends-stats strong {
    color: var(--friends-ink);
    font-size: 1.45rem;
    line-height: 1;
}

.friends-stats__manage {
    display: inline-flex;
    min-width: 132px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #fff;
    background: linear-gradient(135deg, #39a9ee, #1478d3);
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
}

.friends-dashboard {
    display: grid;
    grid-template-areas:
        "recommend received sent"
        "recommend online activity"
        "interest interest activity";
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 26px;
}

.friends-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 19px;
    border: 1px solid var(--friends-line);
    border-radius: var(--xl-radius-panel, 28px);
    background: #fff;
    box-shadow: var(--friends-shadow);
}

.friends-panel--blue {
    border-color: #b9d8f5;
    background: linear-gradient(145deg, #edf8ff 0%, #fff 55%, #eef3ff 100%);
}

.friends-panel--pink {
    border-color: #f5c6db;
    background: linear-gradient(145deg, #fff0f8 0%, #fff 56%, #fff4f8 100%);
}

.friends-panel--green {
    border-color: #bce8ce;
    background: linear-gradient(145deg, #effff5 0%, #fff 58%, #e9fbf2 100%);
}

.friends-panel--purple {
    border-color: #d2c7f8;
    background: linear-gradient(145deg, #f4f0ff 0%, #fff 58%, #f0edff 100%);
}

.friends-panel--recommend { grid-area: recommend; }
.friends-dashboard > .friends-panel--pink { grid-area: received; }
.friends-dashboard > .friends-panel--blue:not(.friends-panel--recommend) { grid-area: sent; }
.friends-panel--online { grid-area: online; }
.friends-panel--activity { grid-area: activity; }
.friends-panel--interest { grid-area: interest; }

.friends-panel__header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.friends-panel__header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.friends-panel__header img {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    object-fit: contain;
}

.friends-panel__header h2,
.friends-panel__header h3 {
    margin: 0;
    color: var(--friends-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.friends-panel__header h2 small {
    color: var(--friends-green);
    font-size: .72em;
}

.friends-panel__header > a,
.friends-panel__header > span {
    flex: 0 0 auto;
    color: var(--friends-blue-dark);
    font-size: .77rem;
    font-weight: 900;
}

.friends-list {
    display: grid;
    gap: 10px;
}

.friends-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dae5f3;
    border-radius: 17px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 12px rgba(45, 77, 127, .06);
}

.friends-person > form,
.friends-actions form {
    flex: 0 0 auto;
    margin: 0;
}

.friends-avatar {
    position: relative;
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.friends-avatar img,
.friends-avatar__image {
    display: block;
    width: 55px;
    height: 55px;
    flex: 0 0 auto;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 11px rgba(38, 73, 129, .17);
}

.friends-avatar > span {
    position: absolute;
    right: -2px;
    bottom: -2px;
    overflow: hidden;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: transparent;
    background: #29c876;
}

.friends-person__body {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 2px;
}

.friends-person__body h3,
.friends-person__body p,
.friends-person__body small {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.friends-person__body h3 {
    color: #183467;
    font-size: .91rem;
}

.friends-person__body h3 a {
    color: inherit;
    text-decoration: none;
}

.friends-person__body p,
.friends-person__body small,
.friends-person__body time {
    color: var(--friends-muted);
    font-size: .7rem;
    line-height: 1.35;
}

.friends-person__body small:first-of-type {
    color: #7c57c9;
    font-weight: 800;
}

.friends-btn {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.friends-btn:hover,
.friends-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 13px rgba(26, 87, 156, .15);
}

.friends-btn--primary {
    border-color: #1688df;
    color: #fff;
    background: linear-gradient(135deg, #34aaf0, #1176d0);
}

.friends-btn--accept {
    border-color: #24a862;
    color: #fff;
    background: linear-gradient(135deg, #46d486, #22a95f);
}

.friends-btn--quiet {
    border-color: #bfd3e8;
    color: #476383;
    background: #fff;
}

.friends-btn--danger {
    border-color: #f0abc0;
    color: #b52652;
    background: #fff4f8;
}

.friends-btn--match {
    border-color: #e18716;
    color: #5c3900;
    background: linear-gradient(135deg, #ffdf64, #ffad24);
}

.friends-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.friends-actions .friends-btn {
    min-width: 50px;
    padding-inline: 8px;
}

.friends-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #7b648d;
    background: #f6effb;
    font-size: .69rem;
    font-weight: 900;
}

.friends-panel__more {
    display: block;
    margin-top: 13px;
    color: var(--friends-blue-dark);
    font-size: .75rem;
    font-weight: 900;
    text-align: center;
}

.friends-online-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.friends-online-list > .friends-empty {
    grid-column: 1 / -1;
}

.friends-online-list > a {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 3px;
    color: var(--friends-ink);
    text-align: center;
    text-decoration: none;
}

.friends-online-list > a > span {
    position: relative;
}

.friends-online-list img {
    display: block;
    width: 53px;
    height: 53px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(28, 110, 75, .15);
}

.friends-online-list i {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #9eafc2;
}

.friends-online-list i.is-online {
    background: #25c976;
}

.friends-online-list strong {
    max-width: 100%;
    overflow: hidden;
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-online-list small {
    color: var(--friends-muted);
    font-size: .63rem;
}

.friends-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin: -3px 0 12px;
    padding: 9px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .74);
}

.friends-composer label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.friends-composer textarea {
    min-width: 0;
    min-height: 58px;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid #d4c8f5;
    border-radius: 12px;
    color: var(--friends-ink);
    background: #fff;
}

.friends-activity-list {
    display: grid;
    gap: 10px;
}

.friends-activity-list article {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 4px;
    border-bottom: 1px dashed #d8d0ee;
}

.friends-activity-list article:last-child {
    border-bottom: 0;
}

.friends-activity-list img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.friends-activity-list h3,
.friends-activity-list p {
    margin: 0;
}

.friends-activity-list h3 {
    font-size: .8rem;
}

.friends-activity-list p {
    margin-top: 2px;
    color: #4e6287;
    font-size: .72rem;
    line-height: 1.5;
}

.friends-activity-list time {
    color: #8a97b0;
    font-size: .64rem;
}

.friends-panel--interest {
    min-height: 300px;
    padding-right: 118px;
    border-color: #f1d17d;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 221, 107, .22), transparent 11rem),
        linear-gradient(145deg, #fff9df, #fff 62%, #eefaff);
}

.friends-panel__intro {
    margin: -5px 0 13px;
    color: var(--friends-muted);
    font-size: .8rem;
}

.friends-tag-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.friends-tag-grid label,
.friends-tag-grid > span {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 55px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d8e3f0;
    border-radius: 15px;
    color: #3a527c;
    background: rgba(255, 255, 255, .9);
    font-size: .73rem;
    font-weight: 900;
}

.friends-tag-grid label {
    cursor: pointer;
}

.friends-tag-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.friends-tag-grid label:has(input:checked) {
    border-color: #f0ad2e;
    color: #664301;
    background: #fff2b6;
    box-shadow: inset 0 0 0 1px rgba(240, 173, 46, .25);
}

.friends-tag-grid label:has(input:focus-visible) {
    outline: 3px solid rgba(25, 145, 225, .32);
    outline-offset: 2px;
}

.friends-tag-grid img {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    object-fit: contain;
}

.friends-tag-grid span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-interest__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
}

.friends-interest__footer > span {
    color: var(--friends-muted);
    font-size: .75rem;
}

.friends-interest__footer > span strong {
    color: #e78f0e;
}

.friends-interest__footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.friends-interest__mascot {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 100px;
    height: 78px;
    border: 3px solid #fff;
    border-radius: 17px;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
    box-shadow: 0 8px 15px rgba(96, 80, 31, .16);
}

.friends-cta {
    position: relative;
    display: grid;
    min-height: 160px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    margin-top: 28px;
    padding: 22px 30px 22px 220px;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 30px;
    color: #fff;
    background: url("/assets/community/friends/v1/decor/cta-gradient.svg") center / cover no-repeat, linear-gradient(90deg, #349df2, #3dc5f2);
    box-shadow: 0 16px 32px rgba(28, 115, 196, .2);
}

.friends-cta::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .4;
    background-image: radial-gradient(circle, #fff 0 1px, transparent 1.6px);
    background-size: 28px 28px;
    pointer-events: none;
}

.friends-cta > * {
    position: relative;
    z-index: 1;
}

.friends-cta > img {
    position: absolute;
    left: 5px;
    bottom: -13px;
    width: 175px;
    height: auto;
    clip-path: circle(43% at 50% 72%);
    filter: drop-shadow(0 9px 12px rgba(4, 62, 139, .25));
}

.friends-cta > img:nth-child(2) {
    left: 96px;
    width: 155px;
}

.friends-cta h2,
.friends-cta p {
    margin: 0;
}

.friends-cta h2 {
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.friends-cta p {
    margin-top: 6px;
    color: #e9fbff;
    font-size: .83rem;
}

.friends-cta > a {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 2px solid #e99816;
    border-radius: 999px;
    color: #583702;
    background: linear-gradient(135deg, #ffe66c, #ffb421);
    font-size: .81rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(5, 63, 138, .22);
}

/* Secondary friend pages */
.friends-subpage {
    min-height: 70vh;
}

.friends-subhero {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 30%, rgba(255, 255, 255, .82) 0 1px, transparent 2px),
        radial-gradient(circle at 86% 42%, rgba(255, 221, 111, .9) 0 1.5px, transparent 2.5px),
        linear-gradient(118deg, #0b2c79, #1374bd);
}

.friends-subhero::after {
    position: absolute;
    right: -50px;
    bottom: -120px;
    width: 420px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 80px rgba(255, 255, 255, .025);
}

.friends-subhero .friends-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 220px;
    align-content: center;
    padding-block: 28px;
}

.friends-subhero h1 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1;
}

.friends-subhero p {
    margin: 0;
    color: #dff5ff;
}

.friends-subhero nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 21px;
}

.friends-subhero nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: .77rem;
    font-weight: 900;
    text-decoration: none;
}

.friends-subhero nav a[aria-current="page"] {
    border-color: #ffd65a;
    color: #173769;
    background: #ffdf66;
}

.friends-subpage .friends-panel {
    margin-bottom: 20px;
}

.friends-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, .4fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 16px;
    background: #eff7fd;
}

.friends-filter label,
.friends-privacy label {
    display: grid;
    gap: 5px;
    color: #456184;
    font-size: .76rem;
    font-weight: 900;
}

.friends-filter input,
.friends-filter select,
.friends-privacy select,
.friends-report select,
.friends-report textarea {
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #c7d9eb;
    border-radius: 11px;
    color: var(--friends-ink);
    background: #fff;
}

.friends-manage-list {
    display: grid;
    gap: 10px;
}

.friends-manage-list > article {
    display: grid;
    min-width: 0;
    grid-template-columns: 62px minmax(130px, 1fr) minmax(0, auto);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe6f2;
    border-radius: 17px;
    background: #fff;
}

.friends-manage-list > article > img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.friends-manage-list h3,
.friends-manage-list p {
    margin: 0;
}

.friends-manage-list h3 {
    font-size: .95rem;
}

.friends-manage-list p {
    margin-top: 3px;
    color: var(--friends-muted);
    font-size: .75rem;
}

.friends-manage-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.friends-manage-actions form {
    margin: 0;
}

.friends-report {
    position: relative;
}

.friends-report summary {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #f0abc0;
    border-radius: 999px;
    color: #b52652;
    background: #fff4f8;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.friends-report[open] form {
    position: absolute;
    z-index: 10;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    width: min(290px, 80vw);
    gap: 8px;
    padding: 12px;
    border: 1px solid #e4bfd0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--friends-shadow);
}

.friends-report textarea {
    min-height: 80px;
    resize: vertical;
}

.friends-manage-columns,
.friends-request-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.friends-request-columns > .friends-data-notice {
    grid-column: 1 / -1;
    width: 100%;
}

.friends-privacy {
    display: grid;
    gap: 13px;
}

.friends-privacy label:has(input[type="checkbox"]) {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 11px;
    background: #f6faff;
}

.friends-privacy input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--friends-blue);
}

.friends-block-list {
    display: grid;
    gap: 9px;
}

.friends-block-list article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid #e0e8f2;
    border-radius: 14px;
}

.friends-block-list img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.friends-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 32px 18px;
    color: var(--friends-muted);
    text-align: center;
}

.friends-empty a {
    color: var(--friends-blue-dark);
    font-weight: 900;
}

.friends-match-tags .friends-tag-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.friends-match-results {
    padding: 23px;
}

.friends-match-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.friends-match-grid article {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 7px;
    padding: 20px 14px 15px;
    border: 1px solid #d6e3f2;
    border-radius: 20px;
    background:
        linear-gradient(180deg, #ecf8ff 0 74px, #fff 74px);
    text-align: center;
    box-shadow: 0 8px 18px rgba(37, 76, 132, .08);
}

.friends-match-grid article > img {
    width: 82px;
    height: 82px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 13px rgba(33, 81, 143, .18);
}

.friends-match-grid h2,
.friends-match-grid p {
    margin: 0;
}

.friends-match-grid h2 {
    color: var(--friends-ink);
    font-size: 1rem;
}

.friends-match-grid p,
.friends-match-grid small {
    color: var(--friends-muted);
    font-size: .72rem;
    line-height: 1.45;
}

.friends-match-grid small {
    color: #7751c8;
    font-weight: 900;
}

.friends-match-score {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #135f3c;
    background: #c9f4dc;
    font-size: .65rem;
    font-weight: 950;
}

.friends-page :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(20, 143, 225, .35);
    outline-offset: 2px;
}

.friends-page [aria-busy="true"] {
    opacity: .66;
    pointer-events: none;
}

@media (max-width: 1279px) {
    .community-friends-page .community-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        width: calc(100% - 32px);
    }

    .community-friends-page .community-nav {
        position: static;
        display: block;
        justify-self: end;
    }

    .community-friends-page .community-menu-toggle {
        display: grid;
        width: 42px;
        height: 40px;
        place-items: center;
        padding: 0;
    }

    .community-friends-page .community-nav__links {
        position: absolute;
        z-index: 120;
        inset: 100% 0 auto;
        display: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 14px max(16px, calc((100% - 960px) / 2));
        border-bottom: 1px solid #cde9fa;
        background: rgba(255, 255, 255, .99);
        box-shadow: 0 12px 20px rgba(14, 74, 145, .12);
        white-space: normal;
    }

    .community-friends-page .community-nav.is-open .community-nav__links {
        display: grid;
    }

    .community-friends-page .community-nav__links > a {
        justify-content: center;
        padding: 9px;
    }

    .community-friends-page .community-nav__mobile-actions {
        display: flex;
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 7px;
    }

    .community-friends-page .community-nav__mobile-actions a,
    .community-friends-page .community-nav__mobile-actions button {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        padding: 7px 12px;
        border: 1px solid #b7dcf5;
        border-radius: 999px;
        color: #114f9c;
        background: #fff;
        font-size: .78rem;
        font-weight: 900;
        text-decoration: none;
    }

    .community-friends-page .community-nav__mobile-actions form {
        margin: 0;
    }

    .community-friends-page .community-header__actions {
        display: none;
    }

    .friends-dashboard {
        grid-template-areas:
            "recommend received"
            "recommend sent"
            "online activity"
            "interest interest";
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-panel--interest {
        padding-right: 115px;
    }

    .friends-match-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .friends-hero__inner {
        grid-template-columns: 1fr;
    }

    .friends-hero__copy {
        max-width: 64%;
    }

    .friends-hero__mascot--yellow {
        right: 17%;
    }

    .friends-hero__orbit {
        right: -5%;
        opacity: .55;
    }

    .friends-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-stats > div:nth-child(2) {
        border-right: 0;
    }

    .friends-stats > div {
        border-bottom: 1px solid #e0e9f6;
    }

    .friends-stats > div:nth-child(3),
    .friends-stats > div:nth-child(4) {
        border-bottom: 0;
    }

    .friends-stats__manage {
        grid-column: 1 / -1;
        min-height: 48px;
    }

    .friends-match-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-match-tags .friends-tag-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .friends-manage-list > article {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .friends-manage-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .community-friends-page .community-header__inner {
        width: calc(100% - 24px);
        min-height: 64px;
    }

    .community-friends-page .community-header__brand,
    .community-friends-page .community-header__brand img {
        width: 176px;
        height: 48px;
    }

    .community-friends-page .community-nav__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .community-friends-page .community-nav__links > a {
        justify-content: flex-start;
        padding-inline: 14px;
    }

    .friends-page {
        padding-bottom: 42px;
    }

    .friends-shell {
        width: min(100% - 20px, 620px);
    }

    .friends-hero,
    .friends-hero__inner {
        min-height: 290px;
    }

    .friends-hero__copy {
        max-width: 72%;
        padding: 35px 0 66px;
    }

    .friends-hero h1 {
        font-size: clamp(3.1rem, 16vw, 4.4rem);
    }

    .friends-hero__copy > p {
        font-size: .94rem;
        line-height: 1.5;
    }

    .friends-hero__actions a {
        min-height: 44px;
        padding-inline: 15px;
    }

    .friends-hero__mascot {
        bottom: -7px;
        width: 128px;
    }

    .friends-hero__mascot--yellow {
        right: 14%;
        opacity: .88;
    }

    .friends-hero__mascot--blue {
        right: -34px;
    }

    .friends-hero__orbit {
        right: -185px;
        top: 18px;
        width: 400px;
        opacity: .45;
    }

    .friends-data-notice,
    .friends-login-notice {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
    }

    .friends-login-notice > a {
        min-height: 44px;
        text-align: center;
    }

    .friends-stats {
        margin-top: -25px;
        border-radius: 20px;
    }

    .friends-stats > div {
        min-height: 80px;
        gap: 8px;
        padding: 10px 7px;
    }

    .friends-stats img {
        width: 38px;
        height: 38px;
    }

    .friends-stats strong {
        font-size: 1.24rem;
    }

    .friends-dashboard {
        grid-template-areas:
            "recommend"
            "received"
            "sent"
            "online"
            "activity"
            "interest";
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 18px;
    }

    .friends-panel {
        padding: 15px;
        border-radius: 22px;
    }

    .friends-person {
        padding: 9px;
    }

    .friends-person--request {
        flex-wrap: wrap;
    }

    .friends-person--request .friends-actions,
    .friends-person--request > form {
        margin-left: 65px;
    }

    .friends-btn {
        min-height: 44px;
    }

    .friends-panel__header > a,
    .friends-panel__more {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding-inline: 5px;
    }

    .friends-panel--interest {
        min-height: 0;
        padding-right: 15px;
        padding-bottom: 90px;
    }

    .friends-tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-tag-grid label,
    .friends-tag-grid > span {
        min-height: 54px;
        padding: 7px;
    }

    .friends-interest__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .friends-interest__footer > div,
    .friends-interest__footer > div .friends-btn,
    .friends-interest__footer > .friends-btn {
        width: 100%;
    }

    .friends-interest__mascot {
        right: 7px;
        width: 90px;
    }

    .friends-cta {
        min-height: 230px;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 24px 16px 94px;
        border-radius: 24px;
        text-align: center;
    }

    .friends-cta > img {
        left: calc(50% - 112px);
        bottom: -18px;
        width: 125px;
    }

    .friends-cta > img:nth-child(2) {
        left: calc(50% - 2px);
        width: 115px;
    }

    .friends-cta > div {
        grid-column: 1;
    }

    .friends-cta > a {
        grid-column: 1;
        min-height: 46px;
    }

    .friends-subhero .friends-shell {
        min-height: 230px;
        padding-block: 25px;
    }

    .friends-subhero nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-subhero nav a {
        justify-content: center;
        text-align: center;
    }

    .friends-filter {
        grid-template-columns: 1fr;
    }

    .friends-filter input,
    .friends-filter select {
        width: 100%;
    }

    .friends-manage-columns,
    .friends-request-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .friends-manage-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .friends-manage-actions > a,
    .friends-manage-actions > form,
    .friends-manage-actions > form .friends-btn,
    .friends-manage-actions > details,
    .friends-manage-actions > details summary {
        width: 100%;
    }

    .friends-report[open] form {
        position: fixed;
        inset: auto 10px 10px;
        width: auto;
    }

    .friends-match-tags .friends-tag-grid,
    .friends-match-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-match-grid article {
        padding-inline: 9px;
    }
}

@media (max-width: 420px) {
    .friends-hero__copy {
        max-width: 78%;
    }

    .friends-eyebrow {
        font-size: .62rem;
        letter-spacing: .08em;
    }

    .friends-hero__actions {
        gap: 7px;
    }

    .friends-hero__actions a {
        padding-inline: 12px;
        font-size: .78rem;
    }

    .friends-stats span {
        font-size: .68rem;
    }

    .friends-stats img {
        width: 34px;
        height: 34px;
    }

    .friends-person {
        gap: 8px;
    }

    .friends-avatar img,
    .friends-avatar__image {
        width: 50px;
        height: 50px;
    }

    .friends-person--request .friends-actions,
    .friends-person--request > form {
        margin-left: 0;
        width: 100%;
    }

    .friends-person--request .friends-actions .friends-btn,
    .friends-person--request > form .friends-btn {
        width: 100%;
    }

    .friends-online-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .friends-tag-grid label,
    .friends-tag-grid > span {
        font-size: .68rem;
    }

    .friends-tag-grid img {
        width: 30px;
        height: 30px;
    }

    .friends-match-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .friends-page *,
    .friends-page *::before,
    .friends-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
