.member-auth {
    position: relative;
    isolation: isolate;
    min-height: 780px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #071f3d;
}

.member-app-body.member-app-body--portal { overflow: hidden; }

.member-portal-shell {
    width: min(100% - 32px, 1180px);
    height: calc(100vh - 32px);
    margin: 16px auto;
    padding: clamp(20px, 4vw, 48px);
    overflow-y: auto;
    color: #172c46;
    background: #eef2f7;
    border-radius: 24px;
}

.member-portal-shell > [hidden] { display: none !important; }
.member-portal-shell .member-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 680px) {
    .member-portal-shell { width: 100%; height: 100vh; margin: 0; padding: 20px 16px; border-radius: 0; }
    .member-portal-shell .member-overview-grid { grid-template-columns: 1fr; }
}

.member-auth__media,
.member-auth__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.member-auth__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.member-auth__overlay {
    z-index: -1;
    background:
        radial-gradient(circle at 18% 20%, rgba(29, 86, 153, .42), transparent 31%),
        linear-gradient(105deg, rgba(4, 21, 42, .98) 0%, rgba(5, 29, 57, .94) 47%, rgba(5, 27, 52, .72) 100%);
}

.member-auth__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 520px);
    align-items: center;
    gap: clamp(50px, 8vw, 130px);
    padding-block: clamp(70px, 9vw, 126px);
}

.member-auth__intro {
    max-width: 700px;
}

.member-auth__back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(48px, 8vw, 92px);
    color: #e6edf6;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.member-auth__back:hover {
    color: #fff;
}

.member-auth__intro h1 {
    max-width: 680px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(2.65rem, 5.4vw, 5.75rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
}

.member-auth__intro > p:not(.eyebrow) {
    max-width: 570px;
    margin: 0;
    color: #d8e3ef;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.member-auth__assurance {
    max-width: 570px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 38px;
    padding-top: 27px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.member-auth__assurance-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #f2c565;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
}

.member-auth__assurance-icon svg {
    width: 23px;
    height: 23px;
}

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

.member-auth__assurance strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: .91rem;
}

.member-auth__assurance small {
    color: #b9c8d8;
    font-size: .78rem;
    line-height: 1.55;
}

.member-auth__card {
    padding: clamp(26px, 4vw, 43px);
    color: #17243a;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    box-shadow: 0 38px 90px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.member-auth__card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 31px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e8ef;
}

.member-auth__mark {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    padding: 7px;
    overflow: hidden;
    background: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 17px;
}

.member-auth__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.member-auth__card-heading p {
    margin: 0 0 3px;
    color: #657188;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.member-auth__card-heading h2 {
    margin: 0;
    color: #071f3d;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.member-login-form {
    display: grid;
    gap: 19px;
}

.member-field {
    display: grid;
    gap: 8px;
}

.member-field > label,
.member-field__label-row label {
    color: #142641;
    font-size: .82rem;
    font-weight: 600;
}

.member-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.member-field__hint {
    color: #717d8f;
    font-size: .7rem;
}

.member-field__control {
    position: relative;
}

.member-field__control input {
    width: 100%;
    min-height: 54px;
    padding: 12px 64px 12px 49px;
    color: #17243a;
    background: #f9fbfd;
    border: 1px solid #bec9d7;
    border-radius: 12px;
    font: inherit;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.member-field__control input:focus {
    background: #fff;
    border-color: #215a9a;
    box-shadow: 0 0 0 4px rgba(33, 90, 154, .13);
}

.member-field__control input[aria-invalid="true"] {
    border-color: #b01e34;
    box-shadow: 0 0 0 4px rgba(176, 30, 52, .1);
}

.member-field__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    color: #66758a;
    pointer-events: none;
}

.member-field__icon svg {
    width: 100%;
    height: 100%;
}

.member-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 48px;
    min-height: 38px;
    padding: 6px 8px;
    transform: translateY(-50%);
    color: #174678;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.member-password-toggle:hover {
    background: #eaf0f6;
}

.member-field__error {
    min-height: 17px;
    color: #a3182e;
    font-size: .73rem;
    line-height: 1.4;
}

.member-submit {
    position: relative;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(135deg, #173f73, #0a2a51);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(7, 31, 61, .2);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.member-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(7, 31, 61, .27);
}

.member-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.member-submit__spinner {
    width: 18px;
    height: 18px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: member-spin .75s linear infinite;
}

.member-submit.is-loading .member-submit__spinner {
    display: block;
}

.member-form-status {
    min-height: 20px;
    padding: 0;
    color: #42526a;
    font-size: .79rem;
    line-height: 1.5;
}

.member-form-status.is-error,
.member-form-status.is-success {
    padding: 11px 13px;
    border-radius: 9px;
}

.member-form-status.is-error {
    color: #8d1428;
    background: #fff0f2;
    border: 1px solid #f1c3cb;
}

.member-form-status.is-success {
    color: #195e43;
    background: #eaf8f1;
    border: 1px solid #b8e2ce;
}

.member-auth__support {
    margin-top: 25px;
    padding: 19px;
    background: #f1f5f9;
    border-radius: 12px;
}

.member-auth__support h3 {
    margin: 0 0 5px;
    color: #142641;
    font-size: .86rem;
}

.member-auth__support p {
    margin: 0 0 10px;
    color: #607087;
    font-size: .76rem;
    line-height: 1.55;
}

.member-auth__support a {
    color: #174678;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.member-auth__privacy {
    margin: 20px 0 0;
    color: #748094;
    font-size: .68rem;
    line-height: 1.5;
    text-align: center;
}

.member-portal-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 87% 22%, rgba(67, 125, 190, .28), transparent 28%),
        linear-gradient(118deg, #061d39, #0b315e 72%, #103c70);
}

.member-portal-hero::after {
    content: "PCG";
    position: absolute;
    top: 50%;
    right: clamp(-28px, 2vw, 48px);
    transform: translateY(-53%);
    color: rgba(255, 255, 255, .045);
    font-family: Inter, sans-serif;
    font-size: clamp(9rem, 22vw, 21rem);
    font-weight: 800;
    letter-spacing: -.1em;
    line-height: 1;
    pointer-events: none;
}

.member-portal-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-block: clamp(58px, 8vw, 98px) clamp(45px, 6vw, 72px);
}

.member-portal-hero__copy {
    max-width: 780px;
}

.member-portal-hero h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.02;
}

.member-portal-hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 0;
    color: #d4e0ec;
    font-size: clamp(.96rem, 1.4vw, 1.12rem);
}

.member-portal-hero__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #f4f7fb;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.member-portal-hero__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #68d0a7;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(104, 208, 167, .12);
}

.member-workspace {
    background: #f3f6fa;
}

.member-workspace__inner {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-block: clamp(34px, 5vw, 70px) clamp(70px, 8vw, 120px);
}

.member-sidebar {
    position: sticky;
    top: 108px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(7, 31, 61, .07);
}

.member-sidebar__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 21px;
    border-bottom: 1px solid #e7ebf0;
}

.member-sidebar__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #c11f37, #931428);
    border-radius: 13px;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .04em;
}

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

.member-sidebar__identity strong {
    max-width: 158px;
    overflow: hidden;
    color: #102744;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-sidebar__identity small {
    margin-top: 2px;
    color: #738095;
    font-size: .68rem;
}

.member-sidebar__nav {
    display: grid;
    gap: 4px;
    padding: 13px;
}

.member-sidebar__nav a,
.member-sidebar__disabled {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #44546b;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.member-sidebar__nav a svg,
.member-sidebar__disabled svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.member-sidebar__nav a:hover,
.member-sidebar__nav a[aria-current="page"] {
    color: #123d70;
    background: #eaf1f8;
}

.member-sidebar__disabled {
    color: #929eae;
    cursor: not-allowed;
}

.member-sidebar__disabled > span {
    display: grid;
}

.member-sidebar__disabled small {
    margin-top: 1px;
    font-size: .6rem;
    font-weight: 500;
}

.member-sidebar__help {
    margin: 5px 13px 13px;
    padding: 16px;
    background: #fff5e2;
    border: 1px solid #f0dfb9;
    border-radius: 11px;
}

.member-sidebar__help strong {
    color: #53380d;
    font-size: .76rem;
}

.member-sidebar__help p {
    margin: 5px 0 10px;
    color: #735d36;
    font-size: .68rem;
    line-height: 1.5;
}

.member-sidebar__help a {
    color: #7b4211;
    font-size: .68rem;
    font-weight: 700;
}

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

.member-main {
    min-width: 0;
    display: grid;
    gap: 25px;
}

.member-section {
    scroll-margin-top: 125px;
}

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

.member-section__heading h2 {
    margin: 0 0 4px;
    color: #0b284b;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.member-section__heading p {
    margin: 0;
    color: #6d798b;
    font-size: .83rem;
}

.member-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.member-metric {
    position: relative;
    min-height: 157px;
    overflow: hidden;
    padding: 21px;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
    box-shadow: 0 11px 28px rgba(7, 31, 61, .055);
}

.member-metric::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 90px;
    height: 90px;
    background: rgba(21, 66, 116, .05);
    border-radius: 50%;
}

.member-metric__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: #154a82;
    background: #e9f1f8;
    border-radius: 11px;
}

.member-metric__icon svg {
    width: 21px;
    height: 21px;
}

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

.member-metric span {
    color: #718095;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-metric strong {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin-top: 5px;
    overflow: hidden;
    color: #102744;
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-metric small {
    margin-top: 3px;
    color: #7d8999;
    font-size: .68rem;
}

.member-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 17px;
    padding: 17px 19px;
    color: #5d481f;
    background: #fff8e9;
    border: 1px solid #eeddb7;
    border-radius: 13px;
}

.member-notice svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #a46b19;
}

.member-notice strong {
    display: block;
    margin-bottom: 3px;
    color: #533b14;
    font-size: .79rem;
}

.member-notice p {
    margin: 0;
    font-size: .75rem;
    line-height: 1.55;
}

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

.member-action {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 15px;
    color: #173c6b;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.member-action:hover {
    transform: translateY(-2px);
    border-color: #aabed3;
    box-shadow: 0 10px 24px rgba(7, 31, 61, .07);
}

.member-action span:first-child {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #123f72;
    border-radius: 10px;
}

.member-action svg {
    width: 20px;
    height: 20px;
}

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

.member-availability__card {
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 15px;
}

.member-availability__card span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 8px;
    color: #795115;
    background: #fff2d6;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.member-availability__card h3 {
    margin: 0 0 8px;
    color: #122b4d;
    font-size: 1rem;
}

.member-availability__card p {
    margin: 0;
    color: #6d798b;
    font-size: .76rem;
    line-height: 1.6;
}

.member-profile-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(7, 31, 61, .06);
}

.member-profile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
    background: linear-gradient(135deg, #f9fbfd, #eef3f8);
    border-bottom: 1px solid #dfe6ee;
}

.member-profile-card__header h2 {
    margin: 0 0 7px;
    color: #0b284b;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.member-profile-card__header p {
    max-width: 690px;
    margin: 0;
    color: #68768a;
    font-size: .79rem;
    line-height: 1.6;
}

.member-profile-card__status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #1b5f45;
    background: #e9f7f0;
    border: 1px solid #c2e7d5;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 700;
}

.member-profile-card__status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #2d936d;
    border-radius: 50%;
}

.member-profile-form {
    padding: clamp(22px, 4vw, 34px);
}

.member-form-section + .member-form-section {
    margin-top: 34px;
    padding-top: 32px;
    border-top: 1px solid #e2e7ed;
}

.member-form-section__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 21px;
}

.member-form-section__number {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #123f72;
    border-radius: 9px;
    font-size: .66rem;
    font-weight: 800;
}

.member-form-section__title h3 {
    margin: 0 0 3px;
    color: #102744;
    font-size: 1rem;
}

.member-form-section__title p {
    margin: 0;
    color: #788496;
    font-size: .71rem;
}

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

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

.member-input {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.member-input--full {
    grid-column: 1 / -1;
}

.member-input label {
    color: #253a58;
    font-size: .76rem;
    font-weight: 600;
}

.member-input label small {
    color: #7b8798;
    font-weight: 400;
}

.member-input input,
.member-input select,
.member-input textarea {
    width: 100%;
    min-height: 49px;
    padding: 11px 13px;
    color: #17243a;
    background: #fbfcfe;
    border: 1px solid #bdc8d6;
    border-radius: 10px;
    font: inherit;
    font-size: .82rem;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.member-input textarea {
    min-height: 104px;
    resize: vertical;
}

.member-input input:focus,
.member-input select:focus,
.member-input textarea:focus {
    background: #fff;
    border-color: #215a9a;
    box-shadow: 0 0 0 4px rgba(33, 90, 154, .11);
}

.member-input[hidden] {
    display: none !important;
}

.member-profile-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 35px;
    padding-top: 27px;
    border-top: 1px solid #e2e7ed;
}

.member-profile-form__actions .member-form-status {
    max-width: 540px;
    margin-right: auto;
}

.member-profile-form__actions .member-submit {
    min-width: 210px;
    flex: 0 0 auto;
}

.member-access-required {
    padding-block: clamp(70px, 10vw, 135px);
    background: #f3f6fa;
}

.member-access-required__card {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(30px, 6vw, 60px);
    text-align: center;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(7, 31, 61, .09);
}

.member-access-required__icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    color: #fff;
    background: #0d396a;
    border-radius: 19px;
}

.member-access-required__icon svg {
    width: 31px;
    height: 31px;
}

.member-access-required h1 {
    margin: 0 0 13px;
    color: #0b284b;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -.045em;
}

.member-access-required p {
    max-width: 580px;
    margin: 0 auto 25px;
    color: #68768a;
    line-height: 1.7;
}

.member-access-required__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
}

@keyframes member-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
    .member-auth__layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        gap: 45px;
    }

    .member-workspace__inner {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 20px;
    }

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

    .member-overview-grid .member-metric:last-child,
    .member-actions .member-action:last-child {
        grid-column: 1 / -1;
    }

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

@media (max-width: 820px) {
    .member-auth__layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-block: 54px 70px;
    }

    .member-auth__intro {
        max-width: 620px;
    }

    .member-auth__back {
        margin-bottom: 45px;
    }

    .member-auth__intro h1 {
        max-width: 600px;
        font-size: clamp(2.55rem, 9vw, 4.7rem);
    }

    .member-auth__card {
        width: min(100%, 560px);
    }

    .member-portal-hero__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-workspace__inner {
        position: relative;
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .member-nav-toggle {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 11px 15px;
        color: #fff;
        background: #0b315e;
        border: 0;
        border-radius: 11px;
        font: inherit;
        font-size: .8rem;
        font-weight: 700;
        cursor: pointer;
    }

    .member-nav-toggle__icon {
        width: 20px;
        display: grid;
        gap: 4px;
    }

    .member-nav-toggle__icon span {
        width: 100%;
        height: 2px;
        display: block;
        background: currentColor;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    .member-nav-toggle[aria-expanded="true"] .member-nav-toggle__icon span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .member-nav-toggle[aria-expanded="true"] .member-nav-toggle__icon span:nth-child(2) {
        opacity: 0;
    }

    .member-nav-toggle[aria-expanded="true"] .member-nav-toggle__icon span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .member-sidebar {
        position: static;
        max-height: 0;
        margin-top: -13px;
        overflow: hidden;
        opacity: 0;
        border-width: 0;
        transform: translateY(-8px);
        transition: max-height .3s ease, opacity .2s ease, transform .2s ease, margin .2s ease, border-width .2s ease;
    }

    .member-sidebar.is-open {
        max-height: 620px;
        margin-top: -12px;
        opacity: 1;
        border-width: 1px;
        transform: translateY(0);
    }

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

@media (max-width: 620px) {
    .member-auth {
        min-height: auto;
    }

    .member-auth__layout {
        padding-block: 40px 54px;
    }

    .member-auth__intro h1 {
        font-size: clamp(2.35rem, 13vw, 3.8rem);
    }

    .member-auth__assurance {
        margin-top: 28px;
    }

    .member-auth__card {
        border-radius: 18px;
    }

    .member-portal-hero__inner {
        padding-block: 48px 41px;
    }

    .member-overview-grid,
    .member-actions,
    .member-availability,
    .member-form-grid,
    .member-form-grid--three {
        grid-template-columns: 1fr;
    }

    .member-overview-grid .member-metric:last-child,
    .member-actions .member-action:last-child,
    .member-input--full {
        grid-column: auto;
    }

    .member-profile-card__header,
    .member-profile-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .member-profile-card__status {
        width: fit-content;
    }

    .member-profile-form__actions .member-submit {
        width: 100%;
        min-width: 0;
    }

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

@media (max-width: 390px) {
    .member-auth__card {
        padding: 23px 18px;
    }

    .member-auth__mark {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .member-profile-form,
    .member-profile-card__header {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-auth *,
    .member-workspace * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Member application shell */
.member-app-body {
    --member-header-height: 78px;
    --member-sidebar-width: 282px;
    margin: 0;
    overflow: auto;
    color: #17263a;
    background: #eef2f7;
    font-family: Poppins, sans-serif;
}

.member-app-body * { box-sizing: border-box; }
.member-app { min-height: 100vh; }

.member-app-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--member-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 3vw, 42px);
    color: #fff;
    background: linear-gradient(110deg, #061b35 0%, #0a3568 68%, #10467f 100%);
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 30px rgba(4,21,42,.18);
}

.member-app-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px;
    height: 2px;
    background: linear-gradient(90deg, #e34b36, #f4ad38 32%, transparent 75%);
}

.member-app-header__brand-group,
.member-app-header__actions,
.member-app-brand,
.member-account-chip { display: flex; align-items: center; }
.member-app-header__brand-group { gap: 13px; min-width: 0; }
.member-app-header__actions { gap: 13px; }

.member-app-brand {
    min-width: 0;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.member-app-brand__mark {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    padding: 5px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.member-app-brand__mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.member-app-brand strong,
.member-app-brand small,
.member-account-chip strong,
.member-account-chip small { display: block; }
.member-app-brand strong { font: 700 .82rem/1.25 Inter, sans-serif; letter-spacing: -.01em; }
.member-app-brand small { margin-top: 3px; color: #abc5df; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }

.member-app-header__site-link {
    padding: 9px 12px;
    color: #d7e6f4;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
}
.member-app-header__site-link:hover { color: #fff; background: rgba(255,255,255,.08); }

.member-account-chip {
    gap: 10px;
    min-width: 0;
    padding: 7px 11px 7px 7px;
    color: #fff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    text-decoration: none;
    backdrop-filter: blur(12px);
}
.member-account-chip:hover,
.member-account-chip[aria-current="page"] { background: rgba(255,255,255,.15); }
.member-account-chip__avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #e34b36, #b82032);
    border-radius: 10px;
    font: 800 .69rem/1 Inter, sans-serif;
}
.member-account-chip__avatar svg { width: 20px; height: 20px; }
.member-account-chip small { color: #abc5df; font-size: .56rem; }
.member-account-chip strong { max-width: 145px; overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }

.member-app-header__menu {
    width: 43px;
    height: 43px;
    display: none;
    place-items: center;
    padding: 11px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 11px;
    cursor: pointer;
}
.member-app-header__menu span:not(.sr-only) { width: 19px; height: 2px; display: block; margin: 2px auto; background: currentColor; border-radius: 2px; transition: .2s ease; }
.member-app-header__menu[aria-expanded="true"] span:nth-last-child(3) { transform: translateY(6px) rotate(45deg); }
.member-app-header__menu[aria-expanded="true"] span:nth-last-child(2) { opacity: 0; }
.member-app-header__menu[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.member-app-sidebar {
    position: fixed;
    inset: var(--member-header-height) auto 0 0;
    z-index: 80;
    width: var(--member-sidebar-width);
    overflow-x: hidden;
    overflow-y: auto;
    color: #d8e5f2;
    background:
        radial-gradient(circle at 10% 8%, rgba(43,104,166,.3), transparent 26%),
        linear-gradient(180deg, #071f3d 0%, #061a33 100%);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 14px 0 42px rgba(6,25,49,.12);
    scrollbar-width: thin;
    scrollbar-color: #345b83 transparent;
}

.member-app-sidebar .member-sidebar__identity { padding: 21px 20px; border-bottom-color: rgba(255,255,255,.08); }
.member-app-sidebar .member-sidebar__avatar { background: linear-gradient(145deg, #e34b36, #a71c30); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.member-app-sidebar .member-sidebar__avatar svg { width: 22px; height: 22px; }
.member-app-sidebar .member-sidebar__identity strong { color: #fff; }
.member-app-sidebar .member-sidebar__identity small { color: #8fabca; }
.member-app-sidebar .member-sidebar__nav { grid-template-columns: 1fr; gap: 3px; padding: 14px 13px 19px; }
.member-sidebar__label {
    margin: 19px 11px 7px;
    color: #6685a6;
    font: 800 .57rem/1.2 Inter, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.member-sidebar__label:first-child { margin-top: 5px; }
.member-app-sidebar .member-sidebar__nav a {
    position: relative;
    min-height: 44px;
    color: #b7c9dc;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .72rem;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.member-app-sidebar .member-sidebar__nav a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 5px;
    height: 5px;
    background: transparent;
    border-radius: 50%;
    transform: translateY(-50%);
}
.member-app-sidebar .member-sidebar__nav a:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.member-app-sidebar .member-sidebar__nav a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(100deg, rgba(33,92,151,.75), rgba(25,70,117,.6));
    border-color: rgba(93,151,207,.24);
    box-shadow: inset 3px 0 #e34b36, 0 8px 20px rgba(0,0,0,.12);
}
.member-app-sidebar .member-sidebar__nav a[aria-current="page"]::after { background: #f4ad38; box-shadow: 0 0 0 4px rgba(244,173,56,.12); }
.member-app-sidebar .member-sidebar__nav svg { color: #7fa4c8; }
.member-app-sidebar .member-sidebar__nav a[aria-current="page"] svg { color: #fff; }
.member-app-sidebar .member-sidebar__help { color: #c4d4e4; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.09); }
.member-app-sidebar .member-sidebar__help strong { color: #fff; }
.member-app-sidebar .member-sidebar__help p { color: #93aac2; }
.member-app-sidebar .member-sidebar__help a { color: #f4b950; }

.member-app-overlay { display: none; }

.member-app-main {
    height: 100vh;
    margin-left: var(--member-sidebar-width);
    padding-top: var(--member-header-height);
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 94% 4%, rgba(32,89,151,.07), transparent 23%),
        #eef2f7;
    scroll-behavior: smooth;
}
.member-app-main:focus { outline: 0; }
.member-app-content { width: min(100%, 1540px); min-height: 100%; margin-inline: auto; padding: clamp(27px, 4vw, 54px); }

.member-page { animation: member-page-enter .34s ease both; }
@keyframes member-page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.member-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.member-page-heading__eyebrow,
.member-panel__heading p,
.member-panel--navy > p,
.member-church-card p { margin: 0 0 7px; color: #d44735; font: 800 .61rem/1.2 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.member-page-heading h1 { margin: 0 0 8px; color: #09284c; font: 700 clamp(1.8rem, 3.5vw, 3rem)/1.08 Inter, sans-serif; letter-spacing: -.045em; }
.member-page-heading > div > p:last-child { max-width: 760px; margin: 0; color: #6b798b; font-size: .82rem; line-height: 1.65; }
.member-status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #236047; background: #e8f7ef; border: 1px solid #bfe5d1; border-radius: 999px; font-size: .63rem; font-weight: 700; }
.member-status-pill i { width: 7px; height: 7px; background: #31a476; border-radius: 50%; box-shadow: 0 0 0 4px rgba(49,164,118,.12); }
.member-status-pill--blue { color: #24598a; background: #e9f2fb; border-color: #c9ddf0; }
.member-status-pill--blue i { background: #2c70ad; box-shadow: 0 0 0 4px rgba(44,112,173,.12); }

.member-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member-metric { min-height: 172px; padding: 22px; border-color: #dce4ed; box-shadow: 0 13px 30px rgba(8,34,67,.055); }
.member-metric--accent { color: #fff; background: linear-gradient(145deg, #0b315e, #15528d); border-color: transparent; }
.member-metric--accent .member-metric__icon { color: #fff; background: rgba(255,255,255,.12); }
.member-metric--accent span,
.member-metric--accent small { color: #b9cee2; }
.member-metric--accent strong { color: #fff; }
.member-metric strong { font-size: 1.12rem; }

.member-dashboard-grid,
.member-settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 18px; margin-top: 19px; }
.member-panel { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 30px); background: #fff; border: 1px solid #dce4ed; border-radius: 18px; box-shadow: 0 14px 34px rgba(8,34,67,.055); }
.member-panel__heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.member-panel__heading h2,
.member-panel--navy h2 { margin: 0; color: #102c4f; font: 700 1.12rem/1.3 Inter, sans-serif; }
.member-panel--navy { color: #bed0e1; background: linear-gradient(145deg, #071f3d, #0b3565); border-color: transparent; }
.member-panel--navy h2 { max-width: 330px; color: #fff; font-size: 1.38rem; }
.member-panel--navy > p:not(:first-of-type) { position: relative; z-index: 1; margin: 15px 0 20px; font-size: .75rem; line-height: 1.65; }
.member-panel--navy > a { position: relative; z-index: 1; color: #f4bd57; font-size: .7rem; font-weight: 700; text-decoration: none; }
.member-panel__decor { position: absolute; right: -16px; bottom: -28px; color: rgba(255,255,255,.045); font: 800 6.5rem/1 Inter, sans-serif; letter-spacing: -.09em; }

.member-quick-actions { display: grid; gap: 10px; }
.member-quick-actions a { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 67px; padding: 11px 14px; color: #173a64; background: #f8fafc; border: 1px solid #e1e7ee; border-radius: 13px; text-decoration: none; transition: .18s ease; }
.member-quick-actions a:hover { background: #fff; border-color: #aebfd1; box-shadow: 0 9px 22px rgba(8,34,67,.07); transform: translateY(-1px); }
.member-quick-actions a > span { width: 39px; height: 39px; display: grid; place-items: center; color: #d44735; background: #fff0ee; border-radius: 10px; font: 800 .62rem/1 Inter, sans-serif; }
.member-quick-actions strong,
.member-quick-actions small { display: block; }
.member-quick-actions strong { font-size: .77rem; }
.member-quick-actions small { margin-top: 3px; color: #7a8797; font-size: .63rem; }
.member-quick-actions i { color: #8aa0b8; font-style: normal; }

.member-callout { display: flex; align-items: flex-start; gap: 14px; margin: 20px 0; padding: 18px 20px; color: #624819; background: #fff8e7; border: 1px solid #edddb8; border-radius: 14px; }
.member-callout > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; color: #fff; background: #c68421; border-radius: 9px; font-weight: 800; }
.member-callout strong { display: block; margin-bottom: 3px; color: #533b14; font-size: .77rem; }
.member-callout p { margin: 0; font-size: .7rem; line-height: 1.6; }
.member-callout--info { color: #365979; background: #edf5fc; border-color: #caddef; }
.member-callout--info > span { background: #286da9; }
.member-callout--info strong { color: #174d7c; }

.member-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.member-detail-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-detail-grid article { min-height: 112px; padding: 20px; background: #fff; border: 1px solid #dce4ed; border-radius: 15px; box-shadow: 0 10px 24px rgba(8,34,67,.045); }
.member-detail-grid span,
.member-detail-grid strong,
.member-detail-grid small { display: block; }
.member-detail-grid span { color: #738197; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.member-detail-grid strong { margin-top: 9px; color: #173758; font-size: .86rem; line-height: 1.45; }
.member-detail-grid small { margin-top: 4px; color: #8490a0; font-size: .64rem; }

.member-church-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 17px; padding: clamp(22px, 4vw, 34px); color: #fff; background: linear-gradient(125deg, #071f3d, #104b85); border-radius: 19px; box-shadow: 0 20px 42px rgba(7,31,61,.16); }
.member-church-card__mark { width: 70px; height: 70px; display: grid; place-items: center; color: #f4bd57; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 19px; }
.member-church-card__mark svg { width: 34px; height: 34px; }
.member-church-card p { color: #f2a43b; }
.member-church-card h2 { margin: 0 0 5px; color: #fff; font: 700 clamp(1.2rem, 2.5vw, 1.8rem)/1.2 Inter, sans-serif; }
.member-church-card div > span { color: #abc2d9; font-size: .72rem; }
.member-church-card > a { padding: 10px 13px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-size: .66rem; font-weight: 700; text-decoration: none; }

.member-empty-state { min-height: 430px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: clamp(32px, 7vw, 75px); text-align: center; background: #fff; border: 1px solid #dce4ed; border-radius: 20px; box-shadow: 0 16px 40px rgba(8,34,67,.055); }
.member-empty-state--compact { min-height: 350px; border-radius: 0 0 18px 18px; }
.member-empty-state__icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; color: #245f98; background: #eaf3fb; border-radius: 19px; }
.member-empty-state__icon--danger { color: #b52c38; background: #fff0f1; }
.member-empty-state__icon svg { width: 31px; height: 31px; }
.member-dependency-badge { display: inline-flex; margin-bottom: 14px; padding: 6px 9px; color: #80531a; background: #fff1d7; border: 1px solid #f0ddb6; border-radius: 999px; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.member-empty-state h2 { max-width: 650px; margin: 0 0 10px; color: #102c4f; font: 700 clamp(1.3rem, 2.7vw, 2rem)/1.25 Inter, sans-serif; }
.member-empty-state p { max-width: 700px; margin: 0; color: #6d7a8d; font-size: .78rem; line-height: 1.7; }
.member-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 23px; }
.member-primary-action,
.member-secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 15px; border-radius: 10px; font-size: .68rem; font-weight: 700; text-decoration: none; }
.member-primary-action { color: #fff; background: #0f467e; box-shadow: 0 8px 18px rgba(15,70,126,.18); }
.member-secondary-action { color: #214c78; background: #f1f5f9; border: 1px solid #d3dee9; }

.member-inline-empty { padding: 21px; color: #69778a; background: #f8fafc; border: 1px dashed #cdd8e4; border-radius: 13px; }
.member-inline-empty strong { display: block; margin-bottom: 5px; color: #23415f; font-size: .76rem; }
.member-inline-empty p { margin: 0; font-size: .69rem; line-height: 1.6; }
.member-inline-empty a { display: inline-block; margin-top: 11px; color: #1c5f9b; font-size: .68rem; font-weight: 700; }

.member-resource-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 200px 200px; gap: 11px; padding: 18px; background: #fff; border: 1px solid #dce4ed; border-bottom: 0; border-radius: 18px 18px 0 0; }
.member-resource-toolbar input,
.member-resource-toolbar select { width: 100%; min-height: 45px; padding: 10px 12px; color: #7e8b9a; background: #f4f7fa; border: 1px solid #d5dfe9; border-radius: 10px; font: inherit; font-size: .72rem; }
.member-resource-toolbar :disabled { cursor: not-allowed; opacity: .72; }

.member-settings-list { margin: 0; }
.member-settings-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 15px; padding: 14px 0; border-top: 1px solid #e7ecf1; }
.member-settings-list dt { color: #788597; font-size: .68rem; }
.member-settings-list dd { margin: 0; color: #1d3a59; font-size: .73rem; font-weight: 600; overflow-wrap: anywhere; }

.member-profile-card { border-radius: 19px; box-shadow: 0 16px 42px rgba(8,34,67,.065); }
.member-profile-card__header { background: linear-gradient(135deg, #fff, #f2f6fa); }
.member-form-grid--spaced { margin-top: 19px; }
.member-input input,
.member-input select,
.member-input textarea { font-family: Poppins, sans-serif; }
.member-submit { font-family: Poppins, sans-serif; }

.member-app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 22px; color: #8994a3; border-top: 1px solid #d5dde6; font-size: .61rem; }
.member-access-required__brand { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; padding: 7px; background: #fff; border: 1px solid #dfe6ee; border-radius: 17px; box-shadow: 0 10px 25px rgba(7,31,61,.08); }
.member-access-required__brand img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 1240px) {
    .member-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-detail-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .member-app-body { --member-header-height: 70px; }
    .member-app-header__menu { display: block; }
    .member-app-sidebar { width: min(86vw, 320px); transform: translateX(-105%); transition: transform .27s ease; }
    .member-app-sidebar.is-open { transform: translateX(0); }
    .member-app-overlay { position: fixed; inset: var(--member-header-height) 0 0; z-index: 70; display: block; visibility: hidden; opacity: 0; background: rgba(4,18,35,.58); border: 0; cursor: pointer; transition: opacity .24s ease, visibility .24s ease; backdrop-filter: blur(3px); }
    .member-app-sidebar.is-open + .member-app-overlay { visibility: visible; opacity: 1; }
    .member-app-main { margin-left: 0; }
    .member-dashboard-grid,
    .member-settings-grid { grid-template-columns: 1fr; }
    .member-app-header__site-link { display: none; }
}

@media (max-width: 720px) {
    .member-app-content { padding: 24px 18px 34px; }
    .member-page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .member-overview-grid,
    .member-detail-grid,
    .member-detail-grid--three,
    .member-form-grid,
    .member-form-grid--three,
    .member-resource-toolbar { grid-template-columns: 1fr; }
    .member-input--full { grid-column: auto; }
    .member-resource-toolbar { border-bottom: 1px solid #dce4ed; border-radius: 16px; }
    .member-empty-state--compact { margin-top: 14px; border-radius: 16px; }
    .member-church-card { grid-template-columns: 58px minmax(0, 1fr); }
    .member-church-card__mark { width: 58px; height: 58px; }
    .member-church-card > a { grid-column: 1 / -1; width: 100%; text-align: center; }
    .member-profile-card__header,
    .member-profile-form__actions { align-items: stretch; flex-direction: column; }
    .member-profile-form__actions .member-submit { width: 100%; min-width: 0; }
    .member-app-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
    .member-app-header { padding-inline: 12px; }
    .member-app-brand__mark { width: 43px; height: 43px; flex-basis: 43px; }
    .member-app-brand strong { font-size: .7rem; }
    .member-app-brand small { font-size: .54rem; }
    .member-account-chip { padding-right: 7px; }
    .member-account-chip > span:last-child { display: none; }
    .member-page-heading h1 { font-size: clamp(1.65rem, 9vw, 2.3rem); }
    .member-overview-grid { grid-template-columns: 1fr; }
    .member-metric { min-height: 148px; }
    .member-callout { flex-direction: column; }
    .member-profile-form,
    .member-profile-card__header { padding-inline: 17px; }
    .member-empty-state { min-height: 0; padding: 36px 20px; }
    .member-settings-list div { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 350px) {
    .member-app-brand strong { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .member-app-content { padding-inline: 13px; }
    .member-account-chip__avatar { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .member-page { animation: none; }
    .member-app-main { scroll-behavior: auto; }
}

/* Member password recovery */
.member-recovery-body {
    min-width: 320px;
    margin: 0;
    color: #17243a;
    background: #071f3d;
    font-family: Poppins, sans-serif;
}

.member-auth--recovery {
    min-height: 100vh;
}

.member-auth--recovery .member-auth__overlay {
    background:
        radial-gradient(circle at 12% 16%, rgba(34, 98, 169, .44), transparent 31%),
        radial-gradient(circle at 82% 83%, rgba(203, 69, 45, .18), transparent 25%),
        linear-gradient(108deg, rgba(4, 21, 42, .985) 0%, rgba(6, 32, 62, .95) 54%, rgba(5, 27, 52, .79) 100%);
}

.member-recovery-shell {
    width: min(calc(100% - 48px), 1240px);
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
    align-items: center;
    gap: clamp(52px, 7vw, 112px);
    margin-inline: auto;
    padding-block: clamp(42px, 6vw, 82px);
}

.member-recovery-intro {
    max-width: 650px;
}

.member-recovery-intro .member-auth__back {
    margin-bottom: clamp(27px, 4vw, 46px);
}

.member-recovery-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(30px, 5vw, 60px);
    color: #fff;
    text-decoration: none;
}

.member-recovery-brand > span {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    display: grid;
    place-items: center;
    padding: 7px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
}

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

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

.member-recovery-brand strong {
    font-family: Inter, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.member-recovery-brand small {
    margin-top: 3px;
    color: #aabed2;
    font-family: Poppins, sans-serif;
    font-size: .66rem;
    font-weight: 500;
}

.member-recovery-intro .eyebrow {
    color: #ff735b;
}

.member-recovery-intro h1 {
    max-width: 630px;
    margin: 0 0 20px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: clamp(2.45rem, 4.65vw, 4.85rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.02;
}

.member-recovery-intro__lead {
    max-width: 585px;
    margin: 0;
    color: #cad8e7;
    font-size: clamp(.89rem, 1.1vw, 1rem);
    line-height: 1.75;
}

.member-recovery-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: clamp(35px, 5vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.member-recovery-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #7991aa;
}

.member-recovery-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(100% - 5px);
    width: 17px;
    height: 1px;
    background: rgba(255, 255, 255, .18);
}

.member-recovery-steps li > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #9db0c3;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    font: 700 .72rem Inter, sans-serif;
}

.member-recovery-steps strong,
.member-recovery-steps small {
    display: block;
}

.member-recovery-steps strong {
    overflow: hidden;
    color: inherit;
    font: 600 .66rem Inter, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-recovery-steps small {
    display: none;
    margin-top: 2px;
    color: #7e94a9;
    font-size: .56rem;
    line-height: 1.4;
}

.member-recovery-steps .is-current,
.member-recovery-steps .is-complete {
    color: #fff;
}

.member-recovery-steps .is-current > span {
    color: #fff;
    background: #c74432;
    border-color: #ea735f;
    box-shadow: 0 0 0 5px rgba(199, 68, 50, .17), 0 10px 25px rgba(0, 0, 0, .24);
}

.member-recovery-steps .is-complete > span {
    color: #092544;
    background: #f2c565;
    border-color: #f2c565;
}

.member-recovery-card {
    position: relative;
    overflow: hidden;
    padding: clamp(25px, 3.4vw, 42px);
}

.member-recovery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0f4b85 0 72%, #d04c36 72% 100%);
}

.member-recovery-card__intro {
    margin: -12px 0 24px;
    color: #647287;
    font-size: .78rem;
    line-height: 1.65;
}

.member-field__hint--link {
    color: #174f87;
    font-weight: 700;
    text-decoration: none;
}

.member-field__hint--link:hover,
.member-field__hint--link:focus-visible {
    color: #b73729;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-auth__support-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 18px;
}

.member-auth__support-actions a:last-child {
    color: #68788e;
    font-weight: 600;
}

.member-form-status.is-pending {
    padding: 11px 13px;
    color: #75520a;
    background: #fff8e4;
    border: 1px solid #ead9a7;
    border-radius: 9px;
}

.member-auth__connection-note {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 11px;
    margin-top: 23px;
    padding: 14px;
    color: #53657b;
    background: #f2f6fa;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
}

.member-auth__connection-note > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #164a80;
    border-radius: 50%;
    font: 700 .74rem Inter, sans-serif;
}

.member-auth__connection-note p {
    margin: 0;
    font-size: .7rem;
    line-height: 1.65;
}

.member-auth__connection-note strong {
    display: block;
    margin-bottom: 2px;
    color: #223b57;
}

.member-recovery-alt {
    margin: 22px 0 0;
    color: #6c798b;
    font-size: .75rem;
    text-align: center;
}

.member-recovery-alt a {
    color: #174f87;
    font-weight: 700;
}

.member-password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: -2px 0 2px;
    padding: 14px;
    color: #748196;
    background: #f7f9fb;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    list-style: none;
}

.member-password-rules li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .66rem;
    line-height: 1.45;
}

.member-password-rules li > span {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    color: #98a5b4;
    background: #e7ecf1;
    border-radius: 50%;
    font-size: .55rem;
}

.member-password-rules li.is-met {
    color: #176044;
}

.member-password-rules li.is-met > span {
    color: #fff;
    background: #23906a;
}

.member-recovery-state {
    padding: 2px 0 8px;
    text-align: center;
}

.member-recovery-state__icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 19px;
    color: #175690;
    background: linear-gradient(145deg, #f0f6fb, #e2edf7);
    border: 1px solid #ccdae7;
    border-radius: 23px;
    box-shadow: 0 16px 30px rgba(15, 75, 133, .13);
}

.member-recovery-state__icon svg {
    width: 37px;
    height: 37px;
}

.member-recovery-state--success .member-recovery-state__icon {
    color: #197052;
    background: linear-gradient(145deg, #eef9f4, #dff2e9);
    border-color: #bee3d1;
}

.member-recovery-state--danger .member-recovery-state__icon {
    color: #a52b37;
    background: linear-gradient(145deg, #fff4f5, #f9e3e6);
    border-color: #edc4ca;
}

.member-recovery-preview-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    color: #9a3428;
    background: #fff0ec;
    border: 1px solid #f0c9c1;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.member-recovery-state h3 {
    margin: 0 0 9px;
    color: #102b49;
    font: 700 clamp(1.04rem, 2vw, 1.24rem) Inter, sans-serif;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.member-recovery-state p {
    max-width: 430px;
    margin: 0 auto;
    color: #657389;
    font-size: .75rem;
    line-height: 1.7;
}

.member-recovery-help {
    margin-top: 21px;
    padding: 17px 19px;
    color: #5d6c80;
    background: #f6f8fb;
    border: 1px solid #e3e8ef;
    border-radius: 13px;
}

.member-recovery-help strong {
    display: block;
    margin-bottom: 8px;
    color: #253e5a;
    font-size: .74rem;
}

.member-recovery-help ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    font-size: .69rem;
    line-height: 1.55;
}

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

.member-recovery-actions .member-primary-action,
.member-recovery-actions .member-secondary-action {
    min-height: 48px;
    border-radius: 11px;
}

.member-submit--link {
    width: 100%;
    margin-top: 24px;
    text-decoration: none;
}

.member-recovery-card__footer {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    color: #7d8998;
    border-top: 1px solid #e4e9ef;
}

.member-recovery-card__footer > span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    color: #174f87;
    background: #edf3f8;
    border-radius: 9px;
}

.member-recovery-card__footer svg {
    width: 17px;
    height: 17px;
}

.member-recovery-card__footer p {
    margin: 0;
    font-size: .63rem;
    line-height: 1.55;
}

@media (min-width: 1180px) {
    .member-recovery-steps small { display: block; }
}

@media (max-width: 900px) {
    .member-auth--recovery { align-items: stretch; }
    .member-recovery-shell {
        width: min(calc(100% - 40px), 620px);
        grid-template-columns: 1fr;
        gap: 31px;
        padding-block: 32px 44px;
    }
    .member-recovery-intro { max-width: none; }
    .member-recovery-intro .member-auth__back { margin-bottom: 23px; }
    .member-recovery-brand { margin-bottom: 31px; }
    .member-recovery-intro h1 { max-width: 570px; font-size: clamp(2.25rem, 8.8vw, 4rem); }
    .member-recovery-intro__lead { max-width: 570px; }
    .member-recovery-steps { margin-top: 31px; }
    .member-recovery-card { width: 100%; }
}

@media (max-width: 520px) {
    .member-recovery-shell {
        width: min(calc(100% - 28px), 620px);
        padding-block: 23px 30px;
    }
    .member-recovery-brand > span { width: 49px; height: 49px; flex-basis: 49px; border-radius: 14px; }
    .member-recovery-brand strong { font-size: .79rem; }
    .member-recovery-brand small { font-size: .59rem; }
    .member-recovery-intro h1 { font-size: clamp(2rem, 11vw, 3rem); }
    .member-recovery-intro__lead { font-size: .82rem; }
    .member-recovery-steps { gap: 5px; }
    .member-recovery-steps li { grid-template-columns: 31px minmax(0, 1fr); gap: 6px; }
    .member-recovery-steps li > span { width: 31px; height: 31px; }
    .member-recovery-steps li:not(:last-child)::after { display: none; }
    .member-recovery-steps strong { font-size: .57rem; white-space: normal; }
    .member-recovery-card { border-radius: 20px; }
    .member-recovery-card .member-auth__card-heading { align-items: flex-start; }
    .member-password-rules,
    .member-recovery-actions { grid-template-columns: 1fr; }
    .member-auth__support-actions { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
    .member-recovery-shell { width: calc(100% - 20px); }
    .member-recovery-brand { gap: 9px; }
    .member-recovery-card { padding-inline: 18px; }
    .member-recovery-card .member-auth__mark { width: 52px; height: 52px; flex-basis: 52px; }
    .member-recovery-steps li { grid-template-columns: 28px minmax(0, 1fr); }
    .member-recovery-steps li > span { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .member-auth--recovery *,
    .member-auth--recovery *::before,
    .member-auth--recovery *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
