/* Keep the complete product name readable next to every portal logo. */
[data-system-brand] {
    min-width: 0;
    max-width: 100%;
}
[data-system-brand] .portal-brand-kicker,
[data-system-brand] .verify-brand-kicker,
[data-system-brand] .brand-kicker,
[data-system-brand] .inactive-brand-copy small {
    display: none !important;
}
[data-system-brand] .portal-brand-title,
[data-system-brand] .verify-brand-title,
[data-system-brand] .brand-title,
[data-system-brand] .footer-brand-title,
[data-system-brand] .inactive-brand-copy strong,
.verify-footer-brand[data-system-brand] strong {
    text-transform: none !important;
    white-space: nowrap !important;
    letter-spacing: .025em !important;
    line-height: 1.2;
}
[data-system-brand] .portal-brand-subtitle,
[data-system-brand] .verify-brand-subtitle,
[data-system-brand] .brand-subtitle,
[data-system-brand] .footer-brand-subtitle,
[data-system-brand] .inactive-brand-copy > span,
.verify-footer-brand[data-system-brand] span {
    display: block !important;
    max-width: none;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: .025em !important;
    line-height: 1.45 !important;
    overflow-wrap: normal;
}
[data-system-brand] .portal-brand-logo,
[data-system-brand] .verify-brand-logo,
[data-system-brand] .inactive-brand-logo,
[data-system-brand] > img {
    flex-shrink: 0;
}
[data-system-brand] .portal-brand-meta,
[data-system-brand] .verify-brand-meta,
[data-system-brand] .brand-meta,
[data-system-brand] .footer-brand-text,
[data-system-brand] .inactive-brand-copy,
.verify-footer-brand[data-system-brand] > div,
.view-ship-brand[data-system-brand] > div {
    min-width: 0;
}
.admin-ui .compact-navbar [data-system-brand] .brand-subtitle {
    font-size: 10px !important;
}
.admin-ui .compact-navbar .navbar-brand[data-system-brand] .brand-meta {
    display: flex !important;
    flex-direction: column;
    max-width: none;
    overflow: visible;
    flex-shrink: 0;
}
.admin-ui .compact-navbar .navbar-brand[data-system-brand] {
    width: max-content;
    clip-path: none;
    overflow: visible;
}
.portal-brand-mark[data-system-brand] {
    width: fit-content;
}
.view-ship-brand[data-system-brand] {
    flex: 0 0 auto;
    width: max-content;
}
.brand-panel > .brand-title {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: break-word;
}
@media (max-width: 767.98px) {
    .admin-ui .navbar-custom.compact-navbar > .container-fluid {
        grid-template-columns: max-content minmax(0, 1fr);
    }
    .admin-ui .compact-navbar [data-system-brand] .brand-subtitle {
        font-size: 8px !important;
    }
    .admin-ui .compact-navbar [data-system-brand] .brand-meta {
        border-left: 0;
        padding-left: 0 !important;
    }
    .verify-brand[data-system-brand] .verify-brand-subtitle {
        font-size: .6rem;
    }
    .view-ship-brand[data-system-brand] {
        gap: 12px;
    }
    .view-ship-brand[data-system-brand] > img {
        width: 48px;
        height: 48px;
    }
    .view-ship-brand[data-system-brand] .brand-subtitle {
        font-size: .6rem;
    }
    .inactive-brand[data-system-brand] .inactive-brand-copy > span {
        font-size: .65rem;
    }
}
@media (max-width: 390px) {
    .admin-ui .compact-navbar [data-system-brand] .brand-subtitle {
        font-size: 7.5px !important;
    }
    .admin-ui .compact-navbar .navbar-brand[data-system-brand] {
        gap: 6px;
    }
    .admin-ui .compact-navbar [data-system-brand] .brand-logo-plate {
        flex-basis: 28px !important;
        width: 28px !important;
    }
    .admin-ui .compact-navbar .navbar-brand[data-system-brand] .brand-logo-plate img {
        width: 28px !important;
    }
    .admin-ui .compact-navbar .header-actions-zone .theme-toggle-btn {
        width: 28px !important;
        min-width: 28px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
    .admin-ui .compact-navbar .user-trigger {
        min-height: 34px;
        padding: 4px 5px !important;
        gap: 4px !important;
    }
    .admin-ui .compact-navbar .user-trigger .user-avatar {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px;
    }
    .admin-ui .compact-navbar .header-actions-zone {
        gap: 6px !important;
    }
}
@media (max-width: 360px) {
    .verify-banner.verify-banner--with-tools {
        grid-template-columns: minmax(0, 1fr) 32px;
        column-gap: 8px;
    }
    .verify-banner--with-tools .verify-brand[data-system-brand] {
        gap: 8px;
    }
    .verify-banner--with-tools .verify-brand[data-system-brand] .verify-brand-logo {
        flex-basis: 40px;
        width: 40px;
    }
    .verify-banner--with-tools .verify-brand[data-system-brand] .verify-brand-logo img {
        width: 40px;
        height: 44px;
    }
    .verify-banner--with-tools .verify-brand[data-system-brand] .verify-brand-meta {
        padding-left: 8px;
    }
    .verify-brand[data-system-brand] .verify-brand-subtitle {
        font-size: .54rem;
    }
    .verify-header-tools .btn.action-btn.theme-toggle-btn {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
        height: 36px;
        min-height: 36px;
    }
}
