
.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: var(--ui-z-sheet, 10000);
    visibility: hidden;
    transition: visibility 0s linear 0.6s;
    pointer-events: none;
}

.bottom-panel.active,
.bottom-panel.preparing {
    visibility: visible;
    transition: visibility 0s linear 0s;
    pointer-events: auto;
}

.bottom-panel.preparing {
    pointer-events: none;
}

.bottom-panel.preparing .bottom-panel__content {
    transform: translateY(100%) !important;
    transition: none !important;
}

.bottom-panel.preparing .bottom-panel__overlay {
    opacity: 0 !important;
    transition: none !important;
}

.bottom-panel__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--ui-color-overlay, rgba(0, 0, 0, 0.5));
    z-index: calc(var(--ui-z-sheet, 10000) + 1);
    opacity: 0;

    transition: opacity 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));

pointer-events: auto;
}

.bottom-panel.active .bottom-panel__overlay {
    opacity: 1;
}

.bottom-panel__content {
    position: fixed;

    bottom: var(--kb-inset, 0px);
    left: 0;
    width: 100%;
    background: var(--ui-color-surface, #16181c);
    border-top-left-radius: var(--ui-radius-lg, 20px);
    border-top-right-radius: var(--ui-radius-lg, 20px);
    z-index: calc(var(--ui-z-sheet, 10000) + 2);
    transform: translateY(100%);
    transition: transform 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1)), height 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1)), max-height 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));
    will-change: transform;
    padding: 0px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.bottom-panel__content-inner {
    transition: all 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 85vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bottom-panel__content-inner::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
}

.bottom-panel__content-inner > div {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.bottom-panel__content-inner.changing > div {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.bottom-panel__content-inner {
    transition: all 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));
}

.bottom-panel__content {
    transition: transform 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1)),
                height 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1)),
                max-height 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1)),
                min-height 0.6s var(--ui-ease-standard, cubic-bezier(0.25, 0.8, 0.25, 1));
}

.bottom-panel.active .bottom-panel__content {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .bottom-panel__content {
        max-width: 600px;
        left: calc(50% - 600px / 2);
        max-height: 75vh;
    }
    .bottom-panel__content-inner {
        max-height: 69vh;
    }
}

.bottom-panel__header {
    display: none;
}

.bottom-panel__header h3 {
    margin: 0;
    color: var(--ui-color-text, #fff);
    font-size: 16px;
}

.bottom-panel__list {
    padding: 15px 0 32px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.panel-item {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.panel-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--ui-color-border, rgba(255, 255, 255, 0.08));
}

.panel-item:hover {
    background: var(--ui-color-surface-3, #2a2a2a);
}

.panel-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.panel-item__icon img {
    width: 70%;
    height: auto;
}

.panel-item__info {
    flex: 1;
}

.panel-item__title {
    color: var(--ui-color-text, #fff);
    font-size: 16px;
    margin-bottom: 5px;
}

.panel-item__subtitle {
    color: var(--ui-color-text-muted, #999);
    font-size: 14px;
}
