.navtool-history-nav-btn.is-active {
    background: var(--theme-color-bg, rgba(136, 136, 136, .1));
}

.navtool-history-panel {
    position: fixed;
    top: 92px;
    right: 38px;
    z-index: 100002;
    width: min(360px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.navtool-history-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.navtool-history-body {
    max-height: min(420px, 55vh);
    overflow: auto;
}

.navtool-history-nav-btn img,
.navtool-history-icon img {
    object-fit: contain;
}

.navtool-history-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: var(--main-bg-color);
}

.navtool-history-icon img {
    width: 28px;
    height: 28px;
}

.navtool-history-nav-btn img {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .navtool-history-panel {
        inset: auto 12px 78px;
        width: auto;
    }
}
