.kb-home-shell {
    min-width: 0;
}

.kb-home-header,
.kb-search-stack,
.kb-recent-stack {
    min-width: 0;
}

.kb-home-nav-card,
.kb-search-result-card,
.kb-section-card,
.kb-recent-item {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kb-search-result-card:hover,
.kb-section-card:hover,
.kb-recent-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--rz-shadow-4);
}

.kb-recent-item:last-child {
    border-bottom: none !important;
}

.kb-recent-meta {
    min-width: 0;
}

.kb-tree {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 1024px) {
    .kb-home-header {
        gap: 0.75rem;
    }

    .kb-home-header .rz-column,
    .kb-home-main-column,
    .kb-home-nav-column {
        width: 100%;
    }

    .kb-home-header-actions,
    .kb-search-stack,
    .kb-recent-stack {
        flex-wrap: wrap;
    }

    .kb-home-nav-column {
        margin-bottom: 0.25rem;
    }

    .kb-home-nav-card {
        min-height: 0 !important;
    }

    .kb-recent-stack {
        align-items: flex-start !important;
    }
}

@media (max-width: 768px) {
    .kb-search-card {
        padding: 0.875rem !important;
    }

    .kb-mobile-nav-card {
        padding: 0.25rem !important;
    }

    .kb-home-main-column .rz-card,
    .kb-home-nav-column .rz-card {
        border-radius: 10px !important;
    }

    .kb-search-result-card,
    .kb-section-card,
    .kb-recent-item {
        transform: none !important;
    }
}
