.icvpsb { max-width: 560px; margin: 1.5em auto; }
.icvpsb-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.icvpsb-drop {
    width: 100%;
    padding: 28px 12px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.icvpsb-drop:hover { border-color: #93c5fd; background: #eff6ff; }
.icvpsb-drop.dragover {
    border-color: #2563eb;
    background: #dbeafe;
    transform: scale(1.015);
}
.icvpsb-drop input[type="file"] { display: none; }
.icvpsb-drop-hint { pointer-events: none; }
.icvpsb-drop-hint strong { color: #0f172a; display: block; margin-bottom: 4px; }
.icvpsb-filepill {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    animation: icvpsb-pop 0.25s ease;
    word-break: break-all;
}
.icvpsb-filepill.show { display: inline-flex; }
.icvpsb-filepill .icvpsb-filepill-x {
    cursor: pointer;
    font-weight: 700;
    opacity: 0.6;
}
.icvpsb-filepill .icvpsb-filepill-x:hover { opacity: 1; }
@keyframes icvpsb-pop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.icvpsb-target-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
}
.icvpsb-target-label select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.icvpsb-btn {
    position: relative;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.2s ease;
}
.icvpsb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.icvpsb-btn:disabled { opacity: 0.75; cursor: wait; }
.icvpsb-btn .icvpsb-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: icvpsb-spin 0.7s linear infinite;
}
@keyframes icvpsb-spin {
    to { transform: rotate(360deg); }
}
.icvpsb-status {
    margin-top: 4px;
    min-height: 1.4em;
    font-size: 15px;
    color: #334155;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: icvpsb-fadein 0.3s ease;
}
@keyframes icvpsb-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.icvpsb-status .icvpsb-spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 3px solid #e0e7ff;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: icvpsb-spin 0.7s linear infinite;
}
.icvpsb-status .icvpsb-dots::after {
    content: '';
    animation: icvpsb-dots 1.4s steps(4) infinite;
}
@keyframes icvpsb-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}
.icvpsb-status.success { color: #15803d; font-weight: 600; }
.icvpsb-status.error { color: #dc2626; font-weight: 600; }
.icvpsb-check {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: icvpsb-pop 0.3s ease;
}
.icvpsb-check svg { width: 13px; height: 13px; }
.icvpsb-check path {
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: icvpsb-draw 0.4s ease 0.1s forwards;
}
@keyframes icvpsb-draw {
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .icvpsb-btn .icvpsb-btn-spinner,
    .icvpsb-status .icvpsb-spinner,
    .icvpsb-status .icvpsb-dots::after,
    .icvpsb-progress-bar { animation: none; }
    .icvpsb-drop, .icvpsb-btn, .icvpsb-filepill, .icvpsb-status { transition: none; animation: none; }
}
.icvpsb-progress {
    display: none;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.icvpsb-progress.show { display: block; }
.icvpsb-progress-bar {
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    animation: icvpsb-slide 1.1s ease-in-out infinite;
}
@keyframes icvpsb-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}
.icvpsb-reset {
    display: none;
    margin: 10px auto 0;
    padding: 8px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.icvpsb-reset.show { display: block; }
.icvpsb-reset:hover { border-color: #2563eb; color: #2563eb; }
