.limis-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
}

.limis-page {
    flex: 1 0 auto;
}

.limis-header {
    background: #24588d;
    color: #fff;
}

.limis-header__inner,
.limis-footer__inner {
    width: min(1460px, calc(100% - 32px));
    margin: 0 auto;
}

.limis-header__inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.limis-header__brand {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    flex: 1 1 320px;
    min-width: 0;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limis-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.limis-header__home {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1;
    box-sizing: border-box;
}

.limis-header__home i {
    color: currentColor;
    font-size: 20px;
    line-height: 1;
}

.limis-header__home:hover,
.limis-header__home:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.66);
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}

.limis-header__home:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.limis-header__link,
.limis-header__auth-link {
    color: #fff;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}

.limis-header__link:hover,
.limis-header__auth-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.limis-header__menu-btn {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    padding: 7px 12px;
}

.limis-header__menu-btn:hover,
.limis-header__menu-btn:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.limis-header__langs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.limis-header__langs span {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.35);
}

.limis-header__langs a,
.limis-header__langs a:visited {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.limis-header__langs a:hover,
.limis-header__langs a:focus {
    color: #e7eef7;
    text-decoration: none;
    background: transparent;
}

.limis-header__langs a.is-active {
    color: #fff;
    font-weight: 700;
}

.limis-account-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(420px, 34vw);
    padding: 8px 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.limis-account-button:hover,
.limis-account-button:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.limis-account-button__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.limis-account-button__chevron {
    flex: 0 0 auto;
    opacity: .85;
}

.limis-footer {
    background: #fff;
    border-top: 1px solid #d7dee8;
    margin-top: auto;
    width: 100%;
    display: block;
}

.limis-footer__inner {
    width: min(1460px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 56px;
    align-items: start;
    text-align: left;
}

.limis-footer__block {
    min-width: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.limis-footer__text {
    margin: 0;
    color: #344054;
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
}

.limis-footer__block a,
.limis-footer__links a,
.limis-footer__text a {
    color: #24588d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.limis-footer__block a:hover,
.limis-footer__links a:hover,
.limis-footer__text a:hover {
    text-decoration: underline;
}

.limis-footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.limis-footer__bottom {
    border-top: 1px solid #e3e8ef;
}

.limis-footer__bottom-inner {
    width: min(1460px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
}

#accountSelectModal.gov-modal .gov-modal__content {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.24) !important;
    background: #fff !important;
}

#accountSelectModal.gov-modal .gov-modal__dialog {
    width: min(700px, calc(100vw - 32px)) !important;
    max-width: min(700px, calc(100vw - 32px)) !important;
}

#accountSelectModal.gov-modal .gov-modal__header {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 28px 16px !important;
    border: 0 !important;
    background: #24588d !important;
    color: #fff !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    text-align: left !important;
}

#accountSelectModal.gov-modal .gov-modal__title-wrap {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left !important;
}

#accountSelectModal.gov-modal .gov-modal__title {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

#accountSelectModal.gov-modal .gov-modal__lead {
    margin: 8px 0 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

#accountSelectModal.gov-modal .gov-modal__close {
    flex: 0 0 auto !important;
    margin: 2px 0 0 !important;
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: .78 !important;
}

#accountSelectModal.gov-modal .gov-modal__close:hover {
    opacity: 1 !important;
}

#accountSelectModal.gov-modal .gov-modal__body {
    padding: 18px 28px 20px !important;
    background: #fff !important;
    text-align: left !important;
}

#accountSelectModal.gov-modal .gov-modal__footer {
    padding: 12px 28px 14px !important;
    border-top: 1px solid #e4e9f0 !important;
    background: #f8fafc !important;
}

#accountSelectModal.gov-modal .gov-modal__secondary-btn {
    min-width: 84px !important;
    padding: 7px 16px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 8px !important;
    color: #344054 !important;
    background: #fff !important;
    font-weight: 600 !important;
}

#accountSelectModal.gov-modal .gov-modal__secondary-btn:hover,
#accountSelectModal.gov-modal .gov-modal__secondary-btn:focus {
    border-color: #98a2b3 !important;
    background: #f8fafc !important;
    color: #101828 !important;
}

#accountSelectModal.gov-modal .gov-account-list {
    display: grid !important;
    gap: 8px !important;
    width: 100% !important;
}

.gov-modal .list-group {
    display: grid;
    gap: 8px;
    width: 100%;
}

.gov-modal .list-group-item {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--gov-modal-border);
    border-radius: 9px;
    padding: 12px 14px;
    color: var(--gov-modal-text);
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}

.gov-modal .list-group-item[data-id] {
    cursor: pointer;
}

.gov-modal .list-group-item[data-id]:hover,
.gov-modal .list-group-item[data-id]:focus {
    border-color: var(--gov-modal-accent);
    box-shadow: 0 0 0 3px var(--gov-modal-accent-soft);
}

.gov-modal .list-group-item.active {
    border-color: var(--gov-modal-accent);
    background: #f1f6fc;
    color: var(--gov-modal-text);
}

.gov-modal .list-group-item-warning,
.gov-modal .list-group-item-danger {
    border-color: #f2b8b5;
    background: #fff5f5;
    color: #c62828;
}

.gov-modal .gov-account-message {
    box-shadow: none;
}

.gov-modal .list-group-item:not([data-id]):not(.gov-account-message) {
    margin: 14px 0 6px;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #344054;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.gov-modal .list-group-item:not([data-id]):not(.gov-account-message):first-child {
    margin-top: 0;
}

#accountSelectModal.gov-modal .badge,
#accountSelectModal.gov-modal .gov-account-badge,
#accountSelectModal.gov-modal .badge-volitus,
.gov-modal .badge,
.gov-modal .gov-account-badge,
.gov-modal .badge-volitus {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #f2b8b5;
    background: #fff5f5;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.gov-account-list hr {
    display: none;
}

#accountSelectModal.gov-modal .gov-account-section-title {
    margin: 14px 0 6px;
    padding: 0 0 7px;
    border-bottom: 1px solid #edf1f5;
    color: #344054;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

#accountSelectModal.gov-modal .gov-account-section-title:first-child {
    margin-top: 0;
}

#accountSelectModal.gov-modal .gov-account-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 11px 14px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    background: #fff;
    color: #174a7c;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
    cursor: pointer;
    font-size: 16px;
    line-height: 1.35;
}

#accountSelectModal.gov-modal .gov-account-card:hover,
#accountSelectModal.gov-modal .gov-account-card:focus {
    border-color: #24588d;
    box-shadow: 0 0 0 3px rgba(36, 88, 141, 0.12);
    outline: none;
}

#accountSelectModal.gov-modal .gov-account-card.active {
    border-color: #24588d;
    background: #f1f6fc;
    color: #174a7c;
}

#accountSelectModal.gov-modal .badge-volitus {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #f4c7c3;
    background: #fff7f7;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

#accountSelectModal.gov-modal #linked-accounts-list > .list-group-item:not([data-id]):not(.gov-account-message) {
    margin: 14px 0 6px !important;
    padding: 0 0 7px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #344054 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
}

#accountSelectModal.gov-modal #linked-accounts-list > .list-group-item:not([data-id]):not(.gov-account-message):first-child {
    margin-top: 0 !important;
}

#accountSelectModal.gov-modal #linked-accounts-list > .list-group-item:not([data-id]):not(.gov-account-message) strong {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

@media (max-width: 640px) {
    #accountSelectModal.gov-modal .gov-modal__dialog {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    #accountSelectModal.gov-modal .gov-modal__content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #accountSelectModal.gov-modal .gov-modal__header {
        padding: 18px 20px 14px !important;
    }

    #accountSelectModal.gov-modal .gov-modal__body {
        padding: 16px 20px 18px !important;
    }

    #accountSelectModal.gov-modal .gov-modal__footer {
        padding: 12px 20px 14px !important;
    }

    #accountSelectModal.gov-modal .gov-modal__title {
        font-size: 22px !important;
    }

    #accountSelectModal.gov-modal .gov-modal .list-group-item[data-id],
    #accountSelectModal.gov-modal .list-group-item[data-id] {
        padding: 11px 12px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 900px) {
    .limis-header {
        display: flow-root;
        width: 100%;
        background: #24588d;
        color: #fff;
        overflow: visible;
    }

    .limis-header__inner {
        width: min(100% - 32px, 1460px);
        margin: 0 auto;
        padding: 16px 0;
        min-height: unset;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
    }

    .limis-header__brand {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 20px;
        line-height: 1.18;
    }

    .limis-header__nav {
        display: flex;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px 12px;
        white-space: normal;
    }

    .limis-header__home {
        width: 42px;
        height: 42px;
    }

    .limis-account-button {
        max-width: 100%;
    }

    .limis-footer__inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 0 20px;
    }
}

@media (max-width: 480px) {
    .limis-header__inner {
        padding: 14px 0;
        gap: 12px;
    }

    .limis-header__brand {
        font-size: 19px;
        line-height: 1.2;
    }
}
