.file-preview canvas {
    border: 1px solid #ededed;
    border-radius: 12px;
}

.file-preview.is-empty {
    width: 50px;
    height: 50px;
}

.file-size.is-hidden {
    display: none;
}

.files {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 5px;
    grid-auto-rows: max-content;
}

.file-container {
    display: grid;
    grid-template-columns: auto 50px 30px 5px;
    grid-gap: 10px;
    align-items: center;
}

.file-remove-icon {
    display: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    text-align: center;
}

.file-container:hover .file-remove-icon {
    display: inline-block;
}

.file-remove-icon:hover {
    color: #dc3545;
}

.file-name {
    text-align: right;
}

.file-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.file-facepoint-controls {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.file-facepoint-anchor {
    width: 24px;
    height: 24px;
    border: 1px solid #cad3dd;
    border-radius: 999px;
    background: #fff;
    color: #607080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    padding: 0;
    position: relative;
}

.file-facepoint-anchor-3d {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6c7b88;
    padding: 0;
    min-width: 0;
    cursor: default;
    opacity: 1;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: none;
}

.file-facepoint-anchor-3d:hover,
.file-facepoint-anchor-3d:disabled {
    border: 0;
    background: transparent;
    color: #6c7b88;
    transform: none;
    opacity: 1;
}

.file-facepoint-anchor:hover:not(:disabled) {
    color: #1c5ca7;
    border-color: #1c5ca7;
    transform: translateY(-1px);
}

.file-facepoint-anchor:disabled {
    cursor: default;
    opacity: 0.72;
}

.file-facepoint-anchor.is-pending {
    border-color: #f0b24b;
    color: #af6d08;
    background: #fff5df;
}

.file-facepoint-anchor.is-ok {
    border-color: #2f9f79;
    color: #1f7358;
    background: #eef9f4;
}

.file-facepoint-anchor.is-error {
    border-color: #d36d6d;
    color: #a53f3f;
    background: #fff0f0;
}

.file-facepoint-anchor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.file-facepoint-anchor.is-pending .file-facepoint-anchor-icon {
    opacity: 0;
}

.file-facepoint-anchor.is-pending::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(175, 109, 8, 0.2);
    border-top-color: #af6d08;
    animation: facepoint-spin 0.8s linear infinite;
}

.series-link {
    border: 0;
    background: transparent;
    color: #2f2f2f;
    font: inherit;
    text-align: right;
    cursor: pointer;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.series-link:hover {
    color: #356ca7;
}

.series-link-title {
    display: block;
    font-weight: 500;
}

.series-link-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
    max-width: min(44vw, 520px);
    font-size: 0.46rem;
    line-height: 1.35;
    color: #7d8995;
}

.series-link-meta-item {
    display: inline-block;
}

@keyframes facepoint-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
