:root {
    --mobile-primary-topbar-height: 54px;
    --mobile-primary-section-height: 44px;
    --mobile-primary-header-height: calc(
        var(--mobile-primary-topbar-height) +
        var(--mobile-primary-section-height) +
        env(safe-area-inset-top, 0px)
    );
}

.mobile-primary-header {
    display: none;
    box-sizing: border-box;
    color: #17191f;
    background: #fff;
    font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont,
        "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mobile-primary-header *,
.mobile-primary-header *::before,
.mobile-primary-header *::after {
    box-sizing: border-box;
}

.mobile-primary-header a {
    color: inherit;
    text-decoration: none;
}

.mobile-primary-header button {
    margin: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.mobile-primary-header :where(a, button):focus-visible {
    outline: 3px solid rgba(40, 100, 220, 0.3);
    outline-offset: -3px;
}

.mobile-primary-top-panel :where(a, button):focus-visible {
    outline: 3px solid rgba(40, 100, 220, 0.3) !important;
    outline-offset: -3px;
    box-shadow: none !important;
}

/* 터치·마우스 조작 뒤 WebView가 :focus-visible로 오판해 남기는 사각형을 제거한다. */
html[data-mobile-header-focus-modality="pointer"]
    :where(.mobile-primary-header, .mobile-primary-top-panel)
    :where(a, button):focus,
html[data-mobile-header-focus-modality="pointer"]
    :where(.mobile-primary-header, .mobile-primary-top-panel)
    :where(a, button):focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.mobile-primary-header__topbar {
    display: flex;
    min-height: calc(var(--mobile-primary-topbar-height) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(232, 234, 238, 0.88);
    background: rgba(255, 255, 255, 0.97);
}

.mobile-primary-header__brand {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: #17191f;
    letter-spacing: -0.045em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.mobile-primary-header__brand-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    color: #17191f;
    background: #ffd633;
}

.mobile-primary-header__brand-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-primary-header__brand-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.mobile-primary-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.mobile-primary-header__icon-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border-radius: 12px;
    color: #17191f;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.mobile-primary-header__icon-button > svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-primary-header__menu-button.is-logged-in {
    color: #caa500;
}

.mobile-primary-header__sections {
    display: flex;
    width: 100%;
    min-height: var(--mobile-primary-section-height);
    padding: 0 8px;
    align-items: stretch;
    gap: 4px;
    overflow: hidden;
    border-bottom: 1px solid #e8eaee;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-primary-header__current {
    display: flex;
    flex: 0 1 clamp(64px, calc(100% - 312px), 108px);
    min-width: 44px;
    align-items: center;
}

.mobile-primary-header__navigation {
    display: flex;
    flex: 1 1 308px;
    min-width: 0;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.mobile-primary-header__navigation::-webkit-scrollbar {
    display: none;
}

.mobile-primary-header__section {
    position: relative;
    display: flex;
    flex: 1 1 44px;
    min-width: 38px;
    min-height: var(--mobile-primary-section-height);
    padding: 0 2px;
    align-items: center;
    justify-content: center;
    color: #747c89;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.mobile-primary-header__section strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 550;
    line-height: 1;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
}

.mobile-primary-header__heading {
    display: flex;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: inherit;
    font: inherit;
}

.mobile-primary-header__heading-link {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-decoration: none;
}

.mobile-primary-header__heading-link:hover {
    color: inherit;
    text-decoration: none;
}

.mobile-primary-header__heading-link:focus-visible {
    outline: 2px solid #8d9aa8;
    outline-offset: -2px;
}

.mobile-primary-header__section.is-active {
    color: #17191f;
}

.mobile-primary-header__section.is-active::after {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 32px;
    height: 3px;
    transform: translateX(-50%);
    background: #ffd633;
    content: "";
}

.mobile-primary-header__heading strong {
    flex: 0 0 auto;
    overflow: visible;
    font-size: 20px;
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.mobile-primary-header__heading span {
    display: block;
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
    color: #747c89;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
}

.mobile-primary-header__section.is-active strong {
    font-weight: 750;
}

@supports (backdrop-filter: blur(12px)) {
    .mobile-primary-header__topbar,
    .mobile-primary-header__sections {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: saturate(150%) blur(14px);
        -webkit-backdrop-filter: saturate(150%) blur(14px);
    }
}

body.is-mobile-home .mobile-primary-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: block;
    width: 100%;
    background: #fff;
}

@media (max-width: 768px) {
    body.is-mobile-home,
    body.mobile-primary-title-integrated {
        --mobile-primary-content-start-gap: 12px;
    }

    body.mobile-main-shell {
        --header-height: var(--mobile-primary-header-height) !important;
    }

    body.mobile-main-shell .mobile-primary-header {
        position: fixed;
        z-index: 1000;
        top: 0;
        right: 0;
        left: 0;
        display: block;
        width: 100%;
        min-width: 0;
        height: var(--mobile-primary-header-height);
    }

    body.mobile-main-shell .improved-header {
        display: none !important;
    }

    body.mobile-main-shell .right-sidebar-menu {
        top: calc(var(--mobile-primary-topbar-height) + env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px)) !important;
        max-height: calc(100dvh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px)) !important;
    }
}

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel {
        position: fixed;
        z-index: 1002;
        top: calc(var(--mobile-primary-topbar-height) + env(safe-area-inset-top, 0px));
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        max-height: calc(
            100dvh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px)
        );
        box-sizing: border-box;
        overflow-y: auto;
        border: 1px solid #e3e6ea;
        border-right: 0;
        border-left: 0;
        border-radius: 0 0 14px 14px;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: transform 180ms ease, opacity 150ms ease, visibility 0s linear 180ms;
        animation: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel[hidden] {
        display: none !important;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-notification-panel {
        display: flex;
        flex-direction: column;
        top: calc(var(--mobile-primary-topbar-height) + env(safe-area-inset-top, 0px) + 8px);
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        max-height: calc(100dvh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
        padding: 0;
        overflow: hidden;
        border: 1px solid #dfe3e8;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(24, 36, 54, 0.12);
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-notification-panel .mobile-primary-top-panel__head {
        flex: 0 0 auto;
        padding: 16px 16px 12px 20px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-notification-panel .mobile-primary-top-panel__head > div > span {
        display: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-notification-panel .mobile-primary-top-panel__head strong {
        color: #1b2533;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: -0.03em;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-notification-panel .nc-mini__status:not(.is-compact) {
        padding: clamp(10px, 4vh, 30px) 24px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel {
        padding: 0;
        max-height: calc(100vh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - var(--mobile-primary-topbar-height) - env(safe-area-inset-top, 0px));
        overflow-x: hidden;
        scroll-padding-block: 18px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__head > div > span {
        display: block;
        margin-bottom: 3px;
        color: #2457d6;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.11em;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__head strong {
        color: #111827;
        font-size: 18px;
        font-weight: 760;
        line-height: 1.2;
        letter-spacing: -0.04em;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready {
        display: flex;
        min-height: 104px;
        align-items: center;
        gap: 14px;
        margin-top: 14px;
        padding: 16px;
        box-sizing: border-box;
        border-radius: 12px;
        background: #f7f9fc;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready[hidden] {
        display: none !important;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready > span {
        display: grid;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        place-items: center;
        border-radius: 50%;
        background: #eaf0ff;
        color: #2457d6;
        font-size: 18px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready > span :where(svg, i) {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready strong {
        display: block;
        color: #111827;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.25;
        letter-spacing: -0.03em;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel__ready p {
        margin: 5px 0 0;
        color: #667085;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.02em;
    }

    /*
     * 하단 시트용 공용 프로필 CSS가 함께 로드되더라도 상단 패널에서는
     * translateY(100%)가 상속되지 않도록 공용 헤더가 내부 레이아웃까지 소유한다.
     */
:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel > .mobile-profile-modal-content {
        width: 100%;
        max-width: none;
        max-height: none;
        box-sizing: border-box;
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        border-radius: 0 0 14px 14px;
        background: #fff;
        box-shadow: none;
        color: #111827;
        font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 14px;
        line-height: 1.4;
        transform: none;
        transition: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-header {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-avatar {
        display: block;
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
        flex: 0 0 44px;
        border-radius: 50%;
        object-fit: cover;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-name {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
        color: #111827;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-nickname {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-login-provider {
        display: inline-flex;
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        color: #202124;
        background: #fff;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-login-provider :where(svg, img) {
        display: block;
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-login-provider--kakao {
        color: #3c1e1e;
        background: #fee500;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-login-provider--naver {
        color: #03c75a;
        background: #fff;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-close {
        font: inherit;
        appearance: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-summary {
        margin: 0 0 12px;
        padding: 0 0 12px;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-grid.market-banner-section {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-item {
        display: block;
        min-width: 0;
        min-height: 74px;
        padding: 10px 3px 9px;
        box-sizing: border-box;
        border: 1px solid #e3eaf4;
        border-radius: 8px;
        background: #fff;
        text-align: center;
        cursor: default;
        transition: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-item :where(.mobile-profile-market-label, .market-banner-value, .market-banner-change) {
        display: block;
        max-width: 100%;
        overflow: visible;
        line-height: 1.3;
        text-overflow: clip;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.02em;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-label {
        color: #475569;
        font-size: 12px;
        font-weight: 700;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .market-banner-value {
        margin-top: 4px;
        color: #17191f;
        font-size: 13px;
        font-weight: 750;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .market-banner-change {
        margin-top: 3px;
        color: #667085;
        font-size: 11px;
        font-weight: 650;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-item.up :where(.market-banner-value, .market-banner-change) {
        color: #d92d20 !important;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-market-item.down :where(.market-banner-value, .market-banner-change) {
        color: #2563eb !important;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status {
        display: flex;
        min-height: 66px;
        align-items: center;
        gap: 11px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 10px;
        background: #f1f6ff;
        color: #1d4ed8;
        text-decoration: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-icon {
        display: grid;
        width: 34px;
        height: 38px;
        flex: 0 0 34px;
        place-items: center;
        font-size: 23px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-copy {
        min-width: 0;
        flex: 1;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-copy :where(strong, small) {
        display: block;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-copy strong {
        font-size: 15px;
        font-weight: 750;
        line-height: 1.3;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-copy small {
        margin-top: 4px;
        color: #526681;
        font-size: 12px;
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-arrow {
        flex: 0 0 auto;
        font-size: 11px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-activity-heading {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel :where(.mobile-profile-member-grade, .mobile-profile-member-occupation) {
        display: inline-flex;
        max-width: 100%;
        align-items: center;
        padding: 3px 7px;
        border-radius: 6px;
        color: #2457d6;
        background: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-member-occupation {
        color: #475569;
        background: #e8eef6;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-claim-status-copy .mobile-profile-activity-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-activity-meta > span {
        white-space: nowrap;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-services {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 10px;
        padding: 0 0 10px;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-services a {
        display: flex;
        min-width: 0;
        min-height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 4px;
        box-sizing: border-box;
        border-radius: 6px;
        color: #27354b;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        text-decoration: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-services a + a {
        border-left: 1px solid #edf0f3;
        border-radius: 0;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-services i {
        color: #416da9;
        font-size: 18px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-links a {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 68px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 3px;
        box-sizing: border-box;
        border-radius: 6px;
        background: transparent;
        color: #414b5b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.3;
        text-align: center;
        text-decoration: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-links a > i {
        height: 20px;
        color: #596779;
        font-size: 19px;
        line-height: 20px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-links a > span {
        white-space: nowrap;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-tool-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 28px);
        display: inline-flex;
        min-width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-sizing: border-box;
        border: 2px solid #fff;
        border-radius: 10px;
        background: #d92d20;
        color: #fff;
        font-size: 10px;
        font-weight: 750;
        line-height: 1;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-heading {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 10px;
        color: #343b46;
        font-size: 13px;
        line-height: 1.3;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-heading > i {
        color: #453a16;
        font-size: 16px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-heading strong {
        font-weight: 700;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-actions a {
        display: flex;
        min-width: 0;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 10px 12px;
        box-sizing: border-box;
        border: 1px solid #f0dc5b;
        border-radius: 7px;
        background: #fee500;
        color: #342d16;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        text-decoration: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-actions a.chat {
        border-color: #f0e4a5;
        background: #fff9dc;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-kakao-actions i {
        flex: 0 0 auto;
        font-size: 11px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-account-summary {
        margin: 0 0 12px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 6px 0;
        border-bottom: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut {
        display: flex;
        min-width: 0;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 8px 10px;
        box-sizing: border-box;
        color: #59616b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.3;
        text-decoration: none;
    }

/* 결제 기능 개발 완료 전까지 프로필 아이콘의 결제정보 바로가기는 노출하지 않는다. */
:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut[href="/profilepc/profile.php?tab=payments"] {
        display: none !important;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut + .mobile-profile-shortcut {
        border-left: 1px solid #edf0f3;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut span {
        display: inline-flex;
        min-width: 0;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut span i {
        width: 18px;
        color: #59616b;
        text-align: center;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-shortcut > i {
        color: #98a2b3;
        font-size: 9px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-summary {
        margin: 0 0 12px;
        padding: 10px 11px;
        box-sizing: border-box;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f8fafc;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-heading strong {
        color: #475569;
        font-size: 12px;
        font-weight: 700;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-heading > span {
        color: #667085;
        font-size: 10px;
        font-weight: 600;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat {
        min-width: 0;
        padding: 9px 4px;
        box-sizing: border-box;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat:nth-child(even) {
        padding-left: 12px;
        border-left: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat:nth-child(n + 3) {
        border-top: 1px solid #e5e7eb;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat :where(span, strong) {
        display: block;
        line-height: 1.3;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat > span {
        color: #667085;
        font-size: 11px;
        font-weight: 600;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-admin-stat > strong {
        margin-top: 3px;
        color: #27354b;
        font-size: 15px;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
        overflow-wrap: break-word;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-agent {
        width: 100%;
        margin-bottom: 12px;
        padding: 10px 11px;
        box-sizing: border-box;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
        font-size: 11px;
        line-height: 1.35;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-agent-title {
        margin-bottom: 7px;
        color: #475569;
        font-size: 11px;
        font-weight: 700;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-agent-row {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding: 3px 0;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-footer {
        display: grid;
        width: 100%;
        gap: 8px;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-btn {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        box-sizing: border-box;
        border-radius: 9px;
        background: #e9eef5;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        text-decoration: none;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-profile-panel .mobile-profile-modal-btn.logout {
        background: #fef2f2;
        color: #dc2626;
    }

    /* 홈·공용 페이지가 서로 다른 클래스명을 사용해도 닫기 버튼은 여기서만 제어한다. */
:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel
        :where([data-notification-close], [data-header-panel-close], [data-profile-close]) {
        display: inline-flex !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #f4f6f8 !important;
        color: #64748b !important;
        box-shadow: none !important;
        cursor: pointer;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-top-panel
        :where([data-notification-close], [data-header-panel-close], [data-profile-close])
        :where(svg, i) {
        width: 20px;
        height: 20px;
        font-size: 18px;
        line-height: 1;
    }

:where(body.is-mobile-home, body.mobile-primary-small-viewport) .mobile-primary-panel-backdrop {
        position: fixed;
        z-index: 90;
        top: calc(var(--mobile-primary-topbar-height) + env(safe-area-inset-top, 0px));
        right: 0;
        bottom: 0;
        left: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

@media (max-width: 768px) {
    body.mobile-primary-title-integrated [data-mobile-primary-title-source] {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        border: 0 !important;
        white-space: nowrap !important;
    }

    body.mobile-primary-title-integrated [data-mobile-primary-title-support] {
        display: none !important;
    }

    body.mobile-primary-title-integrated [data-mobile-primary-title-block="collapse"] {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        border: 0 !important;
    }

    /* 공용 상단 헤더 다음의 첫 서비스 요소를 같은 간격에서 시작한다. */
    body.is-mobile-home .imh-stage--home .imh-search-section {
        padding-top: var(--mobile-primary-content-start-gap) !important;
    }

    body.mobile-primary-title-integrated.is-claim-entry-page .claim-entry-hub {
        padding-top: calc(
            var(--mobile-primary-header-height) +
            var(--mobile-primary-content-start-gap)
        ) !important;
    }

    body.mobile-primary-title-integrated.platform-hub-body .app-hub-v4__intro {
        padding-top: calc(var(--mobile-primary-content-start-gap) + 8px) !important;
    }

    body.mobile-primary-title-integrated.mobile-main-shell.fc-forum-app main.board-list-page .board-page-hero {
        min-height: 0 !important;
        height: var(--mobile-primary-content-start-gap) !important;
        padding: 0 !important;
    }

    /* 뉴스 카테고리는 하단 구분선만 유지한다. */
    body.mobile-primary-title-integrated .news-editorial-nav {
        border-top: 0 !important;
    }

    body.mobile-primary-title-integrated .news-title-section,
    body.mobile-primary-title-integrated .news-title,
    body.mobile-primary-title-integrated .news-title-row {
        width: 100%;
    }

    body.mobile-primary-title-integrated .news-title-row {
        justify-content: flex-end;
    }

    body.mobile-primary-title-integrated .news-title-badges {
        margin-left: auto;
    }

    body.mobile-primary-title-integrated.main-page .news-header:not(.news-header--has-admin-actions) {
        display: none !important;
    }

    body.mobile-primary-title-integrated.main-page .news-header--has-admin-actions .rss-badge {
        display: none !important;
    }

    body.mobile-primary-title-integrated.mobile-main-shell.fc-forum-app main.board-list-page .board-page-hero [data-mobile-primary-title-support],
    body.mobile-primary-title-integrated.mobile-main-shell.fc-forum-app main.board-list-page .board-page-hero .board-rss-badge {
        display: none !important;
    }

    body.mobile-primary-title-integrated.fc-forum-app main.board-list-page .board-hero-title-line {
        justify-content: flex-end !important;
    }
}

@media (max-width: 600px) {
    body.mobile-primary-title-integrated.platform-hub-body .app-hub-v4__intro {
        padding-top: calc(var(--mobile-primary-content-start-gap) + 4px) !important;
    }
}

@media (max-width: 359px) {
    .mobile-primary-header__topbar {
        padding-right: 6px;
        padding-left: 12px;
    }

    .mobile-primary-header__icon-button {
        width: 42px;
        min-width: 42px;
    }

    .mobile-primary-header__heading strong {
        font-size: 19px;
    }

    .mobile-primary-header__heading span {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-primary-header *,
    .mobile-primary-header *::before,
    .mobile-primary-header *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
