.slider-captcha {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.slider-captcha-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.slider-captcha-entry-status {
    font-size: 13px;
    color: #64748b;
}

.slider-captcha-entry-status.is-verified {
    color: #15803d;
}

.slider-captcha-trigger.is-verified {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #15803d;
}

.slider-captcha-modal-open {
    overflow: hidden;
}

.slider-captcha-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

.slider-captcha-modal[hidden] {
    display: none;
}

.slider-captcha-modal-dialog {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.slider-captcha-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.slider-captcha-modal-title {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.slider-captcha-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.is-disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.slider-captcha[hidden] {
    display: none;
}

.slider-captcha-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.slider-captcha-bg,
.slider-captcha-piece {
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-captcha-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-captcha-piece-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 54px;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.24));
}

.slider-captcha-piece {
    width: 100%;
    height: 100%;
}

.slider-captcha-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.slider-captcha-status {
    min-height: 20px;
    color: #64748b;
    font-size: 13px;
}

.slider-captcha.is-success .slider-captcha-status {
    color: #15803d;
}

.slider-captcha.is-error .slider-captcha-status {
    color: #dc2626;
}

.slider-captcha-refresh {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.slider-captcha-track {
    position: relative;
    height: 44px;
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.slider-captcha-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #bfdbfe, #93c5fd);
}

.slider-captcha-track-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.slider-captcha-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    cursor: grab;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    z-index: 1;
}

.slider-captcha-handle:active {
    cursor: grabbing;
}

.slider-captcha.is-success .slider-captcha-progress {
    background: linear-gradient(90deg, #86efac, #4ade80);
}

.slider-captcha.is-success .slider-captcha-handle {
    background: #16a34a;
}

.slider-captcha.is-loading .slider-captcha-track-text {
    color: #94a3b8;
}

@media (max-width: 480px) {
    .slider-captcha { max-width: 100%; }
    .slider-captcha-modal-dialog { padding: 16px; }
}
