/* Preserve the original artwork transparency over the surrounding surface. */
.app-shell.app-shell-coreui .app-sidebar-brand:has(.app-sidebar-horizontal-logo) {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 180px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}
.app-shell.app-shell-coreui .app-sidebar-horizontal-logo {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: contain;
}
.app-shell.app-shell-coreui .app-sidebar-compact-logo {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    /* Frame the monogram within the horizontal artwork. */
    background: url("../images/neuralbotix-nb-horizontal.png") 4.5% 50% / 450% auto no-repeat;
}
.login-page .login-partner-brand {
    width: min(420px, 100%);
    aspect-ratio: 3 / 1;
    margin: 0 0 1.75rem;
    border-radius: 12px;
    background: transparent;
}
/* Lift only the navy "Neural" lettering; retain the original icon and cyan word. */
.app-shell.app-shell-coreui .app-sidebar-brand:has(.app-sidebar-horizontal-logo)::after,
.login-page .login-partner-brand::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #bbdff7 url("../images/binary-letter-texture.svg") repeat;
    background-size: 72px 32px;
    opacity: .96;
    mix-blend-mode: screen;
    border-radius: 0;
    mask: url("../images/neuralbotix-nb-horizontal.png") center / contain no-repeat;
    -webkit-mask: url("../images/neuralbotix-nb-horizontal.png") center / contain no-repeat;
    clip-path: inset(0 34% 0 27%);
}
.system-admin-page .system-admin-brand-logo-wrap {
    width: min(320px, 100%);
    height: 108px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
}
@media (min-width: 992px) {
    .app-shell.app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-horizontal-logo { display: none; }
    .app-shell.app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-brand:has(.app-sidebar-horizontal-logo)::after { display: none; }
    .app-shell.app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-compact-logo { display: block; }
    .app-shell.app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-brand:has(.app-sidebar-horizontal-logo) { background: transparent; }
}
@media (max-width: 575.98px) {
    .system-admin-page .system-admin-brand-head { padding-inline: 0 3.25rem; min-height: 100px; }
    .system-admin-page .system-admin-brand-logo-wrap { height: 90px; }
}
