@charset "utf-8";

#view-profile.tab-content {
    color: #ffffff;
    overflow: hidden;
    user-select: text;
    -webkit-user-select: text;
    background:
        radial-gradient(circle at 16% 13%, rgba(235, 195, 115, 0.16) 0 1px, transparent 2px),
        radial-gradient(circle at 83% 19%, rgba(255, 239, 195, 0.22) 0 1px, transparent 2px),
        radial-gradient(circle at 67% 36%, rgba(255, 255, 255, 0.13) 0 1px, transparent 2px),
        linear-gradient(180deg, #061831 0%, #0a2342 52%, #071a33 100%);
    background-size: 93px 91px, 137px 131px, 173px 167px, auto;
}

#view-profile.tab-content.is-friend-profile {
    background:
        radial-gradient(ellipse 90% 18% at -12% 16%, rgba(255, 101, 184, 0.62) 0%, rgba(255, 101, 184, 0.32) 42%, transparent 74%),
        radial-gradient(ellipse 90% 20% at 112% 39%, rgba(158, 91, 255, 0.64) 0%, rgba(158, 91, 255, 0.32) 43%, transparent 74%),
        radial-gradient(ellipse 78% 16% at -8% 69%, rgba(240, 103, 202, 0.52) 0%, rgba(240, 103, 202, 0.24) 42%, transparent 73%),
        radial-gradient(ellipse 82% 18% at 110% 88%, rgba(139, 111, 255, 0.56) 0%, rgba(139, 111, 255, 0.25) 43%, transparent 74%),
        radial-gradient(circle at 16% 13%, rgba(255, 205, 229, 0.27) 0 1px, transparent 2px),
        radial-gradient(circle at 83% 19%, rgba(229, 206, 255, 0.3) 0 1px, transparent 2px),
        radial-gradient(circle at 67% 36%, rgba(255, 255, 255, 0.13) 0 1px, transparent 2px),
        linear-gradient(180deg, #061831 0%, #0a2342 52%, #071a33 100%);
    background-size: auto, auto, auto, auto, 93px 91px, 137px 131px, 173px 167px, auto;
}

.profile-friend-starlight-layer {
    position: absolute;
    inset: 48px 0 0;
    z-index: 8;
    overflow: hidden;
    pointer-events: none;
}

.profile-friend-starlight-layer[hidden] {
    display: none;
}

.profile-friend-starlight {
    --starlight-x: 78%;
    --starlight-y: 24%;
    width: 48px;
    height: 48px;
    padding: 0;
    position: absolute;
    left: var(--starlight-x);
    top: var(--starlight-y);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    color: #fff8c9;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 244, 0.96))
        drop-shadow(0 0 10px rgba(255, 207, 86, 0.92))
        drop-shadow(0 0 18px rgba(126, 211, 255, 0.58));
    animation: profile-starlight-drift 3.8s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.profile-friend-starlight:focus-visible {
    outline: 2px solid rgba(255, 243, 196, 0.92);
    outline-offset: 3px;
}

.profile-friend-starlight:disabled {
    cursor: default;
}

.profile-friend-starlight-halo,
.profile-friend-starlight-orbit,
.profile-friend-starlight-core {
    position: absolute;
    pointer-events: none;
}

.profile-friend-starlight-halo {
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 248, 0.98) 0 7%,
            rgba(255, 224, 111, 0.86) 14%,
            rgba(255, 179, 231, 0.5) 31%,
            rgba(105, 211, 255, 0.34) 48%,
            transparent 72%
        );
    animation: profile-starlight-breathe 2.2s ease-in-out infinite;
}

.profile-friend-starlight-orbit {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 239, 174, 0.72);
    border-radius: 50%;
    transform: rotate(-20deg) scaleY(0.46);
    box-shadow:
        9px -5px 0 -6px #fff1a4,
        -10px 5px 0 -6px #8edcff;
}

.profile-friend-starlight-core {
    color: #fffbdc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1;
    text-shadow:
        0 0 3px #ffffff,
        0 0 8px #ffd75d,
        0 0 15px rgba(255, 185, 87, 0.98),
        0 0 23px rgba(106, 211, 255, 0.68);
    animation: profile-starlight-twinkle 1.8s ease-in-out infinite;
}

.profile-friend-starlight.is-collecting {
    animation: profile-starlight-collect 520ms ease-out forwards;
}

.profile-friend-starlight-particle {
    --particle-x: 0px;
    --particle-y: -24px;
    width: 4px;
    height: 4px;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    background: #fff1a9;
    box-shadow: 0 0 6px rgba(255, 224, 148, 0.9);
    animation: profile-starlight-particle 620ms ease-out forwards;
}

@keyframes profile-starlight-drift {
    0%,
    100% {
        transform: translate(-50%, -50%) translate3d(-2px, 3px, 0) rotate(-4deg);
    }
    50% {
        transform: translate(-50%, -50%) translate3d(4px, -8px, 0) rotate(5deg);
    }
}

@keyframes profile-starlight-breathe {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.16);
    }
}

@keyframes profile-starlight-twinkle {
    0%,
    100% {
        opacity: 0.8;
        transform: scale(0.88) rotate(-5deg);
    }
    48% {
        opacity: 1;
        transform: scale(1.12) rotate(4deg);
    }
}

@keyframes profile-starlight-collect {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.35);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.42);
    }
}

@keyframes profile-starlight-particle {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--particle-x)),
            calc(-50% + var(--particle-y))
        ) scale(0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-friend-starlight,
    .profile-friend-starlight-halo,
    .profile-friend-starlight-core {
        animation: none;
    }
}

#view-shop.profile-external-modal-host {
    display: block !important;
    position: fixed !important;
    inset: 0;
    z-index: 9998;
    overflow: hidden;
    pointer-events: none;
    background: transparent !important;
}

#view-shop.profile-external-modal-host > .shop-app-container {
    display: block !important;
    max-width: none;
    margin-top: 0;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}

#view-shop.profile-external-modal-host > .shop-app-container > :not(.shop-modal) {
    display: none !important;
}

#view-shop.profile-external-modal-host > .shop-app-container > .shop-modal {
    pointer-events: auto;
}

.profile-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-page-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: max(16px, env(safe-area-inset-top)) 20px 2px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #0b1a30 0%, transparent 100%);
}

.profile-page-back {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.profile-page-back:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 3px;
}

.profile-header-edit-btn {
    flex: 0 0 auto;
}

.profile-header-edit-btn:focus-visible,
.profile-header-save-btn:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
    border-radius: 50%;
}

.profile-header-save-btn[hidden],
.profile-header-edit-btn[hidden] {
    display: none;
}

.profile-page-title {
    width: 100%;
    margin: 0;
    position: absolute;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-shadow: 0 1px 8px rgba(238, 194, 112, 0.2);
    pointer-events: none;
}

.profile-page-title::before,
.profile-page-title::after {
    content: "\2726";
    margin: 0 3px;
    color: #f1c979;
    font-size: 0.72em;
    vertical-align: 0.08em;
}

.profile-page-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-page-scroll::-webkit-scrollbar {
    display: none;
}

.resident-card {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #122540;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    background-color: #f8f0df;
    background-image: url('../assets/profile/resident-card-background.webp?v=20260729b');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    touch-action: pan-y;
}

.resident-card-edit-actions {
    position: absolute;
    top: calc(8% - 4px);
    right: 18px;
    z-index: 6;
}

.resident-card-edit-actions .otomo-save-icon-btn {
    padding: 3px;
}

.resident-card-edit-actions .otomo-save-icon-btn img {
    width: 22px;
    height: 22px;
}

.resident-card[data-card-theme="silver"] {
    background-color: #f7f8fa;
    background-image: url('../assets/profile/resident-card-background-silver.webp?v=20260729b');
}

.resident-card[data-card-theme="dawn"] {
    background-color: #faf6fb;
    background-image: url('../assets/profile/resident-card-background-dawn.webp?v=20260729b');
}

.resident-card[data-card-theme="moonblue"] {
    color: #eef6ff;
    background-color: #294360;
    background-image: url('../assets/profile/resident-card-background-moonblue.webp?v=20260729b');
}

.resident-card[data-card-theme="moonblue"] .resident-card-heading h2,
.resident-card[data-card-theme="moonblue"] .resident-card-row dd {
    color: #f5f9ff;
    text-shadow: 0 1px 3px rgba(3, 17, 35, 0.42);
}

.resident-card[data-card-theme="moonblue"] .resident-card-heading p,
.resident-card[data-card-theme="moonblue"] .resident-card-registration,
.resident-card[data-card-theme="moonblue"] .resident-card-registration span,
.resident-card[data-card-theme="moonblue"] .resident-card-row dt {
    color: #cedceb;
    text-shadow: 0 1px 2px rgba(3, 17, 35, 0.36);
}

.resident-card[data-card-theme="moonblue"] .resident-card-row {
    border-bottom-color: rgba(224, 237, 249, 0.28);
}

.resident-card[data-card-theme="moonblue"] .resident-card-row dt::before {
    color: #b8d7eb;
}

.resident-card[data-card-theme="moonblue"][data-editing="true"] .resident-card-row:has(.resident-card-field-editor) {
    background: rgba(211, 231, 247, 0.12);
}

.resident-card-theme-editor {
    width: calc(100% - 24px);
    max-width: 356px;
    margin: -7px auto 0;
    padding: 18px 10px 11px;
    position: relative;
    z-index: 0;
    color: #fff8e8;
    border: 1px solid rgba(232, 194, 116, 0.3);
    border-top: 0;
    border-radius: 0 0 15px 15px;
    background:
        linear-gradient(90deg, transparent, rgba(239, 202, 124, 0.15), transparent) top / 76% 1px no-repeat,
        linear-gradient(145deg, rgba(15, 43, 74, 0.98), rgba(6, 27, 53, 0.99));
    box-shadow: 0 13px 24px rgba(0, 0, 0, 0.18);
}

.resident-card-theme-editor[hidden] {
    display: none;
}

.resident-card-theme-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.resident-card-theme-heading h2,
.resident-card-theme-heading p {
    margin: 0;
}

.resident-card-theme-heading h2 {
    color: #f2cb7d;
    font-family: "NanumSquareNeo", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.resident-card-theme-heading p {
    margin-top: 2px;
    color: rgba(255, 248, 232, 0.65);
    font-size: 9px;
}

.resident-card-theme-heading > span {
    color: #f2cb7d;
}

.resident-card-theme-carousel {
    position: relative;
}

.resident-card-theme-arrow {
    width: 22px;
    height: 32px;
    padding: 0 0 2px;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(239, 202, 124, 0.3);
    border-radius: 999px;
    color: #f2cb7d;
    background: rgba(255, 255, 255, 0.045);
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.resident-card-theme-arrow:first-child {
    left: -8px;
}

.resident-card-theme-arrow:last-child {
    right: -8px;
}

.resident-card-theme-arrow:active:not(:disabled) {
    transform: translateY(-50%) scale(0.93);
    background: rgba(239, 202, 124, 0.13);
}

.resident-card-theme-arrow:disabled {
    visibility: hidden;
    opacity: 0;
    cursor: default;
}

.resident-card-theme-options {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(31.25% - 4.7px);
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
}

.resident-card-theme-options::-webkit-scrollbar {
    display: none;
}

.resident-card-theme-option {
    min-width: 0;
    padding: 2px 2px 4px;
    scroll-snap-align: start;
    color: rgba(255, 248, 232, 0.76);
    border: 0;
    border-radius: 7px;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

.resident-card-theme-option:active {
    transform: scale(0.98);
}

.resident-card-theme-option[aria-checked="true"] {
    color: #fff7df;
}

.resident-card-theme-name,
.resident-card-theme-milestone {
    display: block;
    line-height: 1.25;
}

.resident-card-theme-milestone {
    margin-top: 2px;
    color: rgba(239, 202, 124, 0.72);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.resident-card-theme-option[aria-checked="true"] .resident-card-theme-milestone {
    color: #f2cb7d;
}

.resident-card-theme-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 5px;
    border-radius: 6px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 2px solid transparent;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.resident-card-theme-option[aria-checked="true"] .resident-card-theme-thumbnail {
    border-color: #efca7c;
    box-shadow:
        0 0 0 1px rgba(255, 247, 222, 0.32),
        0 4px 12px rgba(0, 0, 0, 0.28);
}

.resident-card-theme-thumbnail.is-gold {
    background-image: url('../assets/profile/resident-card-background.webp?v=20260729b');
}

.resident-card-theme-thumbnail.is-silver {
    background-image: url('../assets/profile/resident-card-background-silver.webp?v=20260729b');
}

.resident-card-theme-thumbnail.is-dawn {
    background-image: url('../assets/profile/resident-card-background-dawn.webp?v=20260729b');
}

.resident-card-theme-thumbnail.is-moonblue {
    background-image: url('../assets/profile/resident-card-background-moonblue.webp?v=20260729b');
}

.resident-card,
.resident-card :is(h2, p, dt, dd) {
    user-select: text;
    -webkit-user-select: text;
}

.resident-card[data-loading="true"]::before {
    content: '별주민 정보를 불러오는 중…';
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    color: #765b35;
    font-size: 12px;
    font-weight: 800;
    background: rgba(250, 244, 232, 0.82);
    backdrop-filter: blur(2px);
}

.resident-card[data-loading="true"][data-loading-mode="saving"]::before {
    content: '별주민 정보를 저장 중…';
}

.resident-card[data-loading="true"]::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 21;
    width: 18px;
    margin: -19px 0 0 -9px;
    color: #d2a557;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 8px rgba(210, 165, 87, 0.5);
    animation: profile-photo-saving-spin 1.05s linear infinite;
}

.resident-card-heading {
    position: absolute;
    z-index: 2;
    top: 8%;
    left: 8%;
    right: 8%;
    text-align: center;
    pointer-events: auto;
}

.resident-card-heading h2 {
    margin: 0;
    color: #132745;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.05;
    letter-spacing: 0.065em;
}

.resident-card-heading p {
    margin: 1px 0 0;
    color: #987143;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(5px, 1.7vw, 8px);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.resident-card-body {
    position: absolute;
    z-index: 3;
    inset: 20% 7% 7%;
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    gap: 5%;
}

.resident-card-portrait-column {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}

.resident-card-portrait {
    width: calc(104% - 12px);
    flex: 0 0 calc(100% - 36px);
    min-height: 0;
    margin-top: 5px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transform: translateX(calc(3.5% + 3px));
    touch-action: pan-y;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.16), transparent 46%),
        linear-gradient(160deg, #17385d 0%, #081d39 100%);
}

.resident-card-portrait > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    pointer-events: none;
}

.resident-card-portrait:focus-within {
    outline: 2px solid rgba(255, 249, 222, 0.9);
    outline-offset: 2px;
}

.resident-card-photo-placeholder {
    display: grid;
    place-items: center;
    gap: 3px;
    color: rgba(255, 244, 216, 0.82);
    font-size: clamp(7px, 2.2vw, 10px);
    font-weight: 800;
    text-align: center;
}

.resident-card-photo-placeholder[hidden] {
    display: none;
}

.resident-card-photo-icon {
    width: 27px;
    height: 27px;
    border: 1px solid rgba(238, 197, 119, 0.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #f2cd83;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.resident-card-registration {
    max-width: 112%;
    margin: 9px 0 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    color: #76552e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(6px, 1.9vw, 8px);
    line-height: 1.1;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transform: translateX(calc(3.5% + 3px));
}

.resident-card-registration span,
.resident-card-registration time {
    font-family: Georgia, 'Times New Roman', serif;
}

.resident-card-registration span {
    color: #b1854b;
    font-weight: 700;
}

.resident-card-details {
    min-width: 0;
    margin: 0;
    padding: 4% 2% 2% 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-9px);
}

.resident-card-row {
    min-height: 0;
    flex: 1 1 0;
    display: grid;
    grid-template-columns: minmax(58px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    border-bottom: 1px dashed rgba(161, 116, 63, 0.35);
}

.resident-card-row:last-child {
    border-bottom: 0;
}

.resident-card-row dt,
.resident-card-row dd {
    margin: 0;
    min-width: 0;
}

.resident-card-row dt {
    color: #765d3e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(6px, 1.9vw, 8px);
    white-space: nowrap;
}

.resident-card-row dt::before {
    content: '✦';
    color: #c39145;
    margin-right: 5px;
}

.resident-card-row dd {
    overflow: hidden;
    color: #102441;
    font-size: clamp(8px, 2.7vw, 12px);
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resident-card-field-editor {
    min-width: 0;
    align-items: center;
    gap: 3px;
}

.resident-card-field-editor label {
    min-width: 0;
}

.resident-card-field-editor select {
    max-width: 100%;
    height: 21px;
    padding: 0 13px 0 4px;
    border: 1px solid rgba(151, 112, 61, 0.45);
    border-radius: 5px;
    color: #102441;
    background-color: rgba(255, 252, 243, 0.94);
    font-family: inherit;
    font-size: clamp(7px, 2.3vw, 10px);
    line-height: 1;
    font-weight: 700;
}

.resident-card-birthday-editor select {
    width: 53px;
}

.resident-card[data-editing="true"] .resident-card-row:has(.resident-card-field-editor) {
    background: rgba(255, 248, 225, 0.34);
}

.resident-card[data-editing="true"] .resident-card-row dd {
    overflow: visible;
    text-overflow: clip;
}

.resident-card-field-editor select:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
}

.profile-header-save-btn:disabled {
    cursor: wait;
    opacity: 0.58;
}

.resident-card-seal {
    width: 52px;
    aspect-ratio: 1;
    position: absolute;
    z-index: 4;
    right: 3.2%;
    bottom: 3.8%;
    border: 1px solid rgba(151, 117, 202, 0.55);
    border-radius: 50%;
    opacity: 0.84;
    background:
        radial-gradient(circle, #fff6c9 0 12%, transparent 13%),
        conic-gradient(from 30deg, #9fbeff, #dec3ff, #ffe6a2, #9dd9e9, #9fbeff);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.42) inset,
        0 0 0 5px rgba(123, 145, 220, 0.18) inset;
    clip-path: polygon(50% 0%, 61% 7%, 74% 5%, 83% 17%, 95% 24%, 93% 38%, 100% 50%, 93% 62%, 95% 76%, 83% 83%, 74% 95%, 61% 93%, 50% 100%, 39% 93%, 26% 95%, 17% 83%, 5% 76%, 7% 62%, 0% 50%, 7% 38%, 5% 24%, 17% 17%, 26% 5%, 39% 7%);
}

.resident-card-seal::after {
    content: '★';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    text-shadow: 0 1px 4px rgba(48, 64, 121, 0.45);
}

#view-profile.is-friend-profile .resident-card-seal {
    border-color: rgba(177, 104, 206, 0.66);
    background:
        radial-gradient(circle, #fff1fb 0 12%, transparent 13%),
        conic-gradient(from 28deg, #8e81e8, #d68fd7, #f0a4c9, #b799ee, #8e81e8);
    box-shadow:
        0 0 0 3px rgba(255, 244, 253, 0.48) inset,
        0 0 0 5px rgba(165, 111, 210, 0.2) inset,
        0 3px 11px rgba(171, 93, 197, 0.2);
}

#view-profile.is-friend-profile .resident-card-seal::after {
    color: rgba(255, 247, 253, 0.96);
    text-shadow:
        0 1px 4px rgba(97, 54, 139, 0.52),
        0 0 7px rgba(255, 205, 239, 0.48);
}

.profile-star-friend {
    width: min(380px, 100%);
    margin: 18px auto 0;
    padding: 13px 6px 4px;
    position: relative;
    border: 2px solid;
    border-image: linear-gradient(
        90deg,
        rgba(197, 154, 83, 0.58),
        rgba(235, 202, 139, 0.9) 18%,
        rgba(211, 169, 99, 0.7) 50%,
        rgba(235, 202, 139, 0.9) 82%,
        rgba(197, 154, 83, 0.58)
    ) 1;
    outline: 1px solid rgba(235, 202, 139, 0.25);
    outline-offset: -5px;
    border-radius: 0;
    background: #081d38;
}

.profile-star-friend::before,
.profile-star-friend::after {
    content: '\2726';
    width: 16px;
    height: 20px;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #e7bf72;
    background: #081d38;
    font-size: 10px;
    line-height: 1;
    text-shadow: 0 0 5px rgba(231, 191, 114, 0.25);
    pointer-events: none;
}

.profile-star-friend::before {
    left: -9px;
}

.profile-star-friend::after {
    right: -9px;
}

#view-profile.is-friend-profile .profile-star-friend::before,
#view-profile.is-friend-profile .profile-star-friend::after {
    background: transparent;
    text-shadow:
        0 0 2px #081d38,
        0 0 3px #081d38,
        0 0 6px rgba(231, 191, 114, 0.32);
}

.profile-star-friend-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #e3b867;
}

.profile-star-friend-heading h2 {
    margin: 0;
    color: #e9c37a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.05;
    letter-spacing: 0.065em;
    text-shadow: 0 1px 8px rgba(233, 195, 122, 0.18);
}

.profile-star-friend-heading > span {
    font-size: 9px;
    opacity: 0.82;
}

.profile-star-friend-layout {
    min-height: 156px;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 43% minmax(0, 1fr);
    align-items: center;
    gap: 2%;
}

.profile-star-friend-avatar {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    animation: profile-star-friend-floating 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.profile-friend-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
    pointer-events: none;
}

@keyframes profile-star-friend-floating {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.profile-star-friend-info {
    min-width: 0;
    padding: 5px 3px 0 5px;
}

.profile-star-friend-name {
    margin: 0;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff8e9;
    font-size: 16px;
    font-weight: 850;
    border-bottom: 1px dashed rgba(225, 185, 111, 0.42);
}

.profile-star-friend-name > span:last-child {
    color: #edc474;
    font-size: 11px;
}

.profile-star-friend-born {
    margin: 6px 0 9px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 9px;
}

.profile-star-friend-born > span,
.profile-star-friend-items-title {
    color: #d7a957;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-star-friend-items-title {
    margin: 0 0 5px;
}

.profile-star-friend-items {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 4px;
}

.profile-star-friend-item {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    text-align: inherit;
}

button.profile-star-friend-item {
    cursor: pointer;
}

button.profile-star-friend-item:hover .profile-star-friend-item-preview {
    border-color: rgba(233, 195, 122, 0.56);
    background: rgba(255, 255, 255, 0.1);
}

button.profile-star-friend-item:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
    border-radius: 8px;
}

.profile-star-friend-item-preview {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.profile-star-friend-item-preview img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
}

.profile-star-friend-item-base {
    opacity: 0.2;
}

.profile-star-friend-item-caption {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-star-friend-empty {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    line-height: 1.5;
}

.profile-monthly-orbit {
    width: min(380px, 100%);
    min-height: 0;
    margin: 18px auto 0;
    padding: 13px 12px 15px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(174, 191, 211, 0.34);
    border-radius: 21px;
    color: #fff8e9;
    background:
        radial-gradient(circle at 78% 22%, rgba(114, 158, 207, 0.16), transparent 30%),
        radial-gradient(circle at 13% 82%, rgba(232, 193, 112, 0.08), transparent 28%),
        linear-gradient(145deg, #0b2442 0%, #081a34 57%, #0b2949 100%);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(213, 224, 235, 0.08) inset,
        0 1px 0 rgba(255, 255, 255, 0.16) inset;
    isolation: isolate;
}

.profile-monthly-orbit::before {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    border: 1px solid rgba(191, 207, 224, 0.18);
    border-radius: 15px;
    pointer-events: none;
}

.profile-monthly-orbit::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.55;
    background:
        radial-gradient(circle at 8% 19%, #f3ca79 0 1px, transparent 1.6px),
        radial-gradient(circle at 92% 16%, #e5edf8 0 1px, transparent 1.7px),
        radial-gradient(circle at 69% 82%, #d6ae66 0 1px, transparent 1.6px),
        radial-gradient(circle at 34% 91%, #ffffff 0 0.7px, transparent 1.4px);
    pointer-events: none;
}

.profile-monthly-orbit[data-loading="true"] .profile-monthly-orbit-layout {
    opacity: 0.45;
}

.profile-monthly-orbit-heading {
    min-height: 34px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 27px;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.profile-monthly-orbit-heading > div {
    min-width: 0;
}

.profile-orbit-year {
    margin: 0 0 1px;
    color: rgba(226, 194, 133, 0.68);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 0.22em;
}

.profile-monthly-orbit-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-monthly-orbit-heading h2 > span[aria-hidden="true"] {
    margin: 0 3px;
    color: #e3b867;
    font-size: 8px;
}

#profile-orbit-month {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-shadow: inherit;
}

.profile-orbit-month-button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(225, 196, 139, 0.24);
    border-radius: 50%;
    color: #e9c77f;
    background: rgba(255, 255, 255, 0.035);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
}

.profile-orbit-month-button:hover:not(:disabled) {
    border-color: rgba(236, 204, 143, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.profile-orbit-month-button:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 2px;
}

.profile-orbit-month-button:disabled {
    cursor: default;
    opacity: 0.24;
}

.profile-monthly-orbit-layout {
    min-height: 0;
    margin-top: 5px;
    display: grid;
    grid-template-columns: minmax(106px, 35%) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    transition: opacity 160ms ease;
}

.profile-orbit-summary {
    min-width: 0;
    padding: 10px 8px 5px 5px;
    border-right: 1px dashed rgba(222, 187, 121, 0.3);
}

.profile-orbit-total {
    margin: 0 0 9px;
    padding-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    line-height: 1.25;
    border-bottom: 1px dashed rgba(222, 187, 121, 0.32);
    white-space: nowrap;
}

.profile-orbit-total-primary {
    display: block;
}

.profile-orbit-total-primary > span {
    margin-right: 3px;
    color: #e9bf70;
}

.profile-orbit-total-primary strong {
    color: #fff0c8;
    font-size: 16px;
}

.profile-orbit-diary-total {
    display: block;
    margin: 2px 0 0 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
}

.profile-orbit-diary-total strong {
    color: #ead6a7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 400;
}

.profile-orbit-fragments {
    min-width: 0;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.profile-orbit-fragments > div {
    min-width: 0;
}

.profile-orbit-fragment-icon {
    color: #eec472;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(238, 196, 114, 0.18);
}

.profile-orbit-fragments > div > span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 9px;
}

.profile-orbit-fragments p {
    margin: 1px 0 0;
    display: flex;
    align-items: baseline;
    color: #f0c671;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.profile-orbit-fragments p strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.profile-orbit-fragments p > span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
}

.profile-orbit-fragments[data-count-width="compact"] {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px;
}

.profile-orbit-fragments[data-count-width="compact"] .profile-orbit-fragment-icon {
    font-size: 21px;
}

.profile-orbit-fragments[data-count-width="compact"] p strong {
    font-size: 17px;
}

.profile-orbit-fragments[data-count-width="compact"] p > span {
    font-size: 8px;
    letter-spacing: -0.03em;
}

.profile-orbit-fragments[data-count-width="dense"] {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 3px;
}

.profile-orbit-fragments[data-count-width="dense"] .profile-orbit-fragment-icon {
    font-size: 18px;
}

.profile-orbit-fragments[data-count-width="dense"] p {
    font-size: 8px;
    letter-spacing: -0.04em;
}

.profile-orbit-fragments[data-count-width="dense"] p strong {
    font-size: 14px;
}

.profile-orbit-fragments[data-count-width="dense"] p > span {
    font-size: 7px;
    letter-spacing: -0.06em;
}

.profile-orbit-mini-stats {
    margin: 13px 0 0;
    padding: 6px 3px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(217, 180, 111, 0.34);
    border-radius: 8px;
    background: rgba(2, 15, 32, 0.28);
}

.profile-orbit-mini-stats > div {
    min-width: 0;
    text-align: center;
}

.profile-orbit-mini-stats > div + div {
    border-left: 1px solid rgba(217, 180, 111, 0.2);
}

.profile-orbit-mini-stats dt {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-orbit-mini-stats dt span {
    color: #e8bf72;
}

.profile-orbit-mini-stats dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
}

.profile-orbit-mini-stats dd strong {
    color: #fff0c5;
    font-size: 13px;
}

.profile-orbit-board {
    min-width: 0;
    padding: 6px 3px 0;
    position: relative;
    border: 1px solid rgba(188, 207, 226, 0.22);
    border-radius: 15px;
    background:
        radial-gradient(circle at 70% 85%, rgba(238, 196, 113, 0.08), transparent 35%),
        rgba(3, 16, 34, 0.17);
}

.profile-orbit-day-grid {
    margin: 7px 0 3px;
    padding: 0 5px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 30px;
}

.profile-orbit-day {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.48);
    font-family: Arial, sans-serif;
    font-size: 7px;
}

.profile-orbit-day::after {
    content: '';
    width: 72%;
    height: 1px;
    position: absolute;
    top: 13px;
    left: 64%;
    z-index: 0;
    background: rgba(169, 188, 207, 0.14);
}

.profile-orbit-day:nth-child(7n)::after,
.profile-orbit-day:last-child::after {
    display: none;
}

.profile-orbit-day.is-recorded:has(+ .profile-orbit-day.is-recorded):not(:nth-child(7n))::after {
    background: linear-gradient(90deg, rgba(255, 243, 214, 0.78), rgba(235, 194, 117, 0.5));
    box-shadow: 0 0 4px rgba(255, 235, 194, 0.3);
}

.profile-orbit-day-number {
    height: 10px;
    line-height: 9px;
}

.profile-orbit-day-star {
    width: 7px;
    height: 7px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff6d9;
    background: rgba(151, 170, 192, 0.42);
    font-size: 8px;
    line-height: 1;
}

.profile-orbit-day.is-recorded {
    color: rgba(255, 255, 255, 0.9);
}

.profile-orbit-day.is-recorded .profile-orbit-day-star {
    background: #f5ead2;
    box-shadow: 0 0 5px rgba(255, 242, 214, 0.5);
}

.profile-orbit-day.level-2 .profile-orbit-day-star {
    width: 8px;
    height: 8px;
}

.profile-orbit-day.level-3 .profile-orbit-day-star,
.profile-orbit-day.level-4 .profile-orbit-day-star {
    width: 9px;
    height: 9px;
    background: #f1cc84;
    box-shadow: 0 0 7px rgba(242, 203, 129, 0.64);
}

.profile-orbit-day.is-brilliant .profile-orbit-day-star {
    width: 15px;
    height: 15px;
    border-radius: 0;
    background: transparent;
    color: #fff5d5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 400;
    transform: translateY(-4px);
    box-shadow: none;
    text-shadow:
        0 0 3px rgba(255, 250, 229, 0.95),
        0 0 7px rgba(241, 202, 126, 0.82);
}

@media (max-width: 345px) {
    .profile-monthly-orbit {
        padding-right: 9px;
        padding-left: 9px;
    }

    .profile-monthly-orbit-layout {
        grid-template-columns: minmax(98px, 34%) minmax(0, 1fr);
        gap: 5px;
    }

    .profile-orbit-summary {
        padding-right: 5px;
    }

    .profile-orbit-day-grid {
        padding-right: 2px;
        padding-left: 2px;
    }
}

.profile-photo-editor {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 14px;
    background: rgba(2, 13, 31, 0.62);
    backdrop-filter: blur(2px);
}

.profile-photo-editor[hidden] {
    display: none;
}

.profile-photo-editor-panel {
    width: min(286px, 100%);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    padding: 16px 16px 15px;
    border: 1px solid rgba(226, 188, 113, 0.58);
    border-radius: 20px;
    color: #fff8e8;
    background: linear-gradient(180deg, #102b4b 0%, #071a34 100%);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
}

.profile-photo-editor-viewport {
    width: min(190px, 68vw);
    aspect-ratio: 7 / 10;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 2px solid #e4ba70;
    border-radius: 16px;
    cursor: grab;
    touch-action: none;
    background: #07182e;
    box-shadow: 0 0 0 4px rgba(255, 244, 217, 0.16);
}

.profile-photo-editor-viewport.is-dragging {
    cursor: grabbing;
}

.profile-photo-editor-viewport > img {
    max-width: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.profile-photo-editor-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 33.1%, rgba(255, 255, 255, 0.18) 33.3% 33.7%, transparent 33.9% 66.1%, rgba(255, 255, 255, 0.18) 66.3% 66.7%, transparent 66.9%),
        linear-gradient(transparent 33.1%, rgba(255, 255, 255, 0.18) 33.3% 33.7%, transparent 33.9% 66.1%, rgba(255, 255, 255, 0.18) 66.3% 66.7%, transparent 66.9%);
}

.profile-photo-editor-delete-notice {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 22px;
    color: #fff1d0;
    background: rgba(5, 21, 43, 0.88);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
}

.profile-photo-editor-delete-notice[hidden] {
    display: none;
}

.profile-photo-editor-description {
    margin: 9px 2px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.profile-photo-editor-tools {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
    margin: 10px 2px 0;
}

.profile-photo-editor-tools button {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(229, 190, 113, 0.34);
    border-radius: 10px;
    color: #f7dfb1;
    background: rgba(255, 255, 255, 0.055);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.profile-photo-editor-tools button[aria-pressed="true"] {
    color: #fff4df;
    border-color: rgba(238, 160, 151, 0.62);
    background: rgba(153, 62, 70, 0.34);
}

.profile-photo-editor-tools button:disabled {
    cursor: wait;
    opacity: 0.52;
}

.profile-photo-editor-tools button:active:not(:disabled) {
    transform: scale(0.97);
}

.profile-photo-editor-zoom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 12px 2px 0;
    color: #f5d79e;
    font-size: 11px;
    font-weight: 800;
}

.profile-photo-editor-zoom input {
    width: 100%;
    accent-color: #e3b965;
}

.profile-photo-editor-saving {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 11px 2px -3px;
    color: #f6d995;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.profile-photo-editor-saving[hidden] {
    display: none;
}

.profile-photo-editor-saving-star {
    display: inline-block;
    color: #ffe1a0;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 220, 145, 0.72);
    animation: profile-photo-saving-spin 1.05s linear infinite;
}

@keyframes profile-photo-saving-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-photo-editor-saving-star,
    .resident-card[data-loading="true"]::after {
        animation: none;
    }
}

.profile-photo-editor-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.profile-photo-editor-actions button {
    min-height: 0;
    padding: 8px 14px;
    border: 1px solid rgba(229, 190, 113, 0.45);
    border-radius: 10px;
    color: #f9e7c4;
    background: rgba(255, 255, 255, 0.07);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
}

.profile-photo-editor-actions button:last-child {
    color: #10213b;
    background: linear-gradient(180deg, #ffe3aa 0%, #dbad5a 100%);
}

.profile-photo-editor-actions button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.profile-photo-editor-actions button:active:not(:disabled) {
    transform: scale(0.95);
}

@media screen and (max-width: 350px) {
    .resident-card-row {
        grid-template-columns: minmax(52px, 43%) minmax(0, 1fr);
    }

    .resident-card-row dt::before {
        margin-right: 3px;
    }

    .resident-card-seal {
        width: 44px;
    }

    .profile-star-friend {
        padding-inline: 2px;
    }

    .profile-star-friend-layout {
        grid-template-columns: 41% minmax(0, 1fr);
        gap: 1%;
    }

    .profile-star-friend-items {
        gap: 5px 3px;
    }
}
