.ael-portal-switcher {
    position: fixed;
    top: 50%;
    left: 14px;
    z-index: 10100;
    transform: translateY(-50%);
    font-family: Poppins, Arial, sans-serif;
}

/* Keep the ecosystem button clear of the secret-phrase field on the job route. */
.ael-portal-switcher--job {
    top: 32%;
}

.ael-portal-switcher__toggle {
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 88%);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b3d, #db2d26);
    color: #fff;
    box-shadow: 0 5px 16px rgb(0 0 0 / 38%);
    font: 900 23px/1 Arial, sans-serif;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ael-portal-switcher__toggle:hover,
.ael-portal-switcher__toggle[aria-expanded="true"] {
    transform: scale(1.07);
    box-shadow: 0 7px 22px rgb(0 0 0 / 42%), 0 0 0 6px rgb(255 89 53 / 22%);
}

.ael-portal-switcher__eye {
    display: block;
    width: 31px;
    height: 22px;
    overflow: visible;
}

.ael-portal-switcher__eye path {
    fill: none;
    stroke: #fff4ea;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ael-portal-switcher__eye circle {
    fill: #fff;
    stroke: #fff4ea;
    stroke-width: 2;
}

.ael-portal-switcher__panel {
    position: absolute;
    top: 50%;
    left: 64px;
    display: none;
    width: 245px;
    box-sizing: border-box;
    padding: 12px;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 48%);
    border-radius: 17px;
    background: linear-gradient(145deg, rgb(15 23 32 / 97%), rgb(30 62 73 / 96%));
    color: #fff;
    box-shadow: 0 12px 34px rgb(0 0 0 / 42%);
    backdrop-filter: blur(12px);
}

.ael-portal-switcher__panel.is-open {
    display: grid;
    gap: 7px;
}

.ael-portal-switcher__title {
    padding: 3px 5px 7px;
    color: #7edfd4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ael-portal-switcher__link {
    display: flex;
    min-height: 51px;
    box-sizing: border-box;
    padding: 9px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 11px;
    background: rgb(255 255 255 / 8%);
    color: #fff;
    text-decoration: none;
}

.ael-portal-switcher__link:hover,
.ael-portal-switcher__link.is-current {
    border-color: #70dfd1;
    background: rgb(40 189 166 / 19%);
}

.ael-portal-switcher__brand {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.ael-portal-switcher__name {
    color: #d7e3e7;
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
}

.ael-portal-switcher__channel {
    display: block;
    margin-top: 5px;
    padding: 10px 11px 4px;
    color: #d7e3e7;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    text-decoration: none;
}

.ael-portal-switcher__channel:hover {
    color: #7edfd4;
}

@media (max-width: 360px) {
    .ael-portal-switcher { left: 9px; }
    .ael-portal-switcher__panel { left: 58px; width: calc(100vw - 76px); }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1200px) {
    .ael-portal-switcher__panel {
        width: 232px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 8px;
        overflow-y: auto;
        gap: 4px;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .ael-portal-switcher__title {
        display: none;
    }

    .ael-portal-switcher__link {
        min-height: 39px;
        padding: 6px 9px;
        gap: 8px;
        border-radius: 9px;
    }

    .ael-portal-switcher__brand {
        font-size: 12px;
    }

    .ael-portal-switcher__name {
        font-size: 11px;
        line-height: 1.15;
    }

    .ael-portal-switcher__channel {
        margin-top: 2px;
        padding: 7px 9px 3px;
        font-size: 11px;
    }
}
