.dv2-bento {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--dv2-grid-gap);
}

.dv2-tile {
    grid-column: span 3;
    min-width: 0;
    min-height: 188px;
    padding: var(--dv2-space-6);
    border: 0;
    border-radius: var(--dv2-radius-md);
    background: var(--dv2-surface);
    animation: dv2-tile-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transition:
        background-color var(--dv2-transition),
        transform 100ms ease-out;
}

.dv2-tile:hover {
    background: var(--dv2-surface-hover);
}

a.dv2-tile:active {
    transform: scale(0.98);
}

.dv2-tile:nth-child(1) {
    animation-delay: 0ms;
}

.dv2-tile:nth-child(2) {
    animation-delay: 40ms;
}

.dv2-tile:nth-child(3) {
    animation-delay: 80ms;
}

.dv2-tile:nth-child(4) {
    animation-delay: 120ms;
}

.dv2-tile:nth-child(5) {
    animation-delay: 160ms;
}

.dv2-tile:nth-child(n + 6) {
    animation-delay: 200ms;
}

.dv2-tile--sm {
    grid-column: span 4;
}

.dv2-tile--md {
    grid-column: span 6;
}

.dv2-tile--lg {
    grid-column: span 8;
}

.dv2-tile--xl {
    grid-column: span 12;
}

.dv2-tile--row-2 {
    grid-row: span 2;
}

.dv2-tile--hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 252px;
    overflow: hidden;
    background: var(--dv2-surface);
}

.dv2-tile--hero:hover {
    background: var(--dv2-surface-hover);
}

.dv2-hero-copy {
    max-width: 560px;
}

.dv2-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.dv2-hero-description {
    max-width: 500px;
    margin-top: var(--dv2-space-4);
    color: var(--dv2-text-muted);
}

.dv2-hero-actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--dv2-space-2);
}

.dv2-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dv2-space-4);
    margin-bottom: var(--dv2-space-8);
}

.dv2-tile-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.dv2-tile--stat {
    min-height: 160px;
}

.dv2-tile--chart {
    min-height: 280px;
}

.dv2-tile--row-2.dv2-tile--chart {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.dv2-tile--row-2.dv2-tile--chart .dv2-chart {
    flex: 1;
    height: auto;
    min-height: 190px;
}

.dv2-tile--list {
    display: flex;
    min-height: 220px;
    flex-direction: column;
}

.dv2-tile--list .dv2-data-list {
    flex: 1;
}

.dv2-tile--list .dv2-empty {
    flex: 1;
    justify-content: center;
}

@keyframes dv2-tile-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1023px) {
    .dv2-tile--hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dv2-hero-actions {
        margin-top: var(--dv2-space-8);
    }
}

@media (max-width: 767px) {
    .dv2-bento {
        gap: var(--dv2-space-2);
    }

    .dv2-tile,
    .dv2-tile--sm,
    .dv2-tile--md,
    .dv2-tile--lg,
    .dv2-tile--xl {
        grid-column: span 12;
    }

    .dv2-tile {
        min-height: 168px;
        padding: var(--dv2-space-5);
        animation-duration: 280ms;
    }

    .dv2-tile--hero {
        min-height: 320px;
    }

    .dv2-hero-actions {
        width: 100%;
        flex-direction: column;
    }
}
