/* Слайдер-капча (модуль captcha) — цвета из переменных ui.css, работают в обеих темах */
.captcha { display: grid; gap: 8px; user-select: none; -webkit-user-select: none; }
.captcha-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.captcha-refresh { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.captcha-refresh:hover { color: var(--text); background: var(--primary-soft); }
.captcha-stage { position: relative; width: 100%; aspect-ratio: 320 / 180; border-radius: var(--radius); overflow: hidden;
    background: var(--bg); border: 1px solid var(--border); }
.captcha-bg { display: block; width: 100%; height: 100%; pointer-events: none; }
.captcha-piece { position: absolute; left: 0; top: 0; height: auto; pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.captcha-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
    color: var(--muted); font-size: 13px; background: var(--surface); }
.captcha-track { position: relative; height: 44px; border-radius: 999px; background: var(--bg);
    border: 1px solid var(--border-strong); overflow: hidden; touch-action: none; }
.captcha-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--primary-soft); }
.captcha-hint { position: absolute; inset: 0 12px 0 56px; display: flex; align-items: center; font-size: 12.5px;
    color: var(--muted); pointer-events: none; line-height: 1.2; }
.captcha-handle { position: absolute; left: 0; top: 0; width: 44px; height: 42px; border-radius: 999px; display: grid;
    place-items: center; background: var(--primary); color: var(--on-primary); cursor: grab; touch-action: none; }
.captcha.is-drag .captcha-handle { cursor: grabbing; }
.captcha.is-done .captcha-handle { background: var(--success); cursor: default; }
.captcha.is-done .captcha-fill { background: var(--success-soft); }
.captcha.is-fail .captcha-handle { background: var(--danger); }
.captcha-msg { min-height: 18px; font-size: 13px; color: var(--muted); }
.captcha-msg.is-ok { color: var(--success); }
.captcha-msg.is-error { color: var(--danger); }
.captcha-handle, .captcha-fill { transition: background-color .2s; }
.captcha:not(.is-drag) .captcha-handle { transition: transform .25s ease, background-color .2s; }
.captcha:not(.is-drag) .captcha-fill { transition: width .25s ease, background-color .2s; }
.captcha:not(.is-drag) .captcha-piece { transition: left .25s ease; }
