.ai3d-upload-slot-media {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(33, 48, 79, 0.92), rgba(13, 19, 31, 0.96)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(150, 173, 214, 0.12);
    aspect-ratio: 4 / 3;
}

.ai3d-upload-slot-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 52%),
        rgba(7, 10, 18, 0.86);
}

.ai3d-upload-slot-actions {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(6, 9, 16, 0.12), rgba(6, 9, 16, 0.58));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.ai3d-upload-slot-media:hover .ai3d-upload-slot-actions,
.ai3d-upload-slot-media:focus-within .ai3d-upload-slot-actions {
    opacity: 1;
    pointer-events: auto;
}

.ai3d-upload-slot-media.is-uploading .ai3d-upload-slot-actions {
    opacity: 0;
    pointer-events: none;
}

.ai3d-upload-slot-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 170, 208, 0.16);
    background: rgba(17, 24, 38, 0.9);
    color: #dfe9fb;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ai3d-upload-slot-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai3d-upload-slot-icon-btn:focus-visible,
.ai3d-upload-set-primary:focus-visible,
.ai3d-upload-item-select:focus-visible,
.ai3d-upload-action:focus-visible {
    outline: none;
    border-color: rgba(122, 190, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(66, 139, 255, 0.18);
}

.ai3d-upload-slot-icon-btn:hover {
    border-color: rgba(125, 165, 242, 0.34);
    background: rgba(23, 32, 50, 0.98);
    transform: translateY(-1px);
}

.ai3d-upload-slot-icon-btn--choose {
    background: linear-gradient(180deg, rgba(39, 60, 102, 0.96), rgba(24, 34, 56, 0.96));
    border-color: rgba(101, 148, 245, 0.3);
}

.ai3d-upload-slot-icon-btn--clear {
    background: linear-gradient(180deg, rgba(72, 34, 42, 0.96), rgba(47, 19, 27, 0.96));
    border-color: rgba(232, 109, 135, 0.24);
    color: #ffe1e7;
}

.ai3d-upload-slot--primary .ai3d-upload-slot-icon-btn--choose {
    background: linear-gradient(180deg, rgba(27, 103, 134, 0.96), rgba(14, 56, 74, 0.96));
    border-color: rgba(90, 210, 255, 0.32);
}

.ai3d-upload-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #0d1118;
    padding: 8px;
    overflow: hidden;
}

.ai3d-upload-item.is-invalid {
    border-color: rgba(255, 142, 142, 0.5);
}

.ai3d-upload-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: rgba(255, 255, 255, 0.03);
}

.ai3d-upload-item-name {
    margin-top: 8px;
    color: #e6ebf7;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.ai3d-upload-item-meta {
    color: #8d97ad;
    font-size: 12px;
    line-height: 1.4;
}

.ai3d-upload-item-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ai3d-upload-item-select,
.ai3d-upload-set-primary {
    width: 100%;
    min-height: 44px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111722;
    color: #dce7fb;
    font-size: 14px;
}

.ai3d-upload-item-select {
    padding: 0 10px;
    color-scheme: dark;
}

.ai3d-upload-set-primary {
    cursor: pointer;
}

.ai3d-upload-item-tip {
    margin-top: 8px;
    color: #ffc96e;
    font-size: 12px;
    line-height: 1.5;
}

.ai3d-upload-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(84, 197, 255, 0.16);
    color: #b4e8ff;
    font-size: 12px;
}

.ai3d-upload:not(.has-single):not(.has-multi):not(.is-multi) .ai3d-upload-empty {
    display: flex;
}

.ai3d-upload .btn {
    /* AI3D_BUTTON_VISIBILITY_GUARD */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 228, 135, 0.74);
    border-radius: 18px;
    background: linear-gradient(135deg, #f0c65a 0%, #f6dc8d 100%);
    color: #141008;
    margin-bottom: 12px;
    box-shadow: 0 16px 30px rgba(236, 190, 82, 0.32);
}

.ai3d-upload .btn .ai3d-upload-icon {
    position: static;
    flex: 0 0 auto;
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai3d-upload p {
    color: #8d97ad;
    line-height: 1.65;
    font-size: 13px;
    margin: 0;
}

.ai3d-upload-empty p + p {
    margin-top: 4px;
}

#ai3dUploadTitle {
    color: #dce7fb;
    font-size: 15px;
    font-weight: 600;
}

#ai3dUploadDesc {
    color: #edf4ff;
    font-size: 14px;
}

#ai3dUploadSubDesc {
    color: #c1cbde;
    font-size: 13px;
}

.ai3d-upload-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.ai3d-upload-action {
    min-height: 44px;
    height: auto;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #161a22;
    color: #cdd3e2;
    font-size: 14px;
    cursor: pointer;
}

.ai3d-upload-action[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai3d-face-count-row {
    margin-bottom: 8px;
}
