.profile-guest-card .section-title {
            font-size: clamp(24px, 7vw, 32px);
            line-height: 1.18;
        }

        .profile-guest-card .section-desc {
            font-size: 16px;
            line-height: 1.55;
        }

        .profile-guest-card .btn-brand {
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 380px) {
            .profile-guest-card {
                padding: 22px 18px !important;
            }
        }

        @media (max-width: 620px) {
            .profile-guest-card .btn-brand {
                width: 100%;
            }
        }

.reward-panel {
        scroll-margin-top: 88px;
    }

    .profile-reward-details > summary {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 58px;
        cursor: pointer;
        list-style: none;
    }

    .profile-reward-details > summary::-webkit-details-marker {
        display: none;
    }

    .profile-reward-summary-icon {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 15px;
        color: #a16207;
        background: #fff4c7;
        font-size: 21px;
    }

    .profile-reward-summary-copy {
        display: grid;
        gap: 1px;
        min-width: 0;
    }

    .profile-reward-summary-copy small {
        color: #64748b;
        font-size: 11px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .profile-reward-summary-copy b {
        color: #0f172a;
        font-size: 20px;
        line-height: 1.2;
    }

    .profile-reward-summary-copy em {
        overflow: hidden;
        color: #64748b;
        font-size: 12px;
        font-style: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-reward-details > summary > .bi {
        color: #547086;
        transition: transform .2s ease;
    }

    .profile-reward-details[open] > summary > .bi {
        transform: rotate(180deg);
    }

    .profile-reward-body {
        padding-top: 16px;
    }

    .reward-total-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid rgba(30, 82, 136, .18);
        background: #e8f1ff;
        color: #1e5288;
        font-weight: 800;
        white-space: nowrap;
    }

    .reward-empty {
        display: grid;
        gap: 12px;
        justify-items: start;
        padding: 18px;
        border: 1px dashed rgba(30, 82, 136, .24);
        border-radius: 18px;
        background: #f8fffd;
    }

    .reward-empty span,
    .reward-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        color: #1e5288;
        background: #ccfbf1;
        font-size: 20px;
    }

    .reward-empty h3,
    .reward-empty p {
        margin: 0;
    }

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

    .reward-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        min-width: 0;
        padding: 16px;
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 18px;
        background: #fff;
    }

    .reward-card-primary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .reward-label {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .reward-card strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 22px;
        line-height: 1.1;
    }

    .reward-card p,
    .reward-muted {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
    }

    .reward-copy-row {
        display: flex;
        gap: 8px;
        margin: 12px 0 8px;
    }

    .reward-copy-row input {
        min-width: 0;
        border-radius: 999px;
        font-size: 13px;
    }

    .btn-outline-brand {
        border: 1px solid rgba(30, 82, 136, .25);
        color: #1e5288;
        background: #fff;
        border-radius: 999px;
        font-weight: 800;
        white-space: nowrap;
    }

    .btn-outline-brand:hover,
    .btn-outline-brand:focus-visible {
        border-color: #1e5288;
        background: #e8f1ff;
        color: #1e5288;
    }

    .reward-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .reward-stats div {
        padding: 12px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid rgba(148, 163, 184, .18);
    }

    .reward-stats span {
        display: block;
        color: #0f172a;
        font-size: 22px;
        font-weight: 900;
    }

    .reward-stats small {
        color: #64748b;
        font-weight: 700;
    }

    .reward-history {
        margin-top: 16px;
    }

    .reward-history-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .reward-history-head h3 {
        margin: 0;
        font-size: 17px;
    }

    .reward-history-head span {
        color: #1e5288;
        font-size: 13px;
        font-weight: 800;
    }

    .reward-log-list {
        display: grid;
        gap: 8px;
    }

    .reward-log-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        background: #f8fafc;
    }

    .reward-log-item span {
        min-width: 0;
        color: #0f172a;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .reward-log-item small {
        color: #64748b;
    }

    .reward-log-item b {
        color: #1e5288;
    }

    @media (max-width: 767px) {
        .reward-grid,
        .reward-card,
        .reward-card-primary {
            grid-template-columns: 1fr;
        }

        .reward-card-primary {
            justify-items: start;
        }

        .reward-copy-row {
            flex-direction: column;
        }

        .reward-copy-row .btn,
        .reward-card-primary .btn {
            width: 100%;
            min-height: 44px;
        }

        .reward-stats {
            gap: 6px;
        }

        .reward-stats div {
            padding: 10px 6px;
            text-align: center;
        }

        .reward-stats span {
            font-size: 19px;
        }

        .reward-stats small {
            display: block;
            font-size: 11px;
            line-height: 1.25;
        }

        .reward-history-head {
            align-items: flex-start;
            flex-direction: column;
        }

        .reward-log-item {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .reward-log-item small {
            grid-column: 1 / -1;
            order: 3;
        }
    }

    .profile-app-page {
        max-width: 980px;
    }

    .profile-app-page > .row > aside {
        display: none;
    }

    .profile-app-page main.col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .profile-app-hero {
        position: relative;
        overflow: visible;
        margin: -12px -12px 20px;
        padding: 28px clamp(18px, 4vw, 42px) 72px;
        border-radius: 0 0 34px 34px;
        color: #fff;
        background:
                radial-gradient(circle at 86% 22%, rgba(255,255,255,.22), transparent 18%),
                linear-gradient(180deg, #239ee5 0%, #0eb9ec 58%, #eaf7ff 100%);
        box-shadow: 0 24px 52px rgba(19, 128, 219, .18);
    }

    .profile-app-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 86px;
        background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.88));
        pointer-events: none;
    }

    .profile-hero-top {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 46px;
    }

    .profile-hero-title {
        grid-column: 1;
        text-align: left;
        color: #fff;
        font-size: clamp(24px, 5vw, 34px);
        font-weight: 850;
        letter-spacing: -.04em;
    }

    .profile-logout {
        grid-column: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 44px;
        min-height: 44px;
        padding: 8px 13px;
        border-radius: 999px;
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        background: rgba(255,255,255,.16);
        text-decoration: none;
    }

    .profile-logout .bi {
        font-size: 20px;
    }

    .profile-identity {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 18px;
        margin-top: 34px;
    }

    .profile-avatar-wrap {
        position: relative;
        flex: 0 0 auto;
    }

    .profile-avatar-wrap img {
        width: 92px;
        height: 92px;
        border: 4px solid rgba(255,255,255,.86);
        border-radius: 999px;
        object-fit: cover;
        box-shadow: 0 18px 36px rgba(6, 58, 103, .18);
    }

    .profile-avatar-wrap a {
        position: absolute;
        right: -2px;
        bottom: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 3px solid #fff;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(135deg, #19b8f2, #0b7ee0);
        box-shadow: 0 10px 20px rgba(6, 58, 103, .18);
    }

    .profile-copy {
        display: grid;
        gap: 5px;
        min-width: 0;
    }

    .profile-copy b {
        color: #fff;
        font-size: clamp(26px, 5vw, 38px);
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -.05em;
        overflow-wrap: anywhere;
    }

    .profile-copy small {
        color: rgba(255,255,255,.88);
        font-size: 16px;
        font-weight: 650;
    }

    .profile-identity-meta {
        display: flex;
        min-width: 0;
        flex-wrap: wrap;
        gap: 5px 12px;
    }

    .profile-identity-meta__item {
        display: inline-flex;
        min-width: 0;
        align-items: center;
        gap: 5px;
    }

    .profile-wallet-row {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin: 34px 0 -112px;
    }

    .profile-wallet-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        min-height: 112px;
        padding: 20px;
        border: 1px solid rgba(9, 80, 145, .08);
        border-radius: 28px;
        background: rgba(255,255,255,.97);
        color: #07345d;
        text-decoration: none;
        box-shadow: 0 18px 40px rgba(29, 118, 196, .16);
    }

    .profile-wallet-card b,
    .profile-wallet-card small {
        display: block;
    }

    .profile-wallet-card b {
        color: #07345d;
        font-size: clamp(20px, 3vw, 28px);
        font-weight: 900;
        line-height: 1.1;
    }

    .profile-wallet-card small {
        margin-top: 7px;
        color: #1e5288;
        font-size: 20px;
        font-weight: 800;
    }

    .profile-wallet-icon {
        display: inline-grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 26px;
    }

    .profile-wallet-icon.wallet {
        color: #f27922;
        background: linear-gradient(135deg, #fff1dc, #fffaf3);
    }

    .profile-wallet-icon.market {
        color: #137ee8;
        background: linear-gradient(135deg, #dff1ff, #f7fbff);
    }

    .profile-wallet-icon.points {
        color: #d69c00;
        background: linear-gradient(135deg, #fff2b8, #fffdf0);
    }

    .profile-app-page main > .section-card:first-child {
        margin-top: 84px;
    }

    .profile-app-page main > .section-card:first-child .section-head {
        margin-bottom: 16px;
    }

    .profile-app-page .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .profile-setup-status {
        display: grid;
        gap: 10px;
        margin-bottom: 14px;
        padding: 14px 16px;
        border: 1px solid rgba(14, 165, 233, .18);
        border-radius: 18px;
        background: linear-gradient(135deg, #eff8ff, #f8fdff);
    }

    .profile-setup-status.is-complete {
        border-color: rgba(22, 163, 74, .20);
        background: linear-gradient(135deg, #effcf4, #fbfffc);
    }

    .profile-setup-copy {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .profile-setup-copy > span:last-child {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .profile-setup-copy b {
        color: #07345d;
        font-size: 15px;
        line-height: 1.25;
    }

    .profile-setup-copy small {
        color: #547086;
        font-weight: 700;
    }

    .profile-setup-icon {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 13px;
        color: #087fc4;
        background: #dff3ff;
        font-size: 19px;
    }

    .profile-setup-status.is-complete .profile-setup-icon {
        color: #15803d;
        background: #dcfce7;
    }

    .profile-setup-progress {
        overflow: hidden;
        height: 7px;
        border-radius: 999px;
        background: #dceaf3;
    }

    .profile-setup-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #0ea5e9, #22c55e);
        transition: width .25s ease;
    }

    .profile-setup-toggle {
        display: none;
    }

    .profile-app-page .listing-card {
        min-height: 0;
        border-radius: 28px !important;
        background: rgba(255,255,255,.96) !important;
    }

    .profile-card-heading {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .profile-card-heading .service-icon {
        margin: 0 !important;
    }

    .profile-card-heading h3,
    .profile-card-heading small {
        display: block;
        margin: 0;
    }

    .profile-card-heading h3 {
        color: #0f172a;
        font-size: 17px;
        line-height: 1.2;
    }

    .profile-card-heading small {
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.35;
    }

    .profile-field-state {
        align-self: start;
        padding: 5px 8px;
        border-radius: 999px;
        color: #9a3412;
        background: #fff7ed;
        font-size: 11px;
        font-weight: 850;
        white-space: nowrap;
    }

    .profile-field-state.is-done {
        color: #166534;
        background: #dcfce7;
    }

    .profile-inline-status {
        min-height: 18px;
        margin: 7px 2px 0;
        color: #547086;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

    .profile-inline-status:not(.has-message):empty {
        display: none;
    }

    .profile-field-label {
        display: block;
        margin: 12px 0 7px;
        color: #334155;
        font-size: 13px;
        font-weight: 800;
    }

    .profile-field-actions {
        display: flex;
        gap: 8px;
        min-width: 0;
    }

    .profile-field-actions .form-control {
        min-width: 0;
    }

    .profile-field-actions .form-control,
    .profile-app-page #profileHomeWard,
    .profile-field-save {
        min-height: 44px;
    }

    .profile-ward-saved {
        display: flex;
        min-height: 52px;
        margin-top: 10px;
        padding: 7px 8px 7px 11px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid rgba(30, 82, 136, .12);
        border-radius: 14px;
        background: #f5fbff;
    }

    .profile-ward-saved[hidden],
    .profile-ward-editor.is-collapsed {
        display: none !important;
    }

    .profile-ward-saved > span {
        display: grid;
        min-width: 0;
        gap: 1px;
    }

    .profile-ward-saved small {
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
    }

    .profile-ward-saved b {
        overflow: hidden;
        color: #173f69;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-ward-saved button {
        display: inline-flex;
        min-width: 58px;
        min-height: 44px;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(30, 82, 136, .18);
        border-radius: 12px;
        background: #fff;
        color: #1e5288;
        font-size: 12px;
        font-weight: 850;
    }

    /* Desktop keeps the existing editable phone form. Mobile reveals this compact saved state. */
    .profile-phone-saved {
        display: none;
    }

    .profile-menu-board {
        display: grid;
        gap: 24px;
    }

    .profile-menu-group {
        display: grid;
        gap: 12px;
    }

    .profile-menu-group h2 {
        margin: 0 0 0 14px;
        color: #07345d;
        font-size: clamp(18px, 4vw, 24px);
        font-weight: 950;
        letter-spacing: -.035em;
    }

    .profile-more-menu > summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 9px;
        margin: 0 14px;
        color: #07345d;
        cursor: pointer;
        list-style: none;
        font-size: clamp(18px, 4vw, 24px);
        font-weight: 950;
        letter-spacing: -.035em;
    }

    .profile-more-menu > summary::-webkit-details-marker {
        display: none;
    }

    .profile-more-menu > summary small {
        padding: 4px 8px;
        border-radius: 999px;
        color: #547086;
        background: #eef6fb;
        font-size: 11px;
        letter-spacing: 0;
    }

    .profile-more-menu > summary .bi {
        font-size: 16px;
        transition: transform .2s ease;
    }

    .profile-more-menu[open] > summary .bi {
        transform: rotate(180deg);
    }

    .profile-menu-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .profile-menu-copy small {
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.3;
    }

    .profile-menu-card {
        overflow: hidden;
        border: 1px solid rgba(9, 80, 145, .08);
        border-radius: 28px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 16px 34px rgba(30, 82, 136, .11);
    }

    /* Shared markup, mobile-only section labels. Keeping them hidden here
       preserves the current desktop card exactly. The divider fallback keeps
       the same desktop separator despite the hidden node between two links. */
    .profile-menu-mobile-section {
        display: none;
        margin: 0;
    }

    .profile-menu-mobile-section--divider + .profile-menu-item {
        border-top: 1px solid rgba(9, 80, 145, .08);
    }

    .profile-menu-item {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        min-height: 82px;
        padding: 14px 18px;
        color: #07345d;
        text-decoration: none;
    }

    .profile-menu-item + .profile-menu-item {
        border-top: 1px solid rgba(9, 80, 145, .08);
    }

    .profile-menu-item b {
        min-width: 0;
        color: #07345d;
        font-size: clamp(17px, 3.2vw, 24px);
        font-weight: 850;
        letter-spacing: -.035em;
        line-height: 1.25;
    }

    .profile-menu-item > .bi-chevron-right {
        color: rgba(7, 52, 93, .42);
        font-size: 22px;
    }

    .profile-menu-icon {
        display: inline-grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border-radius: 18px;
        font-size: 23px;
        box-shadow: 0 10px 22px rgba(30, 82, 136, .10);
    }

    .profile-menu-icon.blue { color: #137ee8; background: linear-gradient(135deg, #dff1ff, #f7fbff); }
    .profile-menu-icon.pink { color: #e22d84; background: linear-gradient(135deg, #ffe5f0, #fff6fa); }
    .profile-menu-icon.orange { color: #f27922; background: linear-gradient(135deg, #fff1dc, #fffaf3); }
    .profile-menu-icon.gold { color: #d69c00; background: linear-gradient(135deg, #fff2b8, #fffdf0); }
    .profile-menu-icon.green { color: #25a866; background: linear-gradient(135deg, #e2fff0, #f7fffb); }
    .profile-menu-icon.slate { color: #6b7f91; background: linear-gradient(135deg, #eef4f8, #fbfdff); }
    .profile-menu-item--logout b { color: #a61b2b; }
    .profile-menu-icon--logout { color: #b42332; background: #fff0f1; box-shadow: none; }

    .profile-app-page .reward-panel {
        border-radius: 30px !important;
    }

    @media (max-width: 720px) {
        .profile-app-page {
            padding-top: 0 !important;
        }

        .profile-app-hero {
            margin-top: -12px;
            margin-bottom: 10px;
            padding: 10px 12px 12px;
            border-radius: 0 0 22px 22px;
        }

        /* Mobile account density v4: one compact app surface, no parallel template. */
        .profile-hero-top {
            display: none;
        }

        .profile-hero-title {
            font-size: 18px;
            letter-spacing: -.025em;
        }

        .profile-identity {
            gap: 11px;
            margin-top: 0;
            text-align: left;
        }

        .profile-avatar-wrap img {
            width: 56px;
            height: 56px;
        }

        .profile-avatar-wrap a {
            right: -9px;
            bottom: -7px;
            width: 44px;
            height: 44px;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .profile-avatar-wrap a::before {
            position: absolute;
            width: 30px;
            height: 30px;
            border: 2px solid #fff;
            border-radius: 999px;
            background: linear-gradient(135deg, #19b8f2, #0b7ee0);
            box-shadow: 0 8px 16px rgba(6, 58, 103, .18);
            content: "";
        }

        .profile-avatar-wrap a .bi {
            position: relative;
            z-index: 1;
        }

        .profile-copy b {
            font-size: clamp(20px, 6vw, 25px);
            letter-spacing: -.035em;
        }

        .profile-copy small {
            max-width: min(68vw, 300px);
            font-size: 13px;
            line-height: 1.35;
        }

        .profile-identity-meta {
            display: grid;
            gap: 2px;
        }

        .profile-identity-meta__item {
            display: grid;
            grid-template-columns: 14px minmax(0, 1fr);
            gap: 4px;
        }

        .profile-identity-meta__item > span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .profile-wallet-row {
            gap: 8px;
            margin: 9px 0 0;
        }

        .profile-wallet-card {
            grid-template-columns: 34px minmax(0, 1fr);
            justify-items: start;
            text-align: left;
            gap: 6px;
            min-height: 60px;
            padding: 6px 8px;
            border-radius: 15px;
        }

        .profile-wallet-icon {
            width: 34px;
            height: 34px;
            border-radius: 11px;
            font-size: 17px;
        }

        .profile-wallet-card b {
            font-size: 14px;
            letter-spacing: -.025em;
        }

        .profile-wallet-card small {
            margin-top: 2px;
            font-size: 11px;
        }

        .profile-app-page main > .section-card:first-child {
            margin-top: 0;
            padding: 12px !important;
        }

        .profile-app-page main > .section-card:first-child .section-kicker,
        .profile-app-page main > .section-card:first-child .section-desc {
            display: none;
        }

        .profile-app-page main > .section-card:first-child .section-title {
            font-size: 19px;
            line-height: 1.22;
        }

        .profile-app-page main > .section-card:first-child .section-head {
            align-items: flex-start;
        }

        .profile-setup-card.is-complete > .section-head {
            display: none;
        }

        .profile-app-page main > .section-card:first-child .section-link {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
        }

        .profile-app-page .listing-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .profile-essential-grid #profile-home-ward { order: -1; }

        #profile-phone.has-saved-value:not(.is-editing) .profile-phone-editor {
            display: none;
        }

        #profile-phone.has-saved-value:not(.is-editing) .profile-card-heading,
        #profile-home-ward.has-saved-value:not(.is-editing) .profile-card-heading {
            display: none;
        }

        #profile-phone.has-saved-value:not(.is-editing) .profile-phone-saved {
            display: flex;
            min-height: 52px;
            margin-top: 10px;
            padding: 7px 8px 7px 11px;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border: 1px solid rgba(30, 82, 136, .12);
            border-radius: 14px;
            background: #f5fbff;
        }

        .profile-phone-saved > span {
            display: grid;
            min-width: 0;
            gap: 1px;
        }

        .profile-phone-saved small {
            color: #64748b;
            font-size: 10px;
            font-weight: 800;
        }

        .profile-phone-saved b {
            overflow: hidden;
            color: #173f69;
            font-size: 14px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .profile-phone-saved button {
            display: inline-flex;
            min-width: 58px;
            min-height: 44px;
            padding: 0 10px;
            align-items: center;
            justify-content: center;
            gap: 5px;
            border: 1px solid rgba(30, 82, 136, .18);
            border-radius: 12px;
            background: #fff;
            color: #1e5288;
            font-size: 12px;
            font-weight: 850;
        }

        .profile-app-page .listing-card {
            padding: 12px !important;
            border-radius: 16px !important;
        }

        .profile-setup-status {
            padding: 9px 10px;
            border-radius: 13px;
        }

        /* Returning-user density v3: completed signals must not repeat 2/2 + 100% + saved. */
        .profile-setup-status.is-complete {
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            min-height: 44px;
            margin-bottom: 10px;
            padding: 5px 8px;
        }

        .profile-setup-card.is-complete:not(.is-expanded) .profile-essential-grid {
            display: none;
        }

        .profile-setup-status.is-complete .profile-setup-toggle {
            display: inline-flex;
            min-height: 44px;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 0 9px;
            border: 1px solid rgba(22, 163, 74, .18);
            border-radius: 12px;
            background: #fff;
            color: #17653d;
            font-size: 11px;
            font-weight: 850;
            white-space: nowrap;
        }

        .profile-setup-card.is-expanded .profile-setup-toggle .bi {
            transform: rotate(180deg);
        }

        .profile-setup-status.is-complete .profile-setup-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            font-size: 17px;
        }

        .profile-setup-status.is-complete .profile-setup-copy small,
        .profile-setup-status.is-complete .profile-setup-progress,
        .profile-field-state.is-done {
            display: none;
        }

        .profile-card-heading {
            grid-template-columns: 42px minmax(0, 1fr) auto;
            gap: 8px;
        }

        .profile-card-heading .service-icon {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            font-size: 19px;
        }

        .profile-field-actions {
            flex-direction: row;
        }

        .profile-field-actions .profile-field-save {
            flex: 0 0 auto;
            min-width: 64px;
        }

        #profileHomeWardSave {
            width: 100%;
        }

        .profile-menu-board {
            gap: 12px;
        }

        .profile-menu-group {
            gap: 8px;
        }

        .profile-menu-group h2 {
            margin-left: 6px;
            font-size: 14px;
            letter-spacing: 0;
        }

        .profile-more-menu > summary {
            min-height: 44px;
            margin-inline: 6px;
            font-size: 14px;
            letter-spacing: 0;
        }

        .profile-menu-card {
            border-radius: 17px;
        }

        .profile-menu-item {
            grid-template-columns: 40px minmax(0, 1fr) 18px;
            gap: 9px;
            min-height: 58px;
            padding: 7px 10px;
        }

        .profile-menu-item b {
            font-size: 14.5px;
            letter-spacing: -.015em;
        }

        .profile-menu-copy small {
            overflow: hidden;
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .profile-menu-icon {
            width: 38px;
            height: 38px;
            border-radius: 13px;
            font-size: 18px;
        }

        .profile-more-menu .profile-menu-copy small {
            display: none;
        }

        /* App-style settings list: compact, consistent controls with explicit
           groups; all interactive rows remain taller than the 44px target. */
        .profile-more-menu .profile-menu-mobile-section {
            display: flex;
            align-items: center;
            min-height: 28px;
            padding: 7px 10px 4px;
            color: #60788c;
            background: #f8fbfd;
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: .035em;
            line-height: 1.2;
            text-transform: uppercase;
        }

        .profile-more-menu .profile-menu-mobile-section--divider {
            border-top: 1px solid rgba(9, 80, 145, .08);
        }

        .profile-more-menu .profile-menu-mobile-section + .profile-menu-item {
            border-top: 0;
        }

        .profile-more-menu .profile-menu-item {
            grid-template-columns: 34px minmax(0, 1fr) 16px;
            gap: 9px;
            min-height: 52px;
            padding: 5px 10px;
            touch-action: manipulation;
            transition: background-color .14s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .profile-more-menu .profile-menu-item:active {
            background: #eef5fa;
        }

        .profile-more-menu .profile-menu-item:focus-visible {
            outline: 2px solid #1e73be;
            outline-offset: -2px;
        }

        .profile-more-menu .profile-menu-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            color: #315d7b;
            background: #eef4f8;
            box-shadow: none;
            font-size: 16px;
        }

        .profile-more-menu .profile-menu-item--logout .profile-menu-icon {
            color: #b42332;
            background: #fff0f1;
        }

        .profile-more-menu .profile-menu-copy b {
            font-size: 14px;
            font-weight: 760;
            letter-spacing: -.01em;
        }

        .profile-more-menu .profile-menu-item > .bi-chevron-right {
            font-size: 15px;
        }

        /* Mobile profile: promote the two Market tasks as compact app shortcuts. */
        .profile-menu-card--quick-grid {
            display: grid;
            overflow: visible;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .profile-menu-card--quick-grid .profile-menu-item {
            grid-template-columns: 36px minmax(0, 1fr);
            gap: 8px;
            min-height: 64px;
            padding: 8px;
            border: 1px solid rgba(9, 80, 145, .08);
            border-radius: 15px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(30, 82, 136, .08);
        }

        .profile-menu-card--quick-grid .profile-menu-item + .profile-menu-item {
            border-top: 1px solid rgba(9, 80, 145, .08);
        }

        .profile-menu-card--quick-grid .profile-menu-icon {
            width: 34px;
            height: 34px;
            border-radius: 11px;
            font-size: 17px;
        }

        .profile-menu-card--quick-grid .profile-menu-copy small,
        .profile-menu-card--quick-grid .profile-menu-item > .bi-chevron-right {
            display: none;
        }

        .profile-app-page .reward-panel {
            padding: 16px !important;
            border-radius: 22px !important;
        }

        .reward-panel .section-head {
            align-items: flex-start;
            gap: 12px;
        }

        .reward-total-pill {
            min-height: 36px;
            padding: 6px 10px;
            font-size: 13px;
        }
    }

    @media (max-width: 380px) {
        .profile-hero-title {
            font-size: 17px;
        }

        .profile-wallet-card {
            min-height: 58px;
        }

        .profile-wallet-card b {
            font-size: 13.5px;
        }

        .profile-wallet-card small {
            font-size: 10.5px;
        }

        .profile-menu-item {
            grid-template-columns: 38px minmax(0, 1fr) 16px;
            gap: 8px;
            padding-inline: 9px;
        }

        .profile-menu-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
        }
    }
