.visual-identity-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}

.vi-header {
    border: 1px solid rgba(69, 71, 100, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(52, 142, 134, 0.08) 0%, rgba(52, 142, 134, 0.16) 100%);
    padding: 1.2rem;
}

.vi-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.vi-header p {
    margin: 0.55rem 0 0;
    color: var(--primary-color);
    opacity: 0.86;
    line-height: 1.8;
}

.vi-feedback {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.vi-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.vi-card {
    border: 1px solid rgba(69, 71, 100, 0.14);
    border-radius: 16px;
    background: #ffffff;
    padding: 0.9rem;
    display: grid;
    gap: 0.7rem;
    box-shadow: 0 10px 24px rgba(69, 71, 100, 0.08);
}

.vi-thumb-link,
.vi-thumb-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(52, 142, 134, 0.08) 0%, rgba(52, 142, 134, 0.16) 100%);
    border: 1px solid rgba(52, 142, 134, 0.18);
    text-decoration: none;
}

.vi-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vi-thumb-fallback {
    color: var(--primary-color);
    gap: 0.35rem;
}

.vi-thumb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(69, 71, 100, 0.12);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.vi-thumb-text {
    font-size: 0.82rem;
    font-weight: 700;
}

.vi-thumb-link:hover,
.vi-thumb-link:focus-visible,
.vi-thumb-fallback:hover,
.vi-thumb-fallback:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(69, 71, 100, 0.12);
}

.vi-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.vi-chip {
    border: 1px solid rgba(52, 142, 134, 0.35);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    color: var(--primary-color);
    background: rgba(52, 142, 134, 0.1);
    font-size: 0.78rem;
    font-weight: 700;
}

.vi-size {
    color: var(--primary-color);
    font-size: 0.78rem;
    opacity: 0.72;
}

.vi-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.vi-file-name {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.85rem;
    line-height: 1.7;
    word-break: break-all;
    opacity: 0.86;
}

.vi-file-name:hover,
.vi-file-name:focus-visible {
    text-decoration: underline;
}

.vi-date {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.78rem;
    opacity: 0.68;
}

.vi-empty {
    margin-top: 1rem;
    border: 1px dashed rgba(69, 71, 100, 0.2);
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .vi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .visual-identity-page {
        padding: 1.4rem 0.75rem 4rem;
    }

    .vi-header h1 {
        font-size: 1.5rem;
    }

    .vi-grid {
        grid-template-columns: 1fr;
    }
}
