@charset "utf-8";

.profile-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 2;
}

.profile-friends-link {
    min-width: 78px;
}

.profile-friends-link[hidden] {
    display: none;
}

.profile-header-refresh-btn {
    flex: 0 0 auto;
}

.profile-header-refresh-btn svg {
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: #fff5df;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    filter: drop-shadow(0 1px 4px rgba(235, 192, 105, 0.22));
}

.profile-header-refresh-btn .profile-refresh-icon-star {
    fill: #e5ba68;
    stroke: #e5ba68;
    stroke-width: 0.8;
}

.profile-header-refresh-btn:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
}

.profile-header-refresh-btn[hidden] {
    display: none;
}

.profile-header-refresh-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.profile-header-refresh-btn.is-refreshing svg {
    animation: profile-friend-refresh-spin 720ms linear infinite;
}

@keyframes profile-friend-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-header-refresh-btn.is-refreshing svg {
        animation: none;
    }
}

.resident-card-portrait.is-readonly {
    cursor: default;
}

.resident-card-portrait.is-readonly .resident-card-photo-placeholder {
    color: rgba(26, 49, 77, 0.48);
}

.profile-friend-updates {
    width: 100%;
    max-width: 380px;
    margin: 18px auto 0;
    padding: 0 13px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.profile-friend-updates[hidden] {
    display: none;
}

.profile-friend-updates-heading {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 13px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(225, 190, 121, 0.24);
    text-align: center;
}

.profile-friend-updates-heading > div {
    min-width: 0;
    padding: 0 55px;
}

.profile-friend-updates-heading p {
    margin: 2px 0 0;
    color: rgba(226, 194, 133, 0.58);
    font-family: "NanumSquareNeo", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

.profile-friend-updates-heading h2 {
    margin: 0;
    overflow: hidden;
    color: #e9c37a;
    font-family: "NanumSquareNeo", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    font-size: clamp(11px, 3.4vw, 14px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(233, 195, 122, 0.18);
    white-space: nowrap;
}

.profile-friend-updates-heading #profile-friend-updates-title,
.profile-friend-updates-heading #profile-friend-updates-title > span {
    font-family: "NanumSquareNeo", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif !important;
    font-weight: 400;
}

.profile-friend-updates-heading h2 > span[aria-hidden="true"] {
    margin: 0 3px;
    color: #e3b867;
    font-size: 8px;
}

.profile-friend-updates-heading button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 0;
    border: 0;
    color: rgba(255, 247, 226, 0.74);
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.profile-friend-updates-heading button::after {
    content: " ›";
    color: #e6bb6a;
}

.profile-friend-update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.profile-friend-update-card {
    min-width: 0;
    min-height: 146px;
    padding: 12px 11px 10px;
    position: relative;
    border: 1px solid rgba(171, 198, 224, 0.2);
    border-radius: 17px;
    color: #fff8e9;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 58%),
        rgba(8, 31, 59, 0.78);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 5px 14px rgba(0, 0, 0, 0.12);
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.profile-friend-update-card:focus-visible {
    outline: 2px solid #f0c979;
    outline-offset: 2px;
}

.profile-friend-update-card.has-unread::after {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    right: 11px;
    top: 11px;
    border-radius: 50%;
    background: #e8bd6c;
    box-shadow: 0 0 8px rgba(239, 200, 119, 0.68);
}

.profile-friend-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 10px;
}

.profile-friend-card-avatar,
.profile-friends-list-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1.5px solid rgba(236, 203, 137, 0.72);
    border-radius: 50%;
    color: #173151;
    background: linear-gradient(145deg, #fff9ea 0%, #e8d2a6 100%);
    font-family: "NanumSquareNeo", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(225, 187, 111, 0.09);
}

.profile-friend-card-avatar {
    width: 46px;
    height: 46px;
    font-size: 17px;
}

.profile-friend-card-avatar img,
.profile-friends-list-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-friend-card-identity {
    min-width: 0;
}

.profile-friend-card-name {
    display: block;
    overflow: hidden;
    color: #fff7e8;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friend-card-star-name {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: rgba(215, 228, 241, 0.61);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friend-card-update {
    display: -webkit-box;
    min-height: 33px;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 249, 237, 0.86);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-friend-card-time {
    display: block;
    margin-top: 7px;
    color: rgba(206, 221, 236, 0.45);
    font-size: 9px;
}

.profile-friend-update-empty {
    padding: 24px 12px 21px;
    color: rgba(235, 243, 252, 0.62);
    text-align: center;
}

.profile-friend-update-empty[hidden],
.profile-friend-update-grid[hidden] {
    display: none;
}

.profile-friend-update-empty > span {
    display: block;
    margin-bottom: 7px;
    color: #e6bb6a;
    font-size: 17px;
}

.profile-friend-update-empty strong {
    display: block;
    color: rgba(255, 247, 229, 0.78);
    font-size: 12px;
}

.profile-friend-update-empty p {
    margin: 5px 0 0;
    font-size: 10px;
}

#view-profile-friends.tab-content {
    color: #132d4d;
    overflow: hidden;
    background:
        radial-gradient(circle at 91% 5%, rgba(223, 182, 96, 0.13) 0 1px, transparent 2px),
        linear-gradient(180deg, #fffdf8 0%, #f8f5ee 100%);
    background-size: 97px 91px, auto;
}

#view-profile-friends,
#view-profile-friends *,
#view-profile-friends *::before,
#view-profile-friends *::after {
    font-family: "NanumSquareNeo", sans-serif;
}

.profile-friends-page .sr-only {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-friends-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: max(13px, env(safe-area-inset-top)) 18px 10px;
    position: relative;
    border-bottom: 1px solid rgba(24, 52, 84, 0.12);
    background: rgba(255, 253, 248, 0.95);
    box-sizing: border-box;
}

.profile-friends-header h1 {
    width: 100%;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #132d4d;
    font-family: "NanumSquareNeo", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.profile-friends-back {
    width: 34px;
    height: 34px;
    padding: 0;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(20, 48, 79, 0.14);
    border-radius: 50%;
    color: #173453;
    background: #fffdfa;
    font-size: 14px;
    line-height: 1;
}

.profile-friends-header-star {
    margin-left: auto;
    color: #c9953e;
    font-size: 15px;
}

.profile-friends-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    scrollbar-width: thin;
}

.profile-friends-intro,
.profile-friends-panel {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    box-sizing: border-box;
}

.profile-friends-intro {
    padding: 5px 3px 17px;
}

.profile-friends-eyebrow {
    margin: 0 0 5px;
    color: #bd8938;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.profile-friends-intro h2 {
    margin: 0;
    color: #132d4d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.profile-friends-intro > p:last-child {
    margin: 7px 0 0;
    color: #637286;
    font-size: 11px;
    line-height: 1.6;
}

.profile-friends-panel {
    margin-bottom: 13px;
    padding: 16px;
    border: 1px solid rgba(22, 50, 82, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 19px rgba(27, 49, 75, 0.055);
}

.profile-friends-section-heading {
    margin-bottom: 12px;
}

.profile-friends-section-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.profile-friends-section-heading > div > span {
    color: #c79543;
    font-size: 11px;
}

.profile-friends-section-heading h2 {
    margin: 0;
    color: #163554;
    font-size: 14px;
    font-weight: 800;
}

.profile-friends-section-heading p {
    margin: 5px 0 0 18px;
    color: #788596;
    font-size: 10px;
    line-height: 1.5;
}

.profile-friends-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-friends-count {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #183755;
    background: #f1dfb9;
    font-size: 10px;
    font-weight: 800;
    box-sizing: border-box;
}

.profile-friend-code-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 11px 11px 15px;
    border: 1.5px solid rgba(25, 56, 89, 0.18);
    border-radius: 13px;
    background: #faf8f2;
}

.profile-friend-code-box strong {
    overflow: hidden;
    color: #153555;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friend-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.profile-friends-page .settings-input {
    min-width: 0;
    border-color: rgba(24, 56, 89, 0.2);
    color: #173654;
    background: #fff;
    text-transform: uppercase;
}

.profile-friends-page .settings-input:focus {
    border-color: #173b60;
    box-shadow: 0 0 0 3px rgba(23, 59, 96, 0.08);
}

.profile-friends-primary-btn,
.profile-friends-secondary-btn,
.profile-friends-list-action {
    border-radius: 11px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.profile-friends-primary-btn {
    padding: 0 14px;
    border: 1px solid #163858;
    color: #fff;
    background: #163858;
}

.profile-friends-secondary-btn {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(21, 54, 86, 0.24);
    color: #173654;
    background: #fff;
}

.profile-friends-primary-btn:focus-visible,
.profile-friends-secondary-btn:focus-visible,
.profile-friends-list-action:focus-visible {
    outline: 2px solid #d3a550;
    outline-offset: 2px;
}

.profile-friend-form-note {
    margin: 9px 2px 0;
    color: #6b7887;
    font-size: 10px;
}

.profile-friends-list {
    display: grid;
    gap: 8px;
}

.profile-friends-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(25, 56, 88, 0.1);
    border-radius: 13px;
    background: #fbfaf7;
}

.profile-friends-list-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.profile-friends-list-copy {
    min-width: 0;
}

.profile-friends-list-name {
    display: block;
    overflow: hidden;
    color: #163553;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friends-list-meta {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #7c8794;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-friends-list-actions {
    display: inline-flex;
    gap: 5px;
}

.profile-friends-list-action {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(23, 57, 89, 0.2);
    color: #173654;
    background: #fff;
}

.profile-friends-list-action.is-primary {
    border-color: #17395a;
    color: #fff;
    background: #17395a;
}

.profile-friends-list-action.is-more {
    width: 31px;
    padding: 0;
    color: #a87529;
    font-size: 16px;
}

.profile-friends-list-empty {
    margin: 0;
    padding: 13px 6px 5px;
    color: #919aa5;
    font-size: 10px;
    text-align: center;
}

.profile-friends-list-empty[hidden],
.profile-friends-list[hidden] {
    display: none;
}

@media screen and (max-width: 350px) {
    .profile-header-actions {
        gap: 4px;
    }

    .profile-friend-update-card {
        min-height: 140px;
        padding-inline: 9px;
    }

    .profile-friend-card-avatar {
        width: 40px;
        height: 40px;
    }

    .profile-friend-add-form {
        grid-template-columns: 1fr;
    }

    .profile-friends-primary-btn {
        min-height: 40px;
    }

    .profile-friends-list-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-friends-list-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
