.company-switch-scope .company-switch-dialog {
    width: calc(100% - 32px);
    max-width: 1440px;
    margin: 16px auto;
}

.company-switch-scope .company-switch-modal {
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.company-switch-scope .company-switch-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 28px 32px 24px;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
    background: #fff;
}

.company-switch-scope .company-switch-heading {
    display: flex;
    align-items: center;
    min-width: 0;
}

.company-switch-scope .company-switch-heading__icon {
    display: inline-flex;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eaf4ff 0%, #dcecff 100%);
    color: #1769ff;
    font-size: 27px;
    box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.04);
}

.company-switch-scope .company-switch-header .modal-title {
    margin: 0;
    color: #172b4d;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.company-switch-scope .company-switch-heading__subtitle {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
}

.company-switch-scope .company-switch-close {
    margin: -7px -8px 0 20px;
    padding: 8px;
    border: 0;
    color: #71809f;
    font-size: 37px;
    font-weight: 300;
    line-height: 1;
    text-shadow: none;
    opacity: 0.88;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.company-switch-scope .company-switch-close.btn-close {
    width: auto;
    height: auto;
    background: none;
}

.company-switch-scope .company-switch-close:hover,
.company-switch-scope .company-switch-close:focus {
    color: #172b4d;
    opacity: 1;
    transform: scale(1.04);
}

.company-switch-scope .company-switch-body {
    min-height: 0;
    padding: 24px 26px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    color: #172b4d;
}

.company-switch-scope .company-switch-grid {
    margin-right: -8px;
    margin-left: -8px;
}

.company-switch-scope .company-switch-grid__item {
    display: flex;
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 16px;
}

.company-switch-scope .company-switch-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 190px;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #d7e3f2;
    border-radius: 13px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 50%, #f0f6fd 100%);
    box-shadow: 0 5px 14px rgba(30, 64, 110, 0.08);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.company-switch-scope .company-switch-card::before,
.company-switch-scope .company-switch-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.company-switch-scope .company-switch-card::before {
    top: -74px;
    left: 18px;
    width: 92px;
    height: 246px;
    transform: rotate(45deg);
    background: linear-gradient(90deg, rgba(214, 230, 250, 0.6), rgba(255, 255, 255, 0.16));
    opacity: 0.58;
}

.company-switch-scope .company-switch-card::after {
    right: -62px;
    bottom: -84px;
    width: 184px;
    height: 184px;
    transform: rotate(45deg);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(218, 233, 250, 0.62));
    opacity: 0.55;
}

.company-switch-scope .company-switch-card:hover,
.company-switch-scope .company-switch-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(23, 105, 255, 0.56);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(23, 105, 255, 0.12);
}

.company-switch-scope .company-switch-card:hover::before,
.company-switch-scope .company-switch-card:hover::after,
.company-switch-scope .company-switch-card:focus-within::before,
.company-switch-scope .company-switch-card:focus-within::after {
    opacity: 0.78;
}

.company-switch-scope .company-switch-card.is-active {
    border-color: #1769ff;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #edf5ff 100%);
    box-shadow: 0 0 0 1px rgba(23, 105, 255, 0.15), 0 7px 20px rgba(23, 105, 255, 0.11);
}

.company-switch-scope .company-switch-card__check {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 3;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1769ff;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(23, 105, 255, 0.26);
}

.company-switch-scope .company-switch-card__logo {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 127px;
    height: 127px;
    align-items: center;
    justify-content: center;
    padding: 18px 24px 12px;
    border: 0;
    background: transparent;
}

.company-switch-scope .company-switch-card__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 88px;
    object-fit: contain;
}

.company-switch-scope .company-switch-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 63px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 11px 18px;
    border-top: 1px solid rgba(215, 227, 242, 0.52);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.66);
}

.company-switch-scope .company-switch-card__footer .card-title {
    flex: 1 1 auto;
    margin: 0 10px 0 0;
    color: #17366f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.18;
    text-align: left;
    overflow-wrap: anywhere;
}

.company-switch-scope .company-switch-card__arrow {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: #1769ff;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(23, 105, 255, 0.12);
}

@media (max-width: 991.98px) {
    .company-switch-scope .company-switch-dialog {
        max-width: 920px;
    }

    .company-switch-scope .company-switch-header {
        padding: 23px 24px 20px;
    }

    .company-switch-scope .company-switch-body {
        padding: 20px 18px 22px;
    }
}

@media (max-width: 575.98px) {
    .company-switch-scope .company-switch-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .company-switch-scope .company-switch-modal {
        max-height: calc(100vh - 16px);
        border-radius: 12px !important;
    }

    .company-switch-scope .company-switch-header {
        padding: 17px 16px 15px;
    }

    .company-switch-scope .company-switch-heading {
        align-items: flex-start;
    }

    .company-switch-scope .company-switch-heading__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        margin-right: 12px;
        border-radius: 12px;
        font-size: 21px;
    }

    .company-switch-scope .company-switch-header .modal-title {
        font-size: 22px;
    }

    .company-switch-scope .company-switch-heading__subtitle {
        margin-top: 3px;
        padding-right: 4px;
        font-size: 14px;
    }

    .company-switch-scope .company-switch-close {
        margin: -7px -8px 0 6px;
        font-size: 32px;
    }

    .company-switch-scope .company-switch-body {
        padding: 14px 12px 16px;
    }

    .company-switch-scope .company-switch-grid {
        margin-right: -5px;
        margin-left: -5px;
    }

    .company-switch-scope .company-switch-grid__item {
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 10px;
    }

    .company-switch-scope .company-switch-card {
        min-height: 172px;
    }

    .company-switch-scope .company-switch-card__logo {
        flex-basis: 112px;
        height: 112px;
        padding: 14px 20px 8px;
    }

    .company-switch-scope .company-switch-card__logo img {
        max-width: 126px;
        max-height: 76px;
    }

    .company-switch-scope .company-switch-card__footer {
        min-height: 60px;
        padding: 8px 12px 9px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-switch-scope .company-switch-card,
    .company-switch-scope .company-switch-card::before,
    .company-switch-scope .company-switch-card::after,
    .company-switch-scope .company-switch-close {
        transition: none;
    }
}
