.member-portal-shell {
    min-height: 100vh;
    background: #f4f7f5;
}

/* Shared Member/Rider PWA controls use existing Bootstrap button styles. */
.member-pwa-install[hidden] { display: none !important; }
.member-pwa-install { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.member-portal-header { padding-top: env(safe-area-inset-top, 0px); }
.rider-shell .rider-header .rider-header-actions { display: flex; align-items: center; gap: 8px; }
.rider-shell .rider-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.member-pwa-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 16px 48px #102f2733;
}
.member-pwa-dialog::backdrop { background: #102f2766; }
.member-pwa-dialog button { min-height: 44px; }
.member-pwa-disconnected body > :not(#member-pwa-connection) { display: none !important; }
#member-pwa-connection {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: #f4f7f5;
    color: #19342b;
}
#member-pwa-connection > div { max-width: 440px; }
#member-pwa-connection button { min-height: 44px; }
@media (max-width: 767.98px) {
    .member-pwa-install { width: 44px; justify-content: center; padding: 0; border-radius: 12px; }
    .member-pwa-install span { display: none; }
    .member-portal-account { gap: 6px; }
}

/* Live marketplace delivery map content is created by the map client at runtime. */
.member-delivery-timeline .member-delivery-trip{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fff}.member-delivery-timeline .member-delivery-trip>i{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e8f4ef;color:var(--brand)}.member-delivery-timeline .member-delivery-trip strong,.member-delivery-timeline .member-delivery-trip small{display:block}.member-delivery-timeline .member-delivery-trip strong{font-size:13px}.member-delivery-timeline .member-delivery-trip small{margin-top:2px;color:var(--muted);font-size:12px}.member-delivery-timeline .member-delivery-trip>b{padding:4px 8px;border-radius:999px;background:#edf2ef;font-size:11px}.member-delivery-timeline .member-delivery-trip>b.active{background:#dff3ea;color:#136146}.member-delivery-timeline .member-delivery-trip>b.completed{background:#e3f0fb;color:#245f8e}.member-delivery-map .member-map-rider-icon{display:grid!important;width:34px!important;height:34px!important;place-items:center;border:3px solid #fff;border-radius:50%;background:#0d5a44;color:#fff;box-shadow:0 3px 10px #102f2766;font-size:16px}.member-delivery-map .member-map-place-icon{display:grid!important;width:28px!important;height:28px!important;place-items:center;border:2px solid #fff;border-radius:9px;background:#d9ab42;color:#173128;box-shadow:0 2px 8px #102f2744;font-size:13px}
@media(max-width:767.98px){.member-delivery-timeline .member-delivery-trip{grid-template-columns:30px minmax(0,1fr)}.member-delivery-timeline .member-delivery-trip>b{grid-column:2;justify-self:start}}

.member-portal-header {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    box-shadow: 0 8px 24px rgba(9, 42, 32, .12);
}

.member-portal-header-inner {
    min-height: 72px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.member-portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

    .member-portal-brand:hover {
        color: #fff;
    }

    .member-portal-brand img {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        object-fit: cover;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, .25);
    }

    .member-portal-brand strong,
    .member-portal-brand small {
        display: block;
    }

    .member-portal-brand strong {
        font-size: 16px;
        letter-spacing: .025em;
    }

    .member-portal-brand small {
        margin-top: 2px;
        color: rgba(255, 255, 255, .68);
        font-size: 13px;
    }

.member-portal-account {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-portal-account-copy {
    text-align: right;
    line-height: 1.2;
}

    .member-portal-account-copy strong,
    .member-portal-account-copy small {
        display: block;
    }

    .member-portal-account-copy strong {
        font-size: 14px;
    }

    .member-portal-account-copy small {
        margin-top: 3px;
        color: rgba(255, 255, 255, .64);
        font-size: 12px;
    }

.member-portal-signout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-color: rgba(255, 255, 255, .3);
}

.member-marketplace-header-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-accent, #d6ad4f) 68%, white);
    border-radius: 11px;
    background: color-mix(in srgb, var(--brand-accent, #d6ad4f) 84%, white 16%);
    color: color-mix(in srgb, var(--brand-deep) 88%, #000);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 16px rgba(5, 25, 18, .14);
}

.member-marketplace-header-link > i {
    display: block;
    line-height: 1;
}

.member-marketplace-header-link:hover,
.member-marketplace-header-link.active {
    background: color-mix(in srgb, var(--brand-accent, #d6ad4f) 70%, white 30%);
    color: var(--brand-deep);
}

.member-portal-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.member-portal-nav-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: visible;
}

.member-portal-nav-link {
    min-height: 52px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: #66736e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .member-portal-nav-link:hover {
        color: var(--brand);
    }

    .member-portal-nav-link.active {
        color: var(--brand);
        border-bottom-color: var(--brand);
        font-weight: 750;
    }

.member-portal-nav-group {
    position: relative;
}

.member-portal-nav-trigger {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
}

.member-portal-nav-trigger > i {
    font-size: 10px;
    transition: transform .15s ease;
}

.member-portal-nav-group:hover .member-portal-nav-trigger,
.member-portal-nav-group.open .member-portal-nav-trigger,
.member-portal-nav-group.active .member-portal-nav-trigger {
    color: var(--brand);
}

.member-portal-nav-group.active .member-portal-nav-trigger {
    border-bottom-color: var(--brand);
    font-weight: 750;
}

.member-portal-nav-group:hover .member-portal-nav-trigger > i,
.member-portal-nav-group.open .member-portal-nav-trigger > i {
    transform: rotate(180deg);
}

.member-portal-nav-menu {
    position: absolute;
    z-index: 1030;
    top: calc(100% - 1px);
    left: 0;
    min-width: 190px;
    padding: 6px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(12, 52, 39, .14);
}

.member-portal-nav-group:hover .member-portal-nav-menu,
.member-portal-nav-group.open .member-portal-nav-menu {
    display: block;
}

.member-portal-nav-menu-link {
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: #52605b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.member-portal-nav-menu-link:hover,
.member-portal-nav-menu-link:focus-visible,
.member-portal-nav-menu-link.active {
    background: color-mix(in srgb, var(--brand) 8%, white);
    color: var(--brand);
    outline: none;
}

.member-portal-main {
    min-height: calc(100vh - 124px);
}

@media (min-width: 768px) {
    .member-portal-shell {
        display: flex;
        flex-direction: column;
    }

    .member-portal-header,
    .member-portal-nav {
        flex: 0 0 auto;
    }

    .member-portal-main {
        min-height: 0;
        flex: 1 0 auto;
    }
}

.member-portal-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}

.member-portal-kicker {
    display: block;
    margin-bottom: 5px;
    color: #8a7a4f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.member-portal-welcome-card {
    padding: 30px 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 20%, var(--brand-accent-soft, rgba(199, 165, 74, .28)), transparent 24%), linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    box-shadow: 0 12px 32px rgba(12, 52, 39, .14);
}

    .member-portal-welcome-card h1 {
        margin: 0 0 7px;
        font-size: clamp(25px, 3vw, 36px);
        font-weight: 800;
        letter-spacing: -.035em;
    }

    .member-portal-welcome-card p {
        margin: 0;
        color: rgba(255, 255, 255, .78);
        font-size: 15px;
    }

.member-portal-member-status {
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
}

    .member-portal-member-status span,
    .member-portal-member-status small {
        display: block;
    }

    .member-portal-member-status span {
        font-weight: 800;
    }

    .member-portal-member-status small {
        margin-top: 3px;
        color: rgba(255, 255, 255, .62);
        font-size: 12px;
    }

.member-portal-metric-grid,
.member-portal-summary-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.member-portal-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-financial-summary {
    border-top: 1px solid var(--line);
}

.member-financial-summary-identity {
    padding: 16px 20px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .member-financial-summary-identity > div {
        min-width: 0;
    }

    .member-financial-summary-identity h2,
    .member-financial-summary-identity h3 {
        margin: 0;
        color: var(--ink);
        font-size: 17px;
        font-weight: 750;
    }

    .member-financial-summary-identity p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.4;
    }

    .member-financial-summary-identity .member-portal-status {
        flex: 0 0 auto;
    }

.member-financial-identity-value {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.member-financial-detail-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 20px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8faf9;
    overflow: hidden;
}

.member-financial-detail {
    min-width: 0;
    padding: 13px 16px;
}

    .member-financial-detail + .member-financial-detail {
        border-left: 1px solid var(--line);
    }

    .member-financial-detail small,
    .member-financial-detail strong,
    .member-financial-detail span {
        display: block;
    }

    .member-financial-detail small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-financial-detail strong {
        margin-top: 4px;
        color: var(--ink);
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    .member-financial-detail span {
        margin-top: 3px;
        color: #89948f;
        font-size: 13px;
        line-height: 1.35;
    }

.member-capital-financial-summary + .table-responsive {
    border-top: 1px solid var(--line);
}

.member-portal-metric,
.member-portal-summary-card,
.member-portal-panel,
.member-portal-state-card,
.member-notice-card {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 20px rgba(32, 57, 48, .04);
}

.member-portal-metric {
    position: relative;
    padding: 18px 19px;
    border-radius: 15px;
    text-align: left;
    color: var(--ink);
}

    .member-portal-metric:hover {
        border-color: #c8d9d2;
        box-shadow: 0 10px 24px rgba(32, 57, 48, .08);
    }

    .member-portal-metric small,
    .member-portal-metric strong,
    .member-portal-metric em {
        display: block;
    }

    .member-portal-metric small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-portal-metric strong {
        margin-top: 7px;
        padding-right: 36px;
        font-size: 24px;
        font-style: normal;
        font-weight: 800;
        letter-spacing: -.03em;
    }

    .member-portal-metric em {
        margin-top: 5px;
        color: #7f8b86;
        font-size: 12px;
        font-style: normal;
    }

.member-portal-metric-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
}

.member-portal-panel {
    border-radius: 16px;
    overflow: hidden;
}

.member-portal-panel-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .member-portal-panel-head h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 750;
    }

.member-portal-count {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.member-standing-list {
    padding: 0 20px 20px;
}

    .member-standing-list > div {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

        .member-standing-list > div:last-child {
            border-bottom: 0;
        }

    .member-standing-list span {
        color: var(--muted);
    }

    .member-standing-list strong {
        text-align: right;
    }

.member-portal-page-head {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

    .member-portal-page-head h1 {
        margin: 0 0 5px;
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -.025em;
    }

    .member-portal-page-head p {
        max-width: 760px;
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-portal-summary-card {
    padding: 18px 20px;
    border-radius: 15px;
}

    .member-portal-summary-card small,
    .member-portal-summary-card strong,
    .member-portal-summary-card span {
        display: block;
    }

    .member-portal-summary-card small {
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

    .member-portal-summary-card strong {
        margin-top: 6px;
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -.03em;
    }

    .member-portal-summary-card span {
        margin-top: 4px;
        color: #89948f;
        font-size: 12px;
    }

    .member-portal-summary-card.primary {
        background: linear-gradient(135deg, var(--brand-deep), var(--brand));
        color: #fff;
        border-color: transparent;
    }

        .member-portal-summary-card.primary small,
        .member-portal-summary-card.primary span {
            color: rgba(255, 255, 255, .67);
        }

.member-portal-table-toolbar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.member-portal-search {
    max-width: 540px;
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #89948f;
}

    .member-portal-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 14px;
    }

.member-portal-table {
    font-size: 14px;
}

    .member-portal-table thead th {
        padding: 11px 16px;
        border-bottom: 1px solid var(--line);
        background: #f8faf9;
        color: #78837e;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .member-portal-table tbody td {
        padding: 13px 16px;
        border-color: var(--line);
        vertical-align: middle;
    }

    .member-portal-table tbody tr:last-child td {
        border-bottom: 0;
    }

.member-portal-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--status-neutral-bg);
    color: var(--status-neutral-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .member-portal-status.success {
        background: var(--status-success-bg);
        color: var(--status-success-text);
    }

    .member-portal-status.warning {
        background: var(--status-warning-bg);
        color: var(--status-warning-text);
    }

    .member-portal-status.danger {
        background: var(--status-danger-bg);
        color: var(--status-danger-text);
    }

    .member-portal-status.muted {
        background: var(--status-neutral-bg);
        color: var(--status-neutral-text);
    }

.member-portal-state-card {
    min-height: 240px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 16px;
    text-align: center;
}

    .member-portal-state-card span {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-portal-inline-empty {
    padding: 24px 20px;
    color: var(--muted);
    font-size: 14px;
}

.member-portal-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-portal-confirm-box {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #f0d7d7;
    border-radius: 12px;
    background: #fff8f8;
}

    .member-portal-confirm-box > i {
        color: #a54040;
        font-size: 22px;
    }

    .member-portal-confirm-box p {
        margin-top: 4px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-process-list,
.member-assistance-types {
    padding: 0 20px 20px;
}

    .member-process-list > div,
    .member-assistance-types > div {
        padding: 13px 0;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 1px solid var(--line);
    }

        .member-process-list > div:last-child,
        .member-assistance-types > div:last-child {
            border-bottom: 0;
        }

        .member-process-list > div > span {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: var(--brand-soft);
            color: var(--brand);
            font-size: 12px;
            font-weight: 800;
        }

    .member-process-list strong,
    .member-process-list small,
    .member-assistance-types strong,
    .member-assistance-types small {
        display: block;
    }

    .member-process-list strong,
    .member-assistance-types strong {
        font-size: 14px;
    }

    .member-process-list small,
    .member-assistance-types small {
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }

    .member-assistance-types i {
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: var(--brand-soft);
        color: var(--brand);
    }

.member-notice-list {
    display: grid;
    gap: 12px;
}

.member-notice-card {
    padding: 17px 19px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 14px;
}

.member-notice-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf3f0;
    color: var(--brand);
}

.member-notice-card.warning .member-notice-icon {
    background: #fff4dc;
    color: #9c6c12;
}

.member-notice-card.danger .member-notice-icon {
    background: #fbeaea;
    color: #a54040;
}

.member-notice-card.success .member-notice-icon {
    background: #e7f4ed;
    color: #247653;
}

.member-notice-content {
    min-width: 0;
    flex: 1;
}

.member-notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #89948f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.member-notice-content h2 {
    margin: 5px 0 3px;
    font-size: 16px;
    font-weight: 750;
}

.member-notice-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-login-view {
    min-height: 100vh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 12% 10%, var(--brand-accent-soft, rgba(199, 165, 74, .18)), transparent 22%), linear-gradient(145deg, var(--brand-soft), #fff 50%, color-mix(in srgb, var(--brand) 7%, white));
}

.member-login-card {
    width: min(100%, 560px);
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(24, 58, 47, .12);
}

.member-login-brand {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
}

    .member-login-brand img {
        width: 50px;
        height: 50px;
        border-radius: 13px;
        object-fit: cover;
    }

    .member-login-brand span {
        color: #8a7a4f;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .11em;
    }

    .member-login-brand h1 {
        margin: 2px 0 0;
        font-size: 21px;
        font-weight: 800;
    }

.member-login-heading {
    margin-bottom: 20px;
}

    .member-login-heading h2 {
        margin: 0 0 5px;
        font-size: 20px;
        font-weight: 800;
    }

    .member-login-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
    }

.member-login-password-note {
    color: var(--muted);
    font-size: 12px;
}

.member-login-switch,
.member-login-staff-link {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.member-login-staff-link {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

    .member-login-switch a,
    .member-login-staff-link a {
        color: var(--brand);
        font-weight: 700;
    }

@media (max-width: 991.98px) {
    .member-portal-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-financial-detail-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-financial-detail + .member-financial-detail {
        border-left: 0;
    }

    .member-financial-detail:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .member-financial-detail:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 767.98px) {
    body.member-mobile-sheet-open {
        overflow: hidden;
    }

    .member-portal-header-inner,
    .member-portal-nav-inner,
    .member-portal-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .member-portal-nav-link {
        min-height: 48px;
        padding: 0 10px;
        font-size: 14px;
    }

    .member-portal-welcome-card,
    .member-portal-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-portal-member-status {
        min-width: 0;
        width: 100%;
    }

    .member-portal-summary-grid {
        grid-template-columns: 1fr;
    }

    .member-financial-summary-identity {
        padding: 15px 16px 13px;
    }

    .member-financial-detail-band {
        grid-template-columns: 1fr;
        margin: 0 16px 14px;
    }

    .member-financial-detail:nth-child(even) {
        border-left: 0;
    }

    .member-financial-detail:nth-child(n + 2) {
        border-top: 1px solid var(--line);
    }

    .member-login-card {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .member-portal-metric-grid {
        grid-template-columns: 1fr;
    }

    .member-portal-brand strong {
        font-size: 15px;
    }

    .member-portal-brand small {
        font-size: 12px;
    }
}


/* Member Portal readability baseline — older-member/staff friendly. */
.member-portal-signout {
    min-height: 40px;
    font-size: 14px;
}

.member-portal-panel-head p,
.member-portal-panel p,
.member-portal-panel small,
.member-portal-state-card small {
    font-size: 13px;
    line-height: 1.45;
}

/* Member home action inbox and request updates. */
.member-home-inbox-panel {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(32, 57, 48, .04);
}

.member-home-inbox-panel-attention {
    border-color: #ead8d3;
    box-shadow: 0 8px 24px rgba(118, 58, 42, .06);
}

.member-home-inbox-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.member-home-inbox-head h2,
.member-home-updates-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.member-home-inbox-head p,
.member-home-updates-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-home-inbox-count {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8e9e5;
    color: #9b3d2c;
    font-size: 13px;
    font-weight: 800;
}

.member-home-inbox-list {
    border-top: 1px solid var(--line);
}

.member-home-inbox-item {
    width: 100%;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
    color: var(--ink);
}

.member-home-inbox-item:last-child {
    border-bottom: 0;
}

.member-home-inbox-item:hover {
    background: #fbfcfb;
}

.member-home-inbox-item.danger {
    background: #fffafa;
}

.member-home-inbox-item.warning {
    background: #fffdf7;
}

.member-home-inbox-icon,
.member-home-update-icon,
.member-home-all-clear-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.member-home-inbox-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 18px;
}

.member-home-inbox-item.danger .member-home-inbox-icon,
.member-home-update-icon.danger,
.member-home-status-chip.danger {
    background: var(--status-danger-bg);
    color: var(--status-danger-text);
}

.member-home-inbox-item.warning .member-home-inbox-icon,
.member-home-update-icon.warning,
.member-home-status-chip.warning {
    background: var(--status-warning-bg);
    color: var(--status-warning-text);
}

.member-home-update-icon.success,
.member-home-status-chip.success {
    background: var(--status-success-bg);
    color: var(--status-success-text);
}

.member-home-update-icon.info,
.member-home-status-chip.info {
    background: var(--status-info-bg);
    color: var(--status-info-text);
}

.member-home-inbox-copy,
.member-home-inbox-copy strong,
.member-home-inbox-copy small,
.member-home-update-copy,
.member-home-update-copy strong,
.member-home-update-copy small {
    display: block;
}

.member-home-inbox-copy strong,
.member-home-update-copy strong {
    font-size: 14px;
    font-weight: 800;
}

.member-home-inbox-copy small,
.member-home-update-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.member-home-inbox-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.member-home-all-clear {
    margin-top: 20px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #cfe3d9;
    border-radius: 15px;
    background: #f7fbf8;
}

.member-home-all-clear-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2f1e9;
    color: #216a4e;
    font-size: 20px;
}

.member-home-all-clear strong,
.member-home-all-clear span {
    display: block;
}

.member-home-all-clear strong {
    font-size: 14px;
    font-weight: 800;
}

.member-home-all-clear span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.member-home-metric-grid .member-portal-metric-alert {
    border-color: #e8c9c2;
    background: linear-gradient(180deg, #fff, #fffafa);
}

.member-home-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-home-metric-grid > .member-portal-metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.member-home-metric-grid .member-portal-metric {
    min-height: 142px;
}

.member-home-orders {
    margin-top: 1rem;
    border: 1px solid #d8e4df;
    border-radius: .9rem;
    background: #fff;
    overflow: hidden;
}

.member-home-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid #e4ece8;
}

.member-home-orders-head h2 {
    margin: 0;
    color: #102b25;
    font-size: 1rem;
    font-weight: 800;
}

.member-home-orders-head > button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #155b48;
    font-size: .88rem;
    font-weight: 800;
}

.member-home-order-list {
    display: flex;
    flex-direction: column;
}

.member-home-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto) minmax(6.5rem, auto) 1rem;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: .8rem 1rem;
    border: 0;
    border-bottom: 1px solid #edf1ef;
    background: #fff;
    color: #17352d;
    text-align: left;
}

.member-home-order-row:last-child { border-bottom: 0; }
.member-home-order-row:hover { background: #f8fbf9; }
.member-home-order-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.member-home-order-row > span { justify-self: end; font-size: .92rem; font-weight: 800; text-align: right; white-space: nowrap; }
.member-home-order-row em { justify-self: center; padding: .28rem .55rem; border-radius: 999px; background: #fff0c9; color: #765707; font-size: .82rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.member-home-order-row em.success { background: #e1f3e8; color: #21623f; }
.member-home-order-row em.info { background: #e1f2f5; color: #176772; }
.member-home-order-row em.danger { background: #fae7e3; color: #9a3b2d; }
.member-home-order-row > i { color: #7d8d87; }

@media (max-width: 575.98px) {
    .member-home-order-row { grid-template-columns: minmax(0, 1fr) auto auto .75rem; gap: .45rem; padding: .75rem; }
    .member-home-order-row strong,
    .member-home-order-row > span { font-size: .84rem; }
    .member-home-order-row em { font-size: .78rem; }
}

.member-home-metric-grid .member-portal-metric-alert .member-portal-metric-icon {
    background: #f9e8e5;
    color: #a33d2d;
}

.member-home-metric-grid .member-portal-metric-pending {
    border-color: #ead9ad;
    background: linear-gradient(180deg, #fff, #fffdf7);
}

.member-home-metric-grid .member-portal-metric-pending .member-portal-metric-icon {
    background: #fff2d7;
    color: #95640a;
}

.member-home-metric-grid .member-portal-metric-good {
    border-color: #cfe3d9;
    background: linear-gradient(180deg, #fff, #f8fcfa);
}

.member-home-updates-head {
    align-items: flex-start;
}

.member-home-update-list {
    border-top: 1px solid var(--line);
}

.member-home-update-item {
    width: 100%;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
    color: var(--ink);
}

.member-home-update-item:last-child {
    border-bottom: 0;
}

.member-home-update-item:hover {
    background: #fbfcfb;
}

.member-home-update-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
}

.member-home-update-meta {
    min-width: 105px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #8a9691;
    font-size: 12px;
}

.member-home-status-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.member-home-updates-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.member-home-updates-empty i {
    color: #9badA5;
    font-size: 28px;
}

@media (max-width: 991.98px) {
    .member-home-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {
    .member-home-metric-grid {
        grid-template-columns: 1fr;
    }

    .member-home-metric-grid > .member-portal-metric:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .member-home-inbox-head {
        gap: 12px;
    }

    .member-home-inbox-item,
    .member-home-update-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .member-home-inbox-action,
    .member-home-update-meta {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }

}

/* Secure member portal activation */
.member-login-assist-divider {
    position: relative;
    margin: 18px 0 12px;
    text-align: center;
    color: #97a09c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-login-assist-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.member-login-assist-divider span {
    position: relative;
    padding: 0 10px;
    background: #fff;
}

.member-login-staff-code-link,
.member-login-back,
.member-activation-secondary-actions button {
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 750;
}

.member-login-staff-code-link {
    width: 100%;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 13px;
}

.member-login-staff-code-link:hover,
.member-login-back:hover,
.member-activation-secondary-actions button:hover {
    background: rgba(30, 106, 79, .07);
}

.member-activation-methods {
    display: grid;
    gap: 10px;
}

.member-activation-method {
    width: 100%;
    min-height: 74px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #dce7e2;
    border-radius: 14px;
    background: #fbfdfc;
    color: #18382e;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.member-activation-method:hover:not(:disabled) {
    border-color: rgba(30, 106, 79, .42);
    box-shadow: 0 9px 22px rgba(24, 58, 47, .08);
    transform: translateY(-1px);
}

.member-activation-method > span:nth-child(2) {
    min-width: 0;
}

.member-activation-method strong,
.member-activation-method small {
    display: block;
}

.member-activation-method strong {
    font-size: 14px;
    font-weight: 800;
}

.member-activation-method small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.member-activation-method-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf4ef;
    color: var(--brand);
    font-size: 19px;
}

.member-login-back {
    margin-top: 14px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 13px;
}

.member-activation-code-context,
.member-activation-verified {
    margin-bottom: 16px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #dce7e2;
    border-radius: 13px;
    background: #f7fbf9;
}

.member-activation-code-context strong,
.member-activation-code-context small,
.member-activation-verified strong,
.member-activation-verified small {
    display: block;
}

.member-activation-code-context strong,
.member-activation-verified strong {
    color: #173d31;
    font-size: 13px;
    font-weight: 800;
}

.member-activation-code-context small,
.member-activation-verified small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.member-activation-code-input {
    min-height: 48px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
}

.member-activation-verified {
    border-color: #cfe7db;
    background: #f0f8f4;
}

.member-activation-verified > i {
    color: #21815d;
    font-size: 23px;
}

.member-activation-secondary-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.member-activation-secondary-actions button {
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 12px;
}

.member-activation-secondary-actions button:disabled {
    opacity: .5;
}

/* Member remote payments */
.member-payments-head {
    align-items: center;
}

.member-payment-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--status-warning-border);
    border-radius: 999px;
    background: var(--status-warning-bg);
    color: var(--status-warning-text);
    font-size: 13px;
    font-weight: 750;
}

.member-payment-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 18px;
    align-items: start;
}

.member-payment-proof-panel {
    grid-column: 1 / -1;
}

.member-payment-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.member-payment-section-head h2 {
    margin: 2px 0 3px;
    font-size: 18px;
}

.member-payment-section-head p {
    margin: 0;
    color: #718078;
    font-size: 13px;
}

.member-payment-total {
    flex: 0 0 auto;
    text-align: right;
}

.member-payment-total small,
.member-payment-total strong {
    display: block;
}

.member-payment-total small {
    color: #7a8781;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.member-payment-total strong {
    color: var(--brand);
    font-size: 22px;
}

.member-payment-option-list,
.member-payment-history-list {
    display: grid;
    gap: 8px;
}

.member-payment-option {
    display: grid;
    grid-template-columns: 28px minmax(160px, 1fr) minmax(120px, .55fr) minmax(132px, .55fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #dfe8e3;
    border-radius: 12px;
    background: #fff;
}

.member-payment-option.selected {
    border-color: #9dc9b8;
    background: #fbfefc;
    box-shadow: 0 0 0 2px rgba(21, 93, 70, .05);
}

.member-payment-option-check {
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.member-payment-option-check input {
    position: absolute;
    opacity: 0;
}

.member-payment-option-check span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1.5px solid #a8bbb2;
    border-radius: 6px;
    background: #fff;
}

.member-payment-option-check input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
}

.member-payment-option-check input:checked + span::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.member-payment-option-main strong,
.member-payment-option-main span,
.member-payment-option-main small,
.member-payment-option-balance small,
.member-payment-option-balance strong,
.member-payment-option-amount small {
    display: block;
}

.member-payment-option-main strong {
    color: #213029;
    font-size: 14px;
}

.member-payment-option-main span,
.member-payment-option-balance small,
.member-payment-option-amount small {
    color: #75827c;
    font-size: 11px;
}

.member-payment-option-main small {
    margin-top: 3px;
    color: #9a7118;
    font-size: 10px;
    font-weight: 700;
}

.member-payment-option-main .member-payment-option-agreement {
    color: var(--brand);
    font-weight: 700;
}

.member-payment-option-main .member-payment-option-agreement-meta {
    margin-top: 2px;
    color: #75827c;
    font-size: 10px;
}

.member-payment-option-balance strong {
    margin-top: 2px;
    color: #26362f;
    font-size: 13px;
}

.member-payment-option-amount .input-group-text,
.member-payment-option-amount .form-control {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
}

.member-payment-empty {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #cad9d1;
    border-radius: 12px;
    background: #f8fbf9;
    color: #65756d;
}

.member-payment-empty > i {
    color: var(--brand);
    font-size: 24px;
}

.member-payment-empty strong,
.member-payment-empty span {
    display: block;
}

.member-payment-empty span {
    margin-top: 2px;
    font-size: 12px;
}

.member-payment-empty.warning > i {
    color: #9a7118;
}

.member-payment-destination-card {
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 14px;
    background: #f9fcfa;
}

.member-payment-qr {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid #d9e3de;
    border-radius: 10px;
    background: #fff;
}

.member-payment-qr img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.member-payment-destination-copy > span {
    color: #9a7118;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.member-payment-destination-copy h3 {
    margin: 2px 0 9px;
    font-size: 17px;
}

.member-payment-destination-copy div + div {
    margin-top: 7px;
}

.member-payment-destination-copy small,
.member-payment-destination-copy strong {
    display: block;
}

.member-payment-destination-copy small {
    color: #79867f;
    font-size: 10px;
}

.member-payment-destination-copy strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.member-payment-instructions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f7f4;
    color: #56675f;
    font-size: 12px;
    white-space: pre-line;
}

.member-payment-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.member-payment-file-picker {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #d6e1dc;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.member-payment-file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.member-payment-file-picker > i {
    color: var(--brand);
    font-size: 17px;
}

.member-payment-file-picker strong,
.member-payment-file-picker small {
    display: block;
}

.member-payment-file-picker strong {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.member-payment-file-picker small {
    color: #7b8881;
    font-size: 10px;
}

.member-payment-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5ece8;
}

.member-payment-submit-bar > div span,
.member-payment-submit-bar > div strong {
    display: block;
}

.member-payment-submit-bar > div span {
    color: #718078;
    font-size: 11px;
}

.member-payment-submit-bar > div strong {
    color: var(--brand);
    font-size: 20px;
}

.member-payment-history-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e1e9e5;
    border-radius: 11px;
    background: #fff;
}

.member-payment-history-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf6f1;
    color: var(--brand);
}

.member-payment-history-icon.pending {
    background: #fff5df;
    color: #987017;
}

.member-payment-history-icon.rejected {
    background: #fff0f0;
    color: #b23c3c;
}

.member-payment-history-main strong,
.member-payment-history-main span,
.member-payment-history-main small,
.member-payment-history-end strong {
    display: block;
}

.member-payment-history-main span {
    color: #4e6057;
    font-size: 12px;
}

.member-payment-history-main small {
    color: #7b8881;
    font-size: 10px;
}

.member-payment-history-end {
    text-align: right;
}

.member-payment-history-end strong {
    margin-bottom: 4px;
}

@media (max-width: 991.98px) {
    .member-payment-workspace,
    .member-payment-proof-grid {
        grid-template-columns: 1fr;
    }

    .member-payment-proof-panel {
        grid-column: auto;
    }

    .member-payment-option {
        grid-template-columns: 28px minmax(0, 1fr) minmax(120px, .5fr);
    }

    .member-payment-option-amount {
        grid-column: 2 / -1;
    }
}

@media (max-width: 575.98px) {
    .member-payment-option {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .member-payment-option-balance,
    .member-payment-option-amount {
        grid-column: 2;
    }

    .member-payment-destination-card {
        grid-template-columns: 1fr;
    }

    .member-payment-qr {
        width: 100%;
        height: 190px;
    }

    .member-payment-submit-bar,
    .member-payment-history-row {
        align-items: stretch;
    }

    .member-payment-submit-bar {
        flex-direction: column;
    }

    .member-payment-submit-bar .btn {
        width: 100%;
    }

    .member-payment-history-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .member-payment-history-end {
        grid-column: 2;
        text-align: left;
    }
}

/* Remote payment UX corrections */
.member-payment-option {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.member-payment-option:hover {
    border-color: #bfd5ca;
}

.member-payment-option:focus-visible {
    outline: 3px solid rgba(21, 93, 70, .15);
    outline-offset: 2px;
}

.member-payment-proof-panel.locked {
    position: relative;
    background: #fafcfb;
}

.member-payment-proof-panel.locked .member-payment-proof-grid,
.member-payment-proof-panel.locked .member-payment-submit-bar {
    opacity: .52;
}

.member-payment-proof-panel.locked .member-payment-file-picker {
    cursor: not-allowed;
}

.member-contribution-outstanding .member-payment-section-head {
    margin-bottom: 14px;
}

.member-contribution-obligation-list {
    display: grid;
    gap: 8px;
}

.member-contribution-obligation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid #dde7e2;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.member-contribution-obligation:hover {
    border-color: #b9cec4;
    background: #f9fcfa;
    color: inherit;
}

.member-contribution-obligation-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf6f1;
    color: var(--brand);
}

.member-contribution-obligation.overdue {
    border-color: #eadbd3;
    background: #fffaf8;
}

.member-contribution-obligation.overdue:hover {
    border-color: #d7b7aa;
    background: #fff7f3;
}

.member-contribution-obligation.overdue .member-contribution-obligation-icon {
    background: #fae8e1;
    color: #a94c34;
}

.member-contribution-obligation.upcoming .member-contribution-obligation-amount small {
    color: #718078;
}

.member-contribution-obligation-copy strong,
.member-contribution-obligation-copy small,
.member-contribution-obligation-amount small,
.member-contribution-obligation-amount strong {
    display: block;
}

.member-contribution-obligation-copy strong,
.member-contribution-obligation-amount strong {
    color: #213029;
}

.member-contribution-obligation-copy small,
.member-contribution-obligation-amount small {
    margin-top: 2px;
    color: #77837d;
    font-size: 11px;
}

.member-contribution-obligation-amount {
    text-align: right;
}

@media (max-width: 575.98px) {
    .member-contribution-obligation {
        grid-template-columns: 36px minmax(0, 1fr) 16px;
    }

    .member-contribution-obligation-amount {
        grid-column: 2;
        text-align: left;
    }
}

/* Member payments compact transaction workspace */
.member-contribution-outstanding,
.member-payment-pending-panel,
.member-payment-history-panel,
.member-payment-obligations-panel,
.member-payment-transfer-panel,
.member-payment-proof-panel {
    padding: 16px 18px;
}

.member-payment-workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, .85fr);
    gap: 14px;
    align-items: stretch;
}

.member-payment-obligations-panel,
.member-payment-transfer-panel {
    height: 100%;
}

.member-payment-section-head {
    gap: 12px;
    margin-bottom: 12px;
}

.member-payment-section-head h2 {
    margin: 1px 0 2px;
    font-size: 17px;
}

.member-payment-section-head p {
    line-height: 1.35;
    font-size: 12px;
}

.member-payment-section-head .member-portal-kicker {
    margin-bottom: 2px;
    font-size: 10px;
}

.member-payment-selected-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf6f1;
    color: var(--brand);
    font-size: 11px;
    font-weight: 750;
}

.member-payment-option-list {
    gap: 7px;
}

.member-payment-option {
    min-height: 64px;
    grid-template-columns: 28px minmax(170px, 1fr) minmax(112px, .45fr) minmax(150px, .55fr);
    gap: 9px;
    padding: 9px 11px;
    border-radius: 11px;
}

.member-payment-option-main strong {
    font-size: 13px;
}

.member-payment-option-main span,
.member-payment-option-balance small,
.member-payment-option-amount small {
    font-size: 10px;
}

.member-payment-option-balance strong {
    font-size: 12px;
}

.member-payment-option-amount .input-group-text,
.member-payment-option-amount .form-control {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
}

.member-payment-transfer-panel .form-label {
    margin-bottom: 5px;
    font-size: 12px;
}

.member-payment-destination-card {
    margin-top: 9px;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 11px;
}

.member-payment-qr {
    width: 92px;
    height: 92px;
}

.member-payment-destination-copy h3 {
    margin: 1px 0 6px;
    font-size: 15px;
}

.member-payment-destination-copy div + div {
    margin-top: 4px;
}

.member-payment-destination-copy small {
    font-size: 9px;
}

.member-payment-destination-copy strong {
    font-size: 12px;
}

.member-payment-instructions {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 11px;
}

.member-payment-transfer-total {
    margin-top: 9px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #cfe1d8;
    border-radius: 11px;
    background: #f4faf7;
}

.member-payment-transfer-total span,
.member-payment-transfer-total small {
    display: block;
}

.member-payment-transfer-total span {
    color: #52665c;
    font-size: 11px;
    font-weight: 750;
}

.member-payment-transfer-total small {
    margin-top: 1px;
    color: #78867f;
    font-size: 9px;
}

.member-payment-transfer-total strong {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.member-payment-proof-panel {
    padding-top: 14px;
    padding-bottom: 14px;
}

.member-payment-proof-panel .member-payment-section-head {
    margin-bottom: 10px;
}

.member-payment-proof-grid {
    gap: 10px;
}

.member-payment-proof-grid .form-label {
    margin-bottom: 5px;
    font-size: 12px;
}

.member-payment-proof-grid .form-control,
.member-payment-file-picker {
    min-height: 42px;
}

.member-payment-file-picker {
    padding: 5px 9px;
}

.member-payment-submit-bar {
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
}

.member-payment-submit-bar > div strong {
    font-size: 18px;
}

.member-payment-submit-bar .btn {
    min-height: 38px;
    padding: 7px 14px;
}

@media (max-width: 1199.98px) {
    .member-payment-workspace {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    }

    .member-payment-option {
        grid-template-columns: 28px minmax(150px, 1fr) minmax(105px, .45fr) minmax(135px, .55fr);
    }
}

@media (max-width: 991.98px) {
    .member-payment-pending-panel,
    .member-payment-history-panel,
    .member-payment-obligations-panel,
    .member-payment-transfer-panel,
    .member-payment-proof-panel {
        padding: 15px;
    }
}

/* Member payments focused payment composer */
.member-payment-outstanding-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    margin: 0 auto 12px;
    overflow: hidden;
    border: 1px solid #dfe7e3;
    border-radius: 12px;
    background: #fff;
}

.member-payment-outstanding-summary > div { padding: 11px 15px; }
.member-payment-outstanding-summary > div + div { border-left: 1px solid #e7ece9; }
.member-payment-outstanding-summary span,
.member-payment-outstanding-summary strong { display: block; }
.member-payment-outstanding-summary span {
    color: #74827b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.member-payment-outstanding-summary strong {
    margin-top: 2px;
    color: #213129;
    font-size: 18px;
}

.member-payment-composer {
    padding: 22px 24px;
}

.member-payment-workspace-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
    gap: 14px;
    align-items: stretch;
}

.member-payment-workspace-enhanced .member-payment-history-panel {
    display: flex;
    flex-direction: column;
    height: 0;
    min-height: 100%;
    padding: 18px;
}

.member-payment-workspace-enhanced .member-payment-history-panel > .member-payment-section-head {
    flex: 0 0 auto;
}

.member-payment-workspace-enhanced .member-payment-history-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.member-payment-category-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.member-payment-category-control .btn {
    min-height: 46px;
    white-space: nowrap;
}

.member-payment-composer .member-payment-section-head p {
    font-size: 13px;
    line-height: 1.5;
}

.member-payment-composer .member-portal-kicker {
    font-size: 11px;
}

.member-payment-composer .alert {
    font-size: 13px;
    line-height: 1.5;
}

.member-payment-composer .app-form-select.compact .cashiering-select-trigger {
    min-height: 46px;
}

.member-payment-composer .app-form-select.compact .cashiering-select-trigger-copy strong,
.member-payment-composer .app-form-select .cashiering-select-option-copy strong {
    font-size: 14px;
}

.member-payment-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
    gap: 16px;
    align-items: start;
}

.member-payment-field .form-label {
    margin-bottom: 7px;
    color: #27372f;
    font-size: 14px;
    font-weight: 750;
}

.member-payment-field > small {
    display: block;
    margin-top: 7px;
    color: #708078;
    font-size: 13px;
    line-height: 1.45;
}

.member-payment-field .input-group-text,
.member-payment-field .form-control {
    min-height: 46px;
    font-size: 14px;
}

.member-payment-rule-note {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #d7e7df;
    border-radius: 10px;
    background: #f4faf7;
    color: #52665c;
    font-size: 13px;
    line-height: 1.5;
}

.member-payment-rule-note i {
    color: var(--brand);
}

.member-payment-allocation {
    margin-top: 12px;
    border: 1px solid #e0e7e3;
    border-radius: 10px;
    background: #fff;
}

.member-payment-allocation summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    color: #43534b;
    font-size: 14px;
    font-weight: 750;
    list-style: none;
}

.member-payment-allocation summary::-webkit-details-marker {
    display: none;
}

.member-payment-allocation summary strong {
    color: var(--brand);
}

.member-payment-allocation-list {
    padding: 0 12px 9px;
}

.member-payment-allocation-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid #edf1ef;
    color: #64736c;
    font-size: 13px;
}

.member-payment-allocation-list strong {
    color: #26352e;
}

.member-payment-method-heading {
    margin-top: 20px;
    margin-bottom: 9px;
}

.member-payment-method-heading h3 {
    margin: 2px 0 0;
    color: #17241e;
    font-size: 16px;
}

.member-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.member-payment-method {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid #d7dfdb;
    border-radius: 11px;
    background: #fff;
    color: #26352e;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.member-payment-method:hover {
    border-color: #8eb2a1;
    background: #fbfdfc;
}

.member-payment-method:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent);
    outline-offset: 2px;
}

.member-payment-method.selected {
    border-color: var(--brand);
    background: #f0f8f4;
    box-shadow: inset 0 0 0 1px var(--brand);
}

.member-payment-method > i:first-child {
    color: var(--brand);
    font-size: 22px;
    text-align: center;
}

.member-payment-method span,
.member-payment-method strong,
.member-payment-method small {
    display: block;
}

.member-payment-method strong {
    font-size: 15px;
}

.member-payment-method small {
    margin-top: 3px;
    color: #75837c;
    font-size: 13px;
    line-height: 1.35;
}

.member-payment-method-check {
    color: var(--brand);
    opacity: 0;
}

.member-payment-method.selected .member-payment-method-check {
    opacity: 1;
}

.member-payment-manual-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4eae7;
}

.member-payment-manual-fields > .member-payment-field {
    margin-bottom: 14px;
}

.member-payment-manual-fields .member-payment-instructions {
    font-size: 13px;
    line-height: 1.5;
}

.member-payment-manual-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-payment-manual-fields .member-payment-proof-grid {
    align-items: start;
    margin-top: 14px;
}

.member-payment-manual-field .form-label {
    min-height: 21px;
    margin-bottom: 7px;
    color: #27372f;
    font-size: 14px;
    font-weight: 750;
}

.member-payment-manual-control {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid #cfdad5;
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
}

.member-payment-manual-field input.member-payment-manual-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.member-payment-manual-field .member-payment-file-picker {
    padding: 8px 12px;
}

.member-payment-manual-field .member-payment-file-picker:hover {
    border-color: #9bafa5;
}

.member-payment-manual-field .member-payment-file-picker:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.member-payment-manual-field .member-payment-file-picker strong {
    font-size: 14px;
}

.member-payment-manual-field .member-payment-file-picker small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
}

.member-payment-destination-card.compact {
    grid-template-columns: auto minmax(0, 1fr);
}

.member-payment-destination-card.compact .member-payment-qr {
    width: 76px;
    height: 76px;
}

.member-payment-manual-fields .member-payment-destination-copy > span {
    font-size: 12px;
    line-height: 1.35;
}

.member-payment-manual-fields .member-payment-destination-copy h3 {
    margin: 3px 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.member-payment-manual-fields .member-payment-destination-copy small {
    font-size: 13px;
    line-height: 1.4;
}

.member-payment-manual-fields .member-payment-destination-copy strong {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.4;
}

.member-payment-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e1e8e4;
}

.member-payment-action-bar > div {
    margin-right: auto;
}

.member-payment-action-bar span,
.member-payment-action-bar strong {
    display: block;
}

.member-payment-action-bar span {
    color: #718078;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.member-payment-action-bar strong {
    margin-top: 1px;
    color: var(--brand);
    font-size: 21px;
}

.member-payment-action-bar .btn {
    min-width: 190px;
    min-height: 46px;
    font-size: 14px;
}

.member-payment-history-allocations { margin-top: 5px; }
.member-payment-history-allocations summary {
    width: fit-content;
    cursor: pointer;
    color: var(--brand);
    font-size: 10px;
    font-weight: 750;
}
.member-payment-history-allocations > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 420px;
    padding: 4px 0;
    border-bottom: 1px solid #edf1ef;
    color: #68776f;
    font-size: 10px;
}

.member-payment-workspace-enhanced .member-payment-history-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 11px 5px;
}

.member-payment-workspace-enhanced .member-payment-history-end {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
}

.member-obligation-dialog-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #dce7e1;
    border-radius: 11px;
    background: #f5faf7;
}

.member-obligation-dialog-summary span,
.member-obligation-dialog-summary strong { display: block; }
.member-obligation-dialog-summary span { color: #708078; font-size: 12px; }
.member-obligation-dialog-summary strong { color: #203128; font-size: 15px; }
.member-obligation-list {
    max-height: min(48vh, 430px);
    overflow-y: auto;
    border: 1px solid #dfe6e2;
    border-radius: 11px;
}
.member-obligation-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto minmax(105px, auto);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #e8edea;
    background: #fff;
    color: #28372f;
    text-align: left;
    cursor: pointer;
}
.member-obligation-row:last-child { border-bottom: 0; }
.member-obligation-row:hover { background: #f8fbf9; }
.member-obligation-row:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); outline-offset: -3px; }
.member-obligation-row.selected { background: #eff8f3; }
.member-obligation-check { color: var(--brand); font-size: 17px; }
.member-obligation-check .form-check-input { margin: 0; border-color: #8fa69b; }
.member-obligation-check .form-check-input:checked { border-color: var(--brand); background-color: var(--brand); }
.member-obligation-copy strong,
.member-obligation-copy small,
.member-obligation-amount small,
.member-obligation-amount strong,
.member-obligation-amount em { display: block; }
.member-obligation-copy strong { font-size: 13px; }
.member-obligation-copy small { margin-top: 3px; color: #74827b; font-size: 12px; }
.member-obligation-status { color: #6b7972; font-size: 12px; font-weight: 700; }
.member-obligation-amount { text-align: right; }
.member-obligation-amount small { color: #74827b; font-size: 11px; }
.member-obligation-amount strong { font-size: 14px; }
.member-obligation-amount em { color: var(--brand); font-size: 11px; font-style: normal; font-weight: 750; }
.member-obligation-running-total {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #edf6f1;
    color: #31473c;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 767.98px) {
    .member-payment-outstanding-summary { grid-template-columns: 1fr 1fr; }

    .member-payment-composer {
        padding: 17px 15px;
    }

    .member-payment-compose-grid,
    .member-payment-methods {
        grid-template-columns: 1fr;
    }

    .member-payment-category-control { grid-template-columns: 1fr; }

    .member-obligation-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
    .member-obligation-status { display: none; }
    .member-obligation-amount { grid-column: 2 / -1; display: flex; justify-content: space-between; text-align: left; }

    .member-payment-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .member-payment-action-bar .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .member-payment-workspace-enhanced { grid-template-columns: 1fr; }
    .member-payment-workspace-enhanced .member-payment-history-panel {
        height: auto;
        min-height: 0;
    }
    .member-payment-workspace-enhanced .member-payment-history-list {
        overflow: visible;
    }
}

/* Branding-aware member sign-in */
.member-login-view {
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 22%),
        linear-gradient(145deg, color-mix(in srgb, var(--brand) 9%, #fff), #f8faf9 50%, color-mix(in srgb, var(--brand) 7%, #fff));
}

.member-login-brand img {
    background: #fff;
    border: 1px solid var(--line);
}

.member-login-brand span {
    color: var(--gold);
}

.member-login-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.member-login-powered-by img {
    width: 92px;
    height: auto;
}

/* Modern, branding-led member sign-in and activation. */
.member-login-view {
    min-height: 100dvh;
    padding: max(clamp(22px, 4vh, 44px), env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(clamp(22px, 4vh, 44px), env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background:
        radial-gradient(ellipse 62% 48% at 50% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 72%),
        linear-gradient(145deg, #fbfaf5 0%, color-mix(in srgb, var(--brand) 4%, #f8faf6) 54%, #eef4ee 100%);
}

.member-login-view.mobile-login-view {
    background:
        radial-gradient(ellipse 62% 48% at 50% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 72%),
        linear-gradient(145deg, #fbfaf5 0%, color-mix(in srgb, var(--brand) 4%, #f8faf6) 54%, #eef4ee 100%);
}

.member-login-view.member-portal-login-view {
    background:
        radial-gradient(ellipse 62% 48% at 50% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 72%),
        linear-gradient(145deg, #fbfaf5 0%, color-mix(in srgb, var(--brand) 4%, #f8faf6) 54%, #eef4ee 100%);
}

.member-login-card {
    width: min(100%, 500px);
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid color-mix(in srgb, var(--brand) 11%, #e4e7e2);
    border-radius: 26px;
    background: rgba(255, 255, 253, .97);
    box-shadow:
        0 2px 5px rgba(23, 52, 42, .04),
        0 16px 38px rgba(23, 52, 42, .09),
        0 38px 82px rgba(23, 52, 42, .07);
}

.member-login-brand {
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.member-login-brand img {
    width: auto;
    max-width: min(206px, 66%);
    height: auto;
    max-height: 68px;
    margin-bottom: 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.member-login-brand strong {
    color: var(--brand-deep);
    font-size: clamp(15px, 2.3vw, 17px);
    font-weight: 780;
    line-height: 1.35;
    text-wrap: balance;
}

.member-login-brand span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.member-login-heading {
    margin-bottom: 26px;
    text-align: center;
}

.member-login-heading :is(h1, h2) {
    margin-bottom: 8px;
    color: var(--brand-deep);
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.member-login-heading p {
    max-width: 390px;
    margin-inline: auto;
    color: #66746e;
    font-size: 14.5px;
    line-height: 1.55;
}

.member-login-card .form-label {
    margin-bottom: 8px;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: .005em;
}

.member-login-card .form-control {
    min-height: 54px;
    padding: 13px 16px;
    border: 1px solid #d6ddd8;
    border-radius: 13px;
    background-color: #fafbf9;
    color: #19342b;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.member-login-card .form-control:focus {
    border-color: color-mix(in srgb, var(--brand) 76%, white);
    background-color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.member-login-card .form-control:disabled {
    border-color: #e1e5e2;
    background-color: #f0f2f0;
    color: #7a847f;
    cursor: not-allowed;
}

.member-login-card .form-control:is(.is-invalid, :user-invalid) {
    border-color: #b64242;
    background-color: #fffafa;
}

.member-login-card .form-control:is(.is-invalid, :user-invalid):focus {
    box-shadow: 0 0 0 4px rgba(182, 66, 66, .12);
}

.member-login-card .form-control::placeholder {
    color: #97a29d;
}

.member-login-input {
    position: relative;
}

.member-login-input > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: color-mix(in srgb, var(--brand) 72%, #708079);
    font-size: 17px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.member-login-input .form-control {
    padding-left: 48px;
}

.member-login-input-password .form-control {
    padding-right: 50px;
}

.member-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #68766f;
    font-size: 17px;
    transform: translateY(-50%);
}

.member-password-toggle:hover,
.member-password-toggle:focus-visible {
    background: color-mix(in srgb, var(--brand) 8%, white);
    color: var(--brand);
    outline: none;
}

.member-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13.5px;
}

.member-login-options a {
    color: var(--brand);
    font-weight: 750;
    text-decoration: none;
}

.member-login-options a:hover {
    text-decoration: underline;
}

.member-remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: default;
}

.member-remember-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    border-radius: 5px;
    accent-color: var(--brand);
    opacity: 1;
}

.member-login-card .btn-brand,
.member-login-primary {
    min-height: 54px;
    padding: 13px 22px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .005em;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 20%, transparent);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.member-login-card .btn-brand:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 27px color-mix(in srgb, var(--brand) 25%, transparent);
    filter: brightness(1.025);
}

.member-login-card .btn-brand:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 18%, transparent);
}

.member-login-card .btn-brand:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
    outline-offset: 3px;
}

.member-login-card .btn-brand:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .62;
}

.member-login-switch {
    margin-top: 24px;
    color: #65736d;
    font-size: 13.5px;
    line-height: 1.5;
}

.member-login-switch a {
    text-underline-offset: 3px;
}

.member-activation-method {
    border-radius: 16px;
    background: #fcfdfc;
}

.member-login-powered-by {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 28px;
    padding-top: 22px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-login-powered-by img {
    width: 138px;
    max-height: 38px;
    object-fit: contain;
}

.member-login-powered-by .member-login-fortunato-logo {
    width: auto;
    max-width: min(150px, 43%);
    max-height: 34px;
}

.member-login-powered-by .member-login-studio-logo {
    width: 124px;
    max-height: 32px;
}

@media (max-width: 575.98px) {
    .member-login-view {
        padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        place-items: center;
    }

    .member-login-card {
        width: 100%;
        padding: clamp(24px, 6vw, 32px) clamp(19px, 5vw, 26px);
        border-radius: 22px;
        box-shadow: 0 14px 38px rgba(23, 52, 42, .1);
    }

    .member-login-brand {
        margin-bottom: 26px;
    }

    .member-login-brand img {
        max-width: min(205px, 66vw);
    }

    .member-login-heading {
        margin-bottom: 22px;
    }

    .member-login-powered-by {
        margin-top: 22px;
        padding-top: 18px;
    }
}

/* Premium two-panel member and rider authentication shell. */
.member-login-card {
    width: min(100%, 960px);
    min-height: 590px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(440px, 1.12fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e1);
    border-radius: 28px;
    background: #fff;
    box-shadow:
        0 2px 5px rgba(19, 48, 38, .04),
        0 22px 55px rgba(19, 48, 38, .12),
        0 52px 100px rgba(19, 48, 38, .08);
}

.member-login-identity {
    position: relative;
    padding: clamp(42px, 5vw, 64px) clamp(34px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgba(255, 255, 255, .82);
    background: #F5F7F3;
}

.member-login-identity::after {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.member-login-identity .member-login-brand {
    margin: 0;
    align-items: flex-start;
    text-align: left;
}

.member-login-identity .member-login-brand img {
    max-width: min(230px, 88%);
    max-height: 92px;
    margin: 0 0 27px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 32px rgba(4, 25, 19, .18);
}

.member-login-identity .member-login-brand span {
    margin-bottom: 9px;
    color: color-mix(in srgb, var(--gold) 80%, white);
    font-size: 11px;
    letter-spacing: .16em;
}

.member-login-identity .member-login-brand strong {
    max-width: 330px;
    color: #fff;
    font-size: clamp(23px, 2.3vw, 31px);
    font-weight: 780;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.member-login-identity > p {
    max-width: 310px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14.5px;
    line-height: 1.65;
}

.member-login-auth {
    min-width: 0;
    padding: clamp(38px, 5vw, 58px) clamp(38px, 5.5vw, 64px) 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #fff 0%, #fff 72%, #fbfcfa 100%);
}

.member-login-auth .member-login-heading {
    margin-bottom: 25px;
    text-align: left;
}

.member-login-auth .member-login-heading p {
    max-width: 390px;
    margin-inline: 0;
}

.member-login-auth .member-login-switch {
    padding: 15px 16px;
    border: 1px solid #e4e9e5;
    border-radius: 12px;
    background: #fafbf9;
    text-align: center;
}

.member-login-auth .member-login-switch a {
    display: inline;
    white-space: normal;
}

.member-login-auth .member-login-powered-by {
    margin-top: 26px;
    padding-top: 18px;
    justify-content: flex-start;
    border-top-color: #e7ebe8;
}

.member-login-technology-partner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.member-login-technology-partner small {
    color: #84908a;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .member-login-view {
        align-items: start;
        overflow-y: auto;
    }

    .member-login-card {
        width: min(100%, 600px);
        min-height: 0;
        grid-template-columns: 1fr;
        overflow: visible;
        border-radius: 24px;
    }

    .member-login-identity {
        min-height: 0;
        padding: 27px clamp(24px, 6vw, 38px);
        display: block;
        border-radius: 23px 23px 0 0;
    }

    .member-login-identity::after {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .member-login-identity .member-login-brand {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 18px;
        row-gap: 2px;
        align-items: center;
    }

    .member-login-identity .member-login-brand img {
        width: auto;
        max-width: 108px;
        height: 58px;
        margin: 0;
        padding: 7px 9px;
        grid-row: 1 / 3;
        border-radius: 12px;
    }

    .member-login-identity .member-login-brand span {
        margin: 0;
        align-self: end;
    }

    .member-login-identity .member-login-brand strong {
        font-size: clamp(18px, 4vw, 23px);
        align-self: start;
    }

    .member-login-identity > p {
        max-width: none;
        margin: 17px 0 0;
        font-size: 13.5px;
        line-height: 1.5;
    }

    .member-login-auth {
        padding: 31px clamp(24px, 6vw, 40px) 25px;
        border-radius: 0 0 23px 23px;
    }
}

@media (max-width: 575.98px) {
    .member-login-view {
        padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        place-items: start center;
    }

    .member-login-card {
        padding: 0;
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(23, 52, 42, .1);
    }

    .member-login-identity {
        padding: 22px 20px;
        border-radius: 19px 19px 0 0;
    }

    .member-login-identity .member-login-brand {
        column-gap: 14px;
    }

    .member-login-identity .member-login-brand img {
        max-width: 88px;
        height: 50px;
    }

    .member-login-identity .member-login-brand span {
        font-size: 9.5px;
    }

    .member-login-identity .member-login-brand strong {
        font-size: 17px;
    }

    .member-login-identity > p {
        margin-top: 13px;
        font-size: 13px;
    }

    .member-login-auth {
        padding: 27px 20px 22px;
        border-radius: 0 0 19px 19px;
    }

    .member-login-auth .member-login-heading {
        margin-bottom: 21px;
    }

    .member-login-auth .member-login-powered-by {
        justify-content: center;
    }
}

@media (max-width: 359.98px) {
    .member-login-card {
        padding-inline: 17px;
    }

    .member-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* Loans reuses the approved Member Portal receipt cards for mobile records. */
.member-loan-mobile-applications,
.member-loan-mobile-schedule {
    display: none;
}

/* Shared phone record cards for Savings, Patronage, Beneficiaries, and Claims. */
.member-responsive-cards {
    display: none;
}

@media (max-width: 767.98px) {
    .member-savings-page-head,
    .member-beneficiaries-page-head,
    .member-claims-page-head,
    .member-assistance-page-head {
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }

    .member-savings-page-head > div:first-child,
    .member-beneficiaries-page-head > div,
    .member-claims-page-head > div,
    .member-assistance-page-head > div {
        min-width: 0;
        width: 100%;
    }

    .member-savings-page-head > .d-flex {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px !important;
    }

    .member-savings-page-head > .d-flex .btn {
        min-width: 0;
        min-height: 46px;
        padding: 9px 10px;
        border-radius: 13px;
        white-space: normal;
    }

    .member-savings-page-head > .d-flex .btn-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .member-beneficiaries-page-head > .btn,
    .member-claims-page-head > .btn,
    .member-assistance-page-head > .btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        border-radius: 13px;
    }

    .member-responsive-record-panel {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .member-responsive-record-panel > .member-portal-panel-head {
        margin-bottom: 11px;
        padding: 0;
        border: 0;
    }

    .member-responsive-desktop {
        display: none !important;
    }

    .member-responsive-cards {
        min-width: 0;
        display: grid;
        gap: 11px;
    }

    .member-responsive-card {
        min-width: 0;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(22, 58, 46, .055);
    }

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

    .member-responsive-card-head > div {
        min-width: 0;
    }

    .member-responsive-card-head small,
    .member-responsive-card-head strong,
    .member-responsive-card-head > div > span {
        display: block;
    }

    .member-responsive-card-head small {
        color: var(--muted);
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .member-responsive-card-head strong {
        margin-top: 2px;
        color: #20372f;
        font-size: 13.5px;
        overflow-wrap: anywhere;
    }

    .member-responsive-card-head > div > span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11.5px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .member-responsive-card-head .badge-status,
    .member-responsive-card-head .member-portal-status {
        max-width: 122px;
        justify-self: end;
        text-align: center;
        white-space: normal;
    }

    .member-responsive-details {
        margin: 14px 0 0;
        padding-top: 13px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 16px;
        border-top: 1px solid #e7ece9;
    }

    .member-responsive-details > div {
        min-width: 0;
    }

    .member-responsive-details .wide {
        grid-column: 1 / -1;
    }

    .member-responsive-details dt {
        margin-bottom: 3px;
        color: #829089;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .member-responsive-details dd {
        margin: 0;
        color: #33473f;
        font-size: 12.5px;
        font-weight: 650;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .member-responsive-amount {
        margin-top: 14px;
        padding: 11px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-radius: 12px;
        background: #f3f7f5;
    }

    .member-responsive-amount span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
    }

    .member-responsive-amount strong {
        min-width: 0;
        color: var(--brand-deep);
        font-size: 15px;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .member-responsive-note {
        margin: 13px 0 0;
        padding: 11px 12px;
        border-radius: 11px;
        background: #f6f8f7;
        color: #53645d;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .member-responsive-actions {
        margin-top: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .member-responsive-actions .btn,
    .member-responsive-card-action {
        min-width: 0;
        min-height: 44px;
        padding: 9px 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 12px;
        white-space: normal;
    }

    .member-beneficiary-actions .btn {
        font-size: 13.5px;
        font-weight: 700;
    }

    .member-claims-records .member-responsive-card-head .member-portal-status {
        max-width: none;
        white-space: nowrap;
    }

    .member-responsive-card-action {
        width: 100%;
        margin-top: 12px;
        gap: 8px;
        text-decoration: none;
    }

    .member-assistance-layout {
        --bs-gutter-y: 16px;
    }

    .member-assistance-layout .member-portal-panel {
        border-radius: 17px;
    }

    .member-assistance-types > div {
        min-width: 0;
        align-items: flex-start;
    }

    .member-assistance-types > div > span.flex-grow-1,
    .member-assistance-types strong,
    .member-assistance-types small {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .member-assistance-types .badge {
        flex: 0 0 auto;
        white-space: normal;
        text-align: center;
    }

    .member-announcements-page-head {
        margin-bottom: 18px;
    }

    .member-announcements-empty {
        border-radius: 17px;
    }

    .member-notice-card {
        min-width: 0;
        align-items: flex-start;
        gap: 13px;
        padding: 15px;
        border-radius: 16px;
    }

    .member-notice-content,
    .member-notice-meta,
    .member-notice-content h2,
    .member-notice-content p {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .member-notice-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .member-savings-modal .modal-body,
    .member-savings-modal .modal-footer,
    .member-beneficiary-modal .modal-body,
    .member-beneficiary-modal .modal-footer,
    .member-assistance-modal .modal-body,
    .member-assistance-modal .modal-footer {
        min-width: 0;
    }

    .member-savings-modal .form-control,
    .member-savings-modal .app-select,
    .member-beneficiary-modal .form-control,
    .member-beneficiary-modal .app-select,
    .member-assistance-modal .form-control,
    .member-assistance-modal .app-select {
        max-width: 100%;
    }
}

@media (max-width: 359.98px) {
    .member-responsive-card-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .member-responsive-card-head .badge-status,
    .member-responsive-card-head .member-portal-status {
        grid-column: 2;
        justify-self: start;
    }

    .member-responsive-actions,
    .member-savings-page-head > .d-flex {
        grid-template-columns: 1fr;
    }

    .member-savings-page-head > .d-flex .btn-brand {
        grid-column: auto;
        grid-row: auto;
    }

    .member-responsive-details {
        grid-template-columns: 1fr;
    }

    .member-responsive-details .wide {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .member-loans-page-head,
    .member-portal-content:has(.member-loan-overview-summary) .member-portal-page-head {
        margin-bottom: 18px;
        gap: 15px;
    }

    .member-loans-page-head > div,
    .member-portal-content:has(.member-loan-overview-summary) .member-portal-page-head > div {
        width: 100%;
    }

    .member-loans-page-head > .btn,
    .member-portal-content:has(.member-loan-overview-summary) .member-portal-page-head > .btn {
        width: 100%;
        min-height: 46px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font-size: 13px;
    }

    .member-loan-applications {
        margin-bottom: 16px !important;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .member-loan-applications .member-portal-panel-head {
        margin-bottom: 11px;
        padding: 0;
        border: 0;
    }

    .member-loan-desktop-applications,
    .member-loan-desktop-schedule {
        display: none !important;
    }

    .member-loan-mobile-applications,
    .member-loan-mobile-schedule {
        display: grid;
        gap: 11px;
    }

    /* Keeps a running pre-recompile development session responsive; compiled markup uses the cards above. */
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications),
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) {
        overflow: visible;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) table,
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) tbody,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) table,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) tbody {
        width: 100%;
        display: block;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) thead,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) thead {
        display: none;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) tbody,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) tbody {
        display: grid;
        gap: 11px;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) tr,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) tr {
        min-width: 0;
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 16px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(22, 58, 46, .055);
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td {
        min-width: 0;
        padding: 0 !important;
        display: block;
        border: 0;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td::before,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td::before {
        margin-bottom: 4px;
        display: block;
        color: #829089;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:first-child,
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:first-child {
        grid-column: 1 / -1;
        padding-bottom: 11px !important;
        border-bottom: 1px solid #e7ece9;
    }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(1)::before { content: "Application"; }
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(2)::before { content: "Loan product"; }
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(3)::before { content: "Submitted"; }
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(4)::before { content: "Status"; }
    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(5)::before { content: "Requested amount"; }

    .member-portal-content:has(.member-loan-overview-summary) > section.member-portal-panel:first-of-type .table-responsive:not(.member-loan-desktop-applications) td:nth-child(5),
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(4) {
        grid-column: 1 / -1;
        padding: 11px 12px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-radius: 12px;
        background: #f3f7f5;
    }

    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(1)::before { content: "Installment"; }
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(2)::before { content: "Due date"; }
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(3)::before { content: "Installment amount"; }
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(4)::before { content: "Outstanding amount"; }
    .member-loan-print-card > .table-responsive:not(.member-loan-desktop-schedule) td:nth-child(5)::before { content: "Status"; }

    .member-loan-card-wide {
        grid-column: 1 / -1;
    }

    .member-loan-card-wide dd {
        overflow-wrap: anywhere;
    }

    .member-loan-overview-summary {
        gap: 12px;
    }

    .member-loan-overview-summary .member-portal-summary-card {
        padding: 18px 20px;
    }

    .member-loan-print-card {
        margin-top: 16px !important;
        overflow: visible;
        border-radius: 17px;
    }

    .member-loan-print-card .member-financial-summary-identity {
        gap: 12px;
    }

    .member-loan-print-card .member-financial-summary-identity h2 {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    .member-loan-print-card .member-financial-summary-identity p {
        margin-top: 3px;
        font-size: 12px;
    }

    .member-loan-print-card .member-financial-detail-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 16px 15px;
    }

    .member-loan-print-card .member-financial-detail {
        min-width: 0;
        padding: 12px;
    }

    .member-loan-print-card .member-financial-detail:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .member-loan-print-card .member-financial-detail:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .member-loan-print-card .member-financial-detail small {
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .member-loan-print-card .member-financial-detail strong {
        margin-top: 4px;
        overflow-wrap: anywhere;
        font-size: 15px;
        line-height: 1.3;
    }

    .member-loan-print-card .member-financial-detail span {
        margin-top: 3px;
        overflow-wrap: anywhere;
        font-size: 11.5px;
        line-height: 1.35;
    }

    .member-loan-mobile-schedule {
        padding: 0 16px 4px;
    }

}

/* Member loan application keeps a calm, guided form hierarchy inside the standard modal. */
.member-loan-application-dialog .modal-body {
    padding: 0;
    background: #f5f8f6;
}

.member-loan-application-dialog .modal-footer {
    padding: 14px 22px;
    gap: 10px;
    background: #fff;
}

.member-loan-application-dialog .modal-footer .btn {
    min-height: 42px;
    padding-right: 18px;
    padding-left: 18px;
}

.member-loan-application-form {
    padding: 20px 22px 24px;
}

.member-loan-application-form > .alert {
    margin-bottom: 16px;
}

.member-loan-form-section {
    padding: 20px;
    border: 1px solid #dce6e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 61, 49, .035);
}

.member-loan-form-section + .member-loan-form-section {
    margin-top: 14px;
}

.member-loan-form-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.member-loan-form-step {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.member-loan-form-heading > div {
    min-width: 0;
}

.member-loan-form-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.member-loan-form-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.member-loan-application-form .form-label {
    margin-bottom: 6px;
    color: #31483f;
    font-size: 12px;
    font-weight: 750;
}

.member-loan-application-form .form-control,
.member-loan-application-form .app-form-select .cashiering-select-trigger {
    min-height: 44px;
    border-radius: 11px;
}

.member-loan-application-form textarea.form-control {
    min-height: 78px;
    resize: vertical;
}

.member-loan-application-form .form-text {
    margin-top: 5px;
    color: #788780;
    font-size: 11.5px;
    line-height: 1.35;
}

.member-loan-purpose-field {
    margin-top: 16px;
}

.member-loan-product-summary {
    margin-top: 16px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px 18px;
    border: 1px solid #dce8e2;
    border-radius: 12px;
    background: #f5f9f7;
}

.member-loan-product-summary-title {
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.member-loan-product-summary-item small,
.member-loan-product-summary-item strong {
    display: block;
}

.member-loan-product-summary-item small {
    color: var(--muted);
    font-size: 10.5px;
}

.member-loan-product-summary-item strong {
    margin-top: 2px;
    color: #29453a;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .member-loan-application-dialog {
        margin: 10px;
    }

    .member-loan-application-dialog .modal-content {
        max-height: calc(100dvh - 20px);
    }

    .member-loan-application-dialog .modal-footer {
        padding: 12px 14px;
    }

    .member-loan-application-dialog .modal-footer .btn {
        flex: 1 1 0;
    }

    .member-loan-application-form {
        padding: 14px;
    }

    .member-loan-form-section {
        padding: 16px;
        border-radius: 14px;
    }

    .member-loan-product-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-loan-product-summary-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 479.98px) {
    .member-loan-request-fields > .col-6 {
        width: 100%;
    }

    .member-loan-product-summary {
        grid-template-columns: 1fr;
    }

    .member-loan-product-summary-title {
        grid-column: auto;
    }
}

/* Share Capital mobile records reuse the approved Contributions receipt-card language. */
.member-capital-verification-status {
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.member-capital-pending-copy {
    color: #8a6500;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    text-align: right;
}

.member-capital-mobile-installments,
.member-capital-mobile-transactions {
    display: none;
}

@media (max-width: 767.98px) {
    .member-capital-subscriptions,
    .member-capital-transactions {
        margin-top: 16px !important;
    }

    .member-capital-subscriptions .member-portal-panel-head h2 {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    .member-capital-financial-summary .member-financial-summary-identity h3 {
        font-size: 17px;
        font-weight: 800;
    }

    .member-capital-financial-summary .member-financial-summary-identity p {
        margin-top: 3px;
        font-size: 12px;
    }

    .member-capital-financial-summary .member-financial-identity-value {
        margin-top: 7px;
        font-size: 18px;
    }

    .member-capital-financial-summary .member-financial-detail small {
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .member-capital-financial-summary .member-financial-detail strong {
        margin-top: 4px;
        font-size: 15px;
        line-height: 1.3;
    }

    .member-capital-financial-summary .member-financial-detail span {
        margin-top: 3px;
        font-size: 11.5px;
        line-height: 1.35;
    }

    .member-capital-desktop-installments,
    .member-capital-desktop-transactions {
        display: none !important;
    }

    .member-capital-mobile-installments,
    .member-capital-mobile-transactions {
        display: grid;
        gap: 11px;
    }

    .member-capital-mobile-installments {
        padding: 0 16px;
    }

    .member-capital-installment-card {
        padding: 15px;
    }

    .member-capital-outstanding {
        color: #913f2f !important;
        font-weight: 800 !important;
    }

    .member-capital-installment-total {
        align-items: center;
    }

    .member-capital-installment-total > div {
        min-width: 0;
    }

    .member-capital-installment-total > div span,
    .member-capital-installment-total > div strong {
        display: block;
    }

    .member-capital-installment-total > div strong {
        margin-top: 2px;
        color: var(--brand-deep);
        font-size: 15px;
    }

    .member-capital-installment-action {
        min-width: 112px;
        min-height: 44px;
        padding: 8px 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 750;
        line-height: 1.2;
        text-decoration: none;
    }

    .member-capital-mobile-transactions {
        width: 100%;
    }

    .member-capital-transaction-details .member-capital-transaction-notes {
        grid-column: 1 / -1;
    }

    .member-capital-transaction-details dd {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 359.98px) {
    .member-capital-installment-total {
        align-items: stretch;
        flex-direction: column;
    }

    .member-capital-installment-action {
        width: 100%;
    }
}

/* Share Capital keeps its desktop tables and presents the same records as cards on phones. */
@media (max-width: 767.98px) {
    .member-capital-page-head,
    .member-portal-content:has(.member-capital-financial-summary) .member-portal-page-head {
        margin-bottom: 18px;
        gap: 15px;
    }

    .member-capital-page-head > div,
    .member-portal-content:has(.member-capital-financial-summary) .member-portal-page-head > div {
        width: 100%;
    }

    .member-capital-page-head > .btn,
    .member-portal-content:has(.member-capital-financial-summary) .member-portal-page-head > .btn {
        width: 100%;
        min-height: 46px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font-size: 13px;
    }

    .member-portal-content:has(.member-capital-financial-summary) .member-portal-summary-grid {
        gap: 12px;
    }

    .member-portal-content:has(.member-capital-financial-summary) .member-portal-summary-card {
        padding: 18px 20px;
    }

    .member-capital-subscriptions,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:has(.member-capital-financial-summary) {
        overflow: visible;
        border-radius: 17px;
    }

    .member-capital-subscriptions .member-portal-panel-head,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:has(.member-capital-financial-summary) .member-portal-panel-head {
        padding: 17px 16px 15px;
    }

    .member-capital-financial-summary .member-financial-summary-identity {
        gap: 12px;
    }

    .member-capital-financial-summary .member-financial-summary-identity h3 {
        font-size: 17px;
    }

    .member-capital-financial-summary .member-financial-identity-value {
        font-size: 17px;
    }

    .member-capital-financial-summary .member-financial-detail-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 16px 15px;
        overflow: hidden;
    }

    .member-capital-financial-summary .member-financial-detail {
        min-width: 0;
        padding: 12px;
    }

    .member-capital-financial-summary .member-financial-detail:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .member-capital-financial-summary .member-financial-detail:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .member-capital-financial-summary .member-financial-detail strong,
    .member-capital-financial-summary .member-financial-detail span {
        overflow-wrap: anywhere;
    }

    .member-capital-financial-summary .member-financial-detail strong {
        font-size: 16px;
    }

    .member-capital-installments,
    .member-capital-financial-summary + .table-responsive {
        margin: 0 0 16px !important;
        padding: 0 16px;
        overflow: visible;
        border: 0;
    }

    .member-capital-installments table,
    .member-capital-installments tbody,
    .member-capital-financial-summary + .table-responsive table,
    .member-capital-financial-summary + .table-responsive tbody {
        width: 100%;
        display: block;
    }

    .member-capital-installments thead,
    .member-capital-financial-summary + .table-responsive thead {
        display: none;
    }

    .member-capital-installments tbody,
    .member-capital-financial-summary + .table-responsive tbody {
        display: grid;
        gap: 11px;
    }

    .member-capital-installments tr,
    .member-capital-financial-summary + .table-responsive tr {
        min-width: 0;
        padding: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 15px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(22, 58, 46, .05);
    }

    .member-capital-installments td,
    .member-capital-financial-summary + .table-responsive td {
        min-width: 0;
        padding: 0 !important;
        display: block;
        border: 0;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .member-capital-installments td::before,
    .member-capital-financial-summary + .table-responsive td::before {
        margin-bottom: 3px;
        display: block;
        color: #829089;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .member-capital-installments td:nth-child(1),
    .member-capital-financial-summary + .table-responsive td:nth-child(1) {
        grid-column: 1 / -1;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e6ece9;
        color: var(--brand-deep);
        font-size: 14px;
        font-weight: 800;
    }

    .member-capital-installments td:nth-child(1)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(1)::before { content: "Installment"; }
    .member-capital-installments td:nth-child(2)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(2)::before { content: "Due date"; }
    .member-capital-installments td:nth-child(3)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(3)::before { content: "Required"; }
    .member-capital-installments td:nth-child(4)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(4)::before { content: "Paid"; }
    .member-capital-installments td:nth-child(5)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(5)::before { content: "Remaining"; }
    .member-capital-installments td:nth-child(6)::before,
    .member-capital-financial-summary + .table-responsive td:nth-child(6)::before { content: "Status"; }

    .member-capital-installments td:nth-child(5) strong,
    .member-capital-financial-summary + .table-responsive td:nth-child(5) strong {
        color: #913f2f;
        font-size: 14px;
    }

    .member-capital-installments td:nth-child(7),
    .member-capital-financial-summary + .table-responsive td:nth-child(7) {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .member-capital-installments .table-action,
    .member-capital-financial-summary + .table-responsive .table-action {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: color-mix(in srgb, var(--brand) 9%, white);
        color: var(--brand);
    }

    .member-capital-transactions,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .member-capital-transaction-list,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type .table-responsive {
        overflow: visible;
    }

    .member-capital-transaction-list table,
    .member-capital-transaction-list tbody,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type table,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type tbody {
        width: 100%;
        display: block;
    }

    .member-capital-transaction-list thead,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type thead {
        display: none;
    }

    .member-capital-transaction-list tbody,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type tbody {
        display: grid;
        gap: 11px;
    }

    .member-capital-transaction-list tr,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type tr {
        min-width: 0;
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 16px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(22, 58, 46, .055);
    }

    .member-capital-transaction-list td,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td {
        min-width: 0;
        padding: 0 !important;
        display: block;
        border: 0;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .member-capital-transaction-list td::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td::before {
        margin-bottom: 4px;
        display: block;
        color: #829089;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .member-capital-transaction-list td:nth-child(1),
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(1) {
        grid-column: 1 / -1;
        padding-bottom: 11px !important;
        border-bottom: 1px solid #e6ece9;
    }

    .member-capital-transaction-list td:nth-child(1)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(1)::before { content: "Receipt / reference"; }
    .member-capital-transaction-list td:nth-child(2)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(2)::before { content: "Transaction date"; }
    .member-capital-transaction-list td:nth-child(3)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(3)::before { content: "Transaction type"; }
    .member-capital-transaction-list td:nth-child(4)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(4)::before { content: "Notes / description"; }
    .member-capital-transaction-list td:nth-child(5)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(5)::before { content: "Amount"; }

    .member-capital-transaction-list td:nth-child(4),
    .member-capital-transaction-list td:nth-child(5),
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(4),
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(5) {
        grid-column: 1 / -1;
    }

    .member-capital-transaction-list td:nth-child(5),
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(5) {
        padding: 11px 12px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-radius: 12px;
        background: #f3f7f5;
        color: var(--brand-deep);
        font-size: 15px;
    }

    .member-capital-transaction-list td:nth-child(5)::before,
    .member-portal-content:has(.member-capital-financial-summary) > section.member-portal-panel:last-of-type td:nth-child(5)::before {
        margin: 0;
    }
}

/* Payments uses a strict one-column workflow on Member Portal phone layouts. */
@media (max-width: 767.98px) {
    .member-portal-content:has(.member-payments-head) {
        width: 100%;
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payments-head {
        margin-bottom: 16px;
        gap: 12px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-pending-pill {
        max-width: 100%;
        white-space: normal;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-workspace {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        align-items: stretch;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-obligations-panel,
    .member-portal-content:has(.member-payments-head) .member-payment-transfer-panel,
    .member-portal-content:has(.member-payments-head) .member-payment-proof-panel {
        width: 100%;
        min-width: 0;
        height: auto;
        grid-column: 1;
        padding: 16px;
        border-radius: 17px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-section-head {
        min-width: 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 9px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-section-head > div {
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-section-head p,
    .member-portal-content:has(.member-payments-head) .member-payment-option-main span,
    .member-portal-content:has(.member-payments-head) .member-payment-option-main small,
    .member-portal-content:has(.member-payments-head) .member-payment-instructions,
    .member-portal-content:has(.member-payments-head) .member-payment-history-main span,
    .member-portal-content:has(.member-payments-head) .member-payment-history-main small {
        overflow-wrap: anywhere;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-selected-count {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-list {
        gap: 10px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option {
        width: 100%;
        min-width: 0;
        min-height: 0;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px 11px;
        align-items: start;
        padding: 14px;
        border-radius: 15px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-check {
        width: 26px;
        height: 26px;
        margin-top: 1px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-check span {
        width: 26px;
        height: 26px;
        border-radius: 7px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-main {
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-main strong {
        font-size: 14px;
        line-height: 1.35;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-main span {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.4;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-balance {
        min-width: 0;
        grid-column: 1 / -1;
        padding-top: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid #e4ebe7;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-balance strong {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-amount {
        min-width: 0;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-amount small {
        margin: 0;
        font-size: 11px;
        font-weight: 750;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-amount .input-group {
        width: 100%;
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-option-amount .input-group-text,
    .member-portal-content:has(.member-payments-head) .member-payment-option-amount .form-control {
        min-height: 44px;
        font-size: 14px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-transfer-panel .app-form-select,
    .member-portal-content:has(.member-payments-head) .member-payment-transfer-panel .app-select,
    .member-portal-content:has(.member-payments-head) .member-payment-transfer-panel select {
        width: 100%;
        max-width: 100%;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-destination-card {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
        border-radius: 14px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-qr {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1;
        justify-self: center;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-destination-copy,
    .member-portal-content:has(.member-payments-head) .member-payment-destination-copy strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-transfer-total {
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 13px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-transfer-total > div,
    .member-portal-content:has(.member-payments-head) .member-payment-transfer-total small {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-transfer-total strong {
        max-width: 100%;
        font-size: 22px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-proof-grid {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-proof-grid > div,
    .member-portal-content:has(.member-payments-head) .member-payment-proof-grid .form-control,
    .member-portal-content:has(.member-payments-head) .member-payment-file-picker {
        width: 100%;
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-proof-grid .form-control {
        min-height: 46px;
        font-size: 14px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-file-picker {
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-file-picker > span {
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-file-picker strong {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-submit-bar {
        min-width: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-submit-bar > div {
        min-width: 0;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-submit-bar > div strong {
        overflow-wrap: anywhere;
        font-size: 21px;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-submit-bar .btn {
        width: 100%;
        min-height: 48px;
        padding: 10px 16px;
        border-radius: 13px;
        white-space: normal;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-history-row {
        min-width: 0;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .member-portal-content:has(.member-payments-head) .member-payment-history-end {
        min-width: 0;
        grid-column: 2;
        text-align: left;
    }
}

/* Member Portal phone navigation. Desktop navigation remains authoritative above 767.98px. */
.member-mobile-bottom-nav,
.member-mobile-sheet-layer {
    display: none;
}

@media (max-width: 767.98px) {
    .member-portal-shell {
        max-width: 100vw;
        overflow-x: clip;
    }

    .member-portal-header-inner {
        min-height: 60px;
        padding: 0 16px;
        gap: 12px;
    }

    .member-portal-brand {
        min-width: 0;
        gap: 9px;
    }

    .member-portal-brand img {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 10px;
    }

    .member-portal-brand span {
        min-width: 0;
    }

    .member-portal-brand strong {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-portal-brand small {
        margin-top: 0;
        font-size: 11px;
    }

    .member-portal-account {
        flex: 0 0 auto;
    }

    .member-portal-signout {
        width: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .member-marketplace-header-link {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        display: grid;
        place-items: center;
        border-radius: 12px;
        font-size: 17px;
        line-height: 1;
    }

    .member-marketplace-header-link span {
        display: none;
    }

    .member-portal-nav {
        display: none;
    }

    .member-portal-main {
        min-height: calc(100dvh - 60px);
    }

    .member-portal-content {
        width: 100%;
        padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
        overflow-x: clip;
    }

    .member-mobile-bottom-nav {
        position: fixed;
        z-index: 1045;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        border-top: 1px solid color-mix(in srgb, var(--brand) 12%, #dce4e0);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 28px rgba(15, 54, 42, .1);
        backdrop-filter: blur(16px);
        transition: transform .18s ease;
    }

    .member-mobile-nav-item {
        position: relative;
        min-width: 0;
        min-height: 56px;
        padding: 7px 4px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: #6d7974;
        text-decoration: none;
        font: inherit;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.15;
        -webkit-tap-highlight-color: transparent;
    }

    .member-mobile-nav-item i {
        font-size: 21px;
        line-height: 1;
    }

    .member-mobile-nav-item:hover,
    .member-mobile-nav-item:focus-visible,
    .member-mobile-nav-item.active {
        color: var(--brand);
    }

    .member-mobile-nav-item.active::before {
        content: "";
        position: absolute;
        top: 1px;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: var(--brand);
    }

    .member-mobile-nav-item:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--brand) 55%, white);
        outline-offset: -2px;
    }

    .member-mobile-sheet-layer {
        position: fixed;
        z-index: 1040;
        inset: 0 0 calc(68px + env(safe-area-inset-bottom));
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
        background: rgba(8, 29, 22, .48);
        animation: member-sheet-backdrop-in .18s ease-out both;
        overscroll-behavior: contain;
    }

    .member-mobile-sheet {
        width: min(100%, 560px);
        max-height: min(72dvh, 620px);
        padding: 9px 18px 22px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -18px 55px rgba(5, 28, 20, .24);
        animation: member-sheet-up .22s cubic-bezier(.2, .8, .2, 1) both;
        touch-action: pan-y;
    }

    .member-mobile-sheet-handle {
        width: 42px;
        height: 4px;
        margin: 0 auto 9px;
        border-radius: 999px;
        background: #ced8d3;
    }

    .member-mobile-sheet-header {
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .member-mobile-sheet-header span {
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .member-mobile-sheet-header h2 {
        margin: 0;
        color: var(--brand-deep);
        font-size: 20px;
        font-weight: 800;
    }

    .member-mobile-sheet-close {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 14px;
        background: #f1f5f3;
        color: #52615b;
        font-size: 18px;
    }

    .member-mobile-sheet-links {
        margin-top: 10px;
        display: grid;
        gap: 7px;
    }

    .member-mobile-sheet-link {
        min-height: 58px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        align-items: center;
        gap: 11px;
        border: 1px solid transparent;
        border-radius: 15px;
        color: #263d35;
        text-decoration: none;
        font-size: 14px;
        font-weight: 750;
    }

    .member-mobile-sheet-link:hover,
    .member-mobile-sheet-link:focus-visible {
        background: #f6f9f7;
        color: var(--brand);
    }

    .member-mobile-sheet-link.active {
        border-color: color-mix(in srgb, var(--brand) 18%, white);
        background: color-mix(in srgb, var(--brand) 8%, white);
        color: var(--brand);
    }

    .member-mobile-sheet-icon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: color-mix(in srgb, var(--brand) 9%, white);
        color: var(--brand);
        font-size: 18px;
    }

    .member-mobile-sheet-chevron {
        color: #9ba6a1;
        font-size: 14px;
        text-align: center;
    }

    .member-portal-shell:has(input:focus, textarea:focus, select:focus) .member-mobile-bottom-nav {
        transform: translateY(110%);
    }
}

@keyframes member-sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes member-sheet-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .member-mobile-sheet,
    .member-mobile-sheet-layer,
    .member-mobile-bottom-nav {
        animation: none;
        transition: none;
    }
}

/* Rider portal shell. Kept global so the mobile WebView and browser use the
   same dependable navigation treatment as the member portal. */
body.delivery-map-fullscreen {
    overflow: hidden;
}

.delivery-map-maximized {
    position: fixed !important;
    z-index: 2000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.delivery-map-maximize {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--brand);
    font-size: 16px;
    cursor: pointer;
}

.delivery-map-maximize:hover,
.delivery-map-maximize:focus-visible {
    background: #f0f6f3;
}

.leaflet-top.leaflet-left .delivery-route-legend {
    position: absolute;
    top: 0;
    left: 44px;
    width: min(280px, calc(100vw - 120px));
    max-height: min(250px, 44vh);
    clear: none;
    overflow-y: auto;
    margin: 10px 0 0 !important;
    padding: 7px;
    border: 1px solid rgba(18, 64, 50, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 22px rgba(15, 54, 42, .14);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.delivery-route-legend > strong {
    display: block;
    padding: 5px 7px 3px;
    color: #53645d;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.delivery-route-legend button {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f302a;
    text-align: left;
}

.delivery-route-legend button:hover,
.delivery-route-legend button:focus-visible {
    background: #edf5f1;
    outline: none;
}

.delivery-route-legend button > i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
}

.delivery-route-legend button > span,
.delivery-route-legend button b,
.delivery-route-legend button small {
    min-width: 0;
    display: block;
}

.delivery-route-legend button b {
    font-size: 11px;
    line-height: 1.2;
    text-transform: capitalize;
}

.delivery-route-legend button small {
    overflow: hidden;
    color: #687871;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rider-shell {
    min-height: 100vh;
    background: #f3f7f5;
    color: #172722;
}

.rider-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(16px, env(safe-area-inset-left));
    background: #0d4436;
    color: #fff;
    box-shadow: 0 3px 16px rgba(8, 46, 37, .14);
}

.rider-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.rider-brand > span,
.rider-logout {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.rider-brand div {
    display: flex;
    flex-direction: column;
}

.rider-brand strong {
    font-size: 1rem;
}

.rider-brand small {
    color: #d6e7e1;
    font-size: .78rem;
}

.rider-logout {
    border: 1px solid rgba(255, 255, 255, .22);
}

.rider-main {
    width: min(720px, 100%);
    margin: auto;
    padding: 18px 14px calc(94px + env(safe-area-inset-bottom));
}

.rider-intro {
    margin: 4px 2px 18px;
}

.rider-intro > span {
    color: #a07022;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.rider-intro h1 {
    margin: 5px 0;
    font-size: 1.75rem;
}

.rider-intro p {
    margin: 0;
    color: #66756f;
}

@media (max-width: 767.98px) {
    .rider-bottom-nav.member-mobile-bottom-nav {
        display: grid;
    }
}

@media (min-width: 768px) {
    .rider-bottom-nav.member-mobile-bottom-nav {
        position: fixed;
        z-index: 1045;
        right: auto;
        bottom: 0;
        left: 50%;
        width: min(720px, 100%);
        min-height: 68px;
        padding: 6px 8px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        transform: translateX(-50%);
        border: 1px solid #dce4e0;
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 28px rgba(15, 54, 42, .1);
    }

    .rider-bottom-nav .member-mobile-nav-item {
        position: relative;
        min-width: 0;
        min-height: 56px;
        padding: 7px 4px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        background: transparent;
        color: #718079;
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.15;
    }

    .rider-bottom-nav .member-mobile-nav-item i {
        font-size: 21px;
        line-height: 1;
    }

    .rider-bottom-nav .member-mobile-nav-item:hover,
    .rider-bottom-nav .member-mobile-nav-item:focus-visible,
    .rider-bottom-nav .member-mobile-nav-item.active {
        color: var(--brand);
    }

    .rider-bottom-nav .member-mobile-nav-item.active::before {
        content: "";
        position: absolute;
        top: 1px;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: var(--brand);
    }
}

/* Contributions keeps its desktop table and uses purpose-built receipt cards on phones. */
.member-contribution-mobile-receipts {
    display: none;
}

.member-contribution-pagination {
    min-height: 58px;
    font-size: 13px;
}

.member-contribution-pagination .table-pagination-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-contribution-pagination .table-pagination-size {
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-weight: 650;
}

.member-contribution-pagination .table-pagination-size select {
    width: 72px;
}

.member-contribution-pagination .table-pagination-page.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

@media (max-width: 767.98px) {
    .member-contribution-pagination {
        padding: 14px 0;
        align-items: stretch;
        background: transparent;
    }

    .member-contribution-pagination .table-pagination-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .member-contribution-pagination .table-action {
        width: 38px;
        height: 36px;
    }

    .member-contributions-page .member-portal-page-head {
        margin-bottom: 16px;
        gap: 14px;
    }

    .member-contributions-page .member-portal-page-head > div {
        width: 100%;
    }

    .member-contributions-page .member-portal-page-head > .btn {
        width: 100%;
        min-height: 46px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font-size: 13px;
    }

    .member-contributions-page .member-contribution-outstanding {
        padding: 15px;
        border-radius: 17px;
    }

    .member-contributions-page .member-contribution-outstanding .member-payment-section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .member-contributions-page .member-contribution-outstanding .member-payment-section-head .btn {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .member-contributions-page .member-contribution-obligation {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 10px;
        padding: 13px;
        border-radius: 14px;
    }

    .member-contributions-page .member-contribution-obligation-icon {
        width: 40px;
        height: 40px;
        align-self: start;
    }

    .member-contributions-page .member-contribution-obligation-copy {
        min-width: 0;
    }

    .member-contributions-page .member-contribution-obligation-copy strong,
    .member-contributions-page .member-contribution-obligation-copy small {
        overflow-wrap: anywhere;
    }

    .member-contributions-page .member-contribution-obligation > .bi-arrow-right {
        grid-row: 1;
        grid-column: 3;
        align-self: center;
        color: #87938d;
    }

    .member-contributions-page .member-contribution-obligation-amount {
        grid-column: 1 / -1;
        padding-top: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid color-mix(in srgb, var(--brand) 10%, #e5ebe8);
        text-align: left;
    }

    .member-contributions-page .member-contribution-obligation-amount small {
        margin: 0;
    }

    .member-contributions-page .member-contribution-obligation-amount strong {
        flex: 0 0 auto;
    }

    .member-contribution-history {
        border: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .member-contribution-history .member-portal-table-toolbar {
        margin-bottom: 12px;
        padding: 0;
        border: 0;
    }

    .member-contribution-history .member-portal-search {
        max-width: none;
        min-height: 46px;
        border-radius: 13px;
        box-shadow: 0 5px 16px rgba(22, 58, 46, .05);
    }

    .member-contribution-desktop-table {
        display: none;
    }

    .member-contribution-mobile-receipts {
        display: grid;
        gap: 11px;
    }

    .member-contribution-receipt-card {
        min-width: 0;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(22, 58, 46, .055);
    }

    .member-contribution-receipt-head {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .member-contribution-receipt-head > div {
        min-width: 0;
    }

    .member-contribution-receipt-head small,
    .member-contribution-receipt-head strong {
        display: block;
    }

    .member-contribution-receipt-head small {
        color: var(--muted);
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .member-contribution-receipt-head strong {
        margin-top: 2px;
        overflow-wrap: anywhere;
        color: #20372f;
        font-size: 13px;
    }

    .member-contribution-receipt-icon {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: color-mix(in srgb, var(--brand) 9%, white);
        color: var(--brand);
        font-size: 17px;
    }

    .member-contribution-receipt-details {
        margin: 14px 0 0;
        padding-top: 13px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 16px;
        border-top: 1px solid #e7ece9;
    }

    .member-contribution-receipt-details > div {
        min-width: 0;
    }

    .member-contribution-receipt-details dt {
        margin: 0 0 3px;
        color: #829089;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

    .member-contribution-receipt-details dd {
        margin: 0;
        overflow-wrap: anywhere;
        color: #33473f;
        font-size: 12.5px;
        font-weight: 650;
        line-height: 1.35;
    }

    .member-contribution-receipt-total {
        margin-top: 14px;
        padding: 11px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-radius: 12px;
        background: #f3f7f5;
    }

    .member-contribution-receipt-total span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
    }

    .member-contribution-receipt-total strong {
        color: var(--brand-deep);
        font-size: 15px;
    }
}

@media (max-width: 359.98px) {
    .member-contribution-receipt-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .member-contribution-receipt-head .member-portal-status {
        grid-column: 2;
        justify-self: start;
    }
}

/* Approved Member Portal login composition. */
.member-login-view,
.member-login-view.mobile-login-view,
.member-login-view.member-portal-login-view {
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    place-items: center;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(22, 66, 47, .34), rgba(13, 52, 37, .43)),
        url('/images/member-login-background.png') center / cover fixed no-repeat;
}

.member-login-view > .member-login-card {
    width: min(calc(100vw - 48px), 1120px);
    max-width: 1120px;
    min-height: 0;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 34px;
    background: #fff;
    box-shadow:
        0 4px 16px rgba(7, 35, 24, .16),
        0 30px 76px rgba(7, 35, 24, .32);
}

.member-login-view .member-login-identity {
    padding: 52px;
    justify-content: flex-start;
    color: #183f33;
    border-radius: 33px 0 0 33px;
    background: #F5F7F3;
}

.member-login-identity::after {
    border-color: rgba(31, 70, 51, .14);
    background: none;
}

.member-login-identity .member-login-brand {
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

.member-login-view .member-login-identity .member-login-brand img {
    width: auto;
    max-width: min(220px, 76%);
    height: auto;
    max-height: 120px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: left center;
}

.member-login-identity .member-login-brand span {
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--brand) 78%, #657b42);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .2em;
}

.member-login-view .member-login-identity .member-login-brand strong {
    max-width: 390px;
    color: #123e32;
    font-size: clamp(30px, 2.35vw, 34px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
}

.member-login-identity .member-login-brand::after {
    content: "";
    width: 42px;
    height: 3px;
    margin-top: 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold) 75%, var(--brand));
}

.member-login-view .member-login-identity > p {
    position: relative;
    z-index: 1;
    max-width: 320px;
    margin-top: 20px;
    color: #34594f;
    font-size: 15px;
    line-height: 1.6;
}

.member-login-view .member-login-auth {
    padding: 52px;
    justify-content: center;
    border-radius: 0 33px 33px 0;
    background: #fff;
    box-shadow: -1px 0 0 rgba(32, 70, 52, .08);
}

.member-login-view .member-login-auth .member-login-heading {
    margin-bottom: 28px;
}

.member-login-view .member-login-auth .member-login-heading :is(h1, h2) {
    margin-bottom: 8px;
    color: #123f32;
    font-size: 30px;
    line-height: 1.15;
}

.member-login-view .member-login-auth .member-login-heading p {
    color: #687870;
    font-size: 15px;
}

.member-login-view .member-login-auth .member-login-field {
    margin-bottom: 18px !important;
}

.member-login-view .member-login-auth .form-label {
    margin-bottom: 9px;
    font-size: 13.5px;
}

.member-login-view .member-login-auth .form-control,
.member-login-view .member-login-auth .form-control:hover {
    min-height: 52px;
    border-color: #ccd5d0;
    border-radius: 13px;
    background: #fff;
    color: #18382f;
    font-size: 15px;
}

.member-login-auth .form-control:hover:not(:disabled) {
    border-color: #aebdb6;
}

.member-login-auth .form-control:focus {
    border-color: color-mix(in srgb, var(--brand) 74%, white);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent);
}

.member-login-auth input.form-control:-webkit-autofill,
.member-login-auth input.form-control:-webkit-autofill:hover,
.member-login-auth input.form-control:-webkit-autofill:focus,
.member-login-auth input.form-control:-webkit-autofill:active {
    border-color: #ccd5d0 !important;
    -webkit-text-fill-color: #18382f !important;
    caret-color: #18382f;
    -webkit-box-shadow: 0 0 0 1000px #fdfdfb inset !important;
    box-shadow: 0 0 0 1000px #fdfdfb inset !important;
    transition: background-color 9999s ease-out 0s;
}

.member-login-auth input.form-control:-webkit-autofill:focus {
    border-color: color-mix(in srgb, var(--brand) 74%, white) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent) !important;
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent) !important;
}

.member-login-view .member-login-options {
    margin-top: -1px;
    margin-bottom: 22px !important;
    font-size: 13.5px;
}

.member-remember-option input {
    width: 19px;
    height: 19px;
    appearance: none;
    display: grid;
    place-content: center;
    border: 1px solid color-mix(in srgb, var(--brand) 82%, black);
    border-radius: 4px;
    background: var(--brand);
    opacity: 1;
}

.member-remember-option input::before {
    content: "";
    width: 10px;
    height: 6px;
    border: solid white;
    border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg);
}

.member-login-view .member-login-primary {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 14px;
    font-size: 15px;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 22%, transparent);
}

.member-login-primary i {
    font-size: 17px;
}

.member-login-view .member-login-divider {
    margin: 20px 0 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #75827c;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.member-login-divider::before,
.member-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dfe5e1;
}

.member-login-view .member-login-auth .member-login-switch {
    margin: 0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-color: #dde4df;
    border-radius: 13px;
    background: #fbfcfa;
    font-size: 13px;
}

.member-login-auth .member-login-switch a {
    font-weight: 800;
    text-decoration: none;
}

.member-login-view .member-login-auth .member-login-powered-by {
    margin-top: 28px;
    padding-top: 20px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.member-login-powered-by .member-login-fortunato-logo {
    max-width: 145px;
    max-height: 38px;
}

.member-login-technology-partner {
    padding-left: 20px;
    border-left: 1px solid #d8dfdb;
}

.member-login-powered-by .member-login-studio-logo {
    width: 112px;
    max-height: 34px;
}

@media (max-width: 960px) {
    .member-login-view,
    .member-login-view.mobile-login-view,
    .member-login-view.member-portal-login-view {
        padding: 0;
        display: block;
        overflow-y: auto;
        background: #dce6dc;
    }

    .member-login-view > .member-login-card {
        width: 100%;
        min-height: 100dvh;
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: #dce6dc;
        box-shadow: none;
    }

    .member-login-identity {
        min-height: 365px;
        padding: max(42px, env(safe-area-inset-top)) 28px 82px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-radius: 0;
        text-align: center;
        background: #F5F7F3;
    }

    .member-login-identity .member-login-brand {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .member-login-identity .member-login-brand img {
        max-width: min(190px, 58vw);
        max-height: 105px;
        margin-bottom: 17px;
    }

    .member-login-identity .member-login-brand span {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .member-login-identity .member-login-brand strong {
        max-width: 440px;
        font-size: clamp(23px, 6vw, 31px);
        text-align: center;
    }

    .member-login-identity .member-login-brand::after {
        margin-top: 14px;
    }

    .member-login-identity > p {
        max-width: 310px;
        margin-top: 14px;
        font-size: 14px;
        text-align: center;
    }

    .member-login-auth {
        position: relative;
        width: min(100% - 28px, 560px);
        margin: -48px auto 0;
        padding: 30px clamp(22px, 6vw, 38px) 26px;
        border: 1px solid rgba(224, 230, 225, .9);
        border-radius: 24px 24px 0 0;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 30px rgba(26, 58, 46, .08);
    }

    .member-login-auth .member-login-heading {
        margin-bottom: 24px;
    }

    .member-login-auth .member-login-heading :is(h1, h2) {
        font-size: 26px;
    }

    .member-login-auth .member-login-powered-by {
        margin-top: 28px;
    }
}

@media (max-width: 575.98px) {
    .member-login-identity {
        min-height: 350px;
        padding: max(32px, env(safe-area-inset-top)) 22px 75px;
    }

    .member-login-identity .member-login-brand img {
        max-width: min(160px, 52vw);
        max-height: 88px;
    }

    .member-login-auth {
        width: calc(100% - 20px);
        margin-top: -42px;
        padding: 27px 20px max(22px, env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }

    .member-login-auth .member-login-heading {
        text-align: left;
    }

    .member-login-auth .member-login-heading p {
        font-size: 14px;
    }

    .member-login-auth .form-control {
        min-height: 52px;
    }

    .member-login-options {
        gap: 12px;
        font-size: 12.5px;
    }

    .member-login-primary {
        min-height: 54px;
    }

    .member-login-auth .member-login-powered-by {
        gap: 14px;
    }

    .member-login-powered-by .member-login-fortunato-logo {
        max-width: 128px;
    }

    .member-login-technology-partner {
        padding-left: 14px;
    }

    .member-login-powered-by .member-login-studio-logo {
        width: 92px;
    }
}

@media (max-width: 359.98px) {
    .member-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-login-auth .member-login-powered-by {
        align-items: center;
        flex-direction: column;
    }

    .member-login-technology-partner {
        padding: 10px 0 0;
        border-top: 1px solid #d8dfdb;
        border-left: 0;
    }
}

/* The administration login reuses a few form primitives, but not the Member Portal shell. */
.login-view.admin-login-view .login-card.admin-login-card {
    width: min(100%, 520px);
    min-height: 0;
    padding: clamp(26px, 5vw, 40px);
    display: block;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand) 14%, #dfe6e2);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(19, 58, 45, .13);
}

@media (max-width: 575.98px) {
    .login-view.admin-login-view .login-card.admin-login-card {
        width: 100%;
        min-height: 100dvh;
        padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
