.v2-empty-state,
.v2-hw-empty {
    display: grid;
    place-items: center;
    gap: var(--space-3);
    min-height: 16rem;
    padding: var(--space-10) var(--space-5);
    border: 1px dashed #d7e2ef;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
    text-align: center;
}

.v2-empty-state-icon,
.v2-hw-empty i {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--color-brand-500);
    font-size: 1.2rem;
}

.v2-empty-state-title,
.v2-hw-empty h3 {
    margin: 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.2;
}

.v2-empty-state-text,
.v2-hw-empty p {
    max-width: 32rem;
    margin: 0;
    color: var(--text-soft);
    font-size: var(--font-size-sm);
    line-height: 1.65;
}

.v2-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-soft);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.v2-loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--color-brand-500);
    animation: v2LoadingPulse 0.9s ease-in-out infinite alternate;
}

.v2-loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.v2-loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.v2-skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #eef3fb 0%, #f8fbff 50%, #eef3fb 100%);
    background-size: 200% 100%;
    animation: v2SkeletonShimmer 1.4s linear infinite;
}

.v2-skeleton--line {
    height: 0.9rem;
    border-radius: 999px;
}

.v2-skeleton--title {
    height: 1.4rem;
    border-radius: var(--radius-xs);
}

.v2-skeleton--card {
    min-height: 12rem;
    border-radius: var(--radius-md);
}

.v2-modal,
.v2-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    padding: var(--space-5);
}

.v2-modal[hidden],
.v2-drawer[hidden] {
    display: none;
}

.v2-modal {
    place-items: center;
}

.v2-drawer {
    align-items: end;
}

.v2-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 17, 31, 0.48);
    backdrop-filter: blur(6px);
}

.v2-modal-panel,
.v2-drawer-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    border: 1px solid rgba(221, 230, 241, 0.94);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.v2-drawer-panel {
    width: min(100%, 42rem);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.v2-modal-head,
.v2-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--border-soft);
}

.v2-modal-body,
.v2-drawer-body {
    padding: var(--space-5);
}

.v2-modal-foot,
.v2-drawer-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5) var(--space-5);
    border-top: 1px solid var(--border-soft);
}

@keyframes v2LoadingPulse {
    from {
        opacity: 0.45;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes v2SkeletonShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 760px) {
    .v2-modal,
    .v2-drawer {
        padding: var(--space-3);
    }

    .v2-modal-panel,
    .v2-drawer-panel {
        width: 100%;
    }

    .v2-modal-foot,
    .v2-drawer-foot {
        flex-direction: column;
        align-items: stretch;
    }
}
