.support-top-nav {
    --nav-primary: #3f5968;
    --nav-dark: #263b47;
    --switch-accent: var(--nav-primary);
    display: flex;
    width: auto;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -20px -24px 20px;
    padding: 16px 20px;
    color: #fff;
    background: var(--nav-primary);
    border-bottom: 4px solid var(--nav-dark);
}

.support-top-nav.instance-vuelta { --nav-primary: #106c3c; --nav-dark: #094c2a; }
.support-top-nav.instance-amawa { --nav-primary: #306ea1; --nav-dark: #214d72; }
.support-top-nav.instance-mipanera { --nav-primary: #202124; --nav-dark: #080909; }

.support-nav-heading,
.support-nav-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.support-nav-heading-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    background: rgba(0, 0, 0, .12);
    font-size: 1.1rem;
}

.support-nav-heading-copy { min-width: 0; }

.support-nav-heading h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.support-nav-instance {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .45);
    font-size: .92rem;
    font-weight: 600;
}

.support-nav-subtitle {
    margin-top: 2px;
    overflow: hidden;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-nav-logout {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 5px;
    background: rgba(91, 24, 24, .22);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.support-nav-logout:hover {
    color: #8f251d;
    border-color: #fff;
    background: #fff;
    text-decoration: none;
}

.support-view-switcher {
    display: inline-flex;
    align-items: stretch;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    background: rgba(0, 0, 0, .16);
}

.support-view-switcher .view-switcher-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 5px;
    color: rgba(255, 255, 255, .88);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.support-view-switcher .view-switcher-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    text-decoration: none;
}

.support-view-switcher .view-switcher-link.active {
    color: var(--switch-accent, #106c3c);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
}

@media (max-width: 1200px) {
    .support-top-nav {
        min-height: 72px;
        gap: 12px;
        margin: -14px -14px 14px;
        padding: 12px 14px;
    }
    .support-nav-heading,
    .support-nav-actions { gap: 8px; }
    .support-nav-heading-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .support-nav-heading h1 { font-size: 1.12rem; }
    .support-nav-instance { display: none; }
    .support-nav-subtitle { font-size: .76rem; }
    .support-view-switcher .view-switcher-link {
        min-height: 34px;
        padding: 6px 9px;
        font-size: .76rem;
    }
    .support-nav-logout { min-width: 38px; min-height: 38px; padding: 7px 10px; }
    .support-nav-logout span { display: none; }
}

@media (max-width: 575px) {
    .support-top-nav {
        min-height: 0;
        flex-wrap: wrap;
        margin: -14px -8px 14px;
        padding: 13px 12px;
    }
    .support-nav-heading-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .support-nav-heading h1 { font-size: 1.1rem; }
    .support-nav-instance { display: none; }
    .support-nav-actions { width: 100%; align-items: stretch; }
    .support-view-switcher { width: 100%; }
    .support-view-switcher .view-switcher-link { flex: 1 1 50%; padding: 7px 9px; font-size: .78rem; }
    .support-nav-logout { min-width: 42px; padding: 8px 10px; }
    .support-nav-logout span { display: none; }
}
