.captcha-form__notice { min-height: 20px; margin: 10px 0 0; color: #718395; font-size: 12px; line-height: 1.5; }
.captcha-form__notice[data-state="loading"] { color: #47657e; }
.captcha-form__notice[data-state="success"] { color: #14785f; font-weight: 700; }
.captcha-form__notice[data-state="error"] { color: #aa3b3b; font-weight: 700; }
.theme-popover { top: 50%; left: 50%; width: min(500px, calc(100vw - 24px)); height: min(400px, calc(100vh - 24px)); max-height: calc(100vh - 24px); margin: 0; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; transform: translate(-50%, -50%); }

.captcha-modal-backdrop { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(10, 25, 39, .58); box-sizing: border-box; }
.captcha-modal-backdrop[hidden] { display: none !important; }
.captcha-modal-open { overflow: hidden; }
.captcha-modal { width: min(100%, 460px); max-height: min(92vh, 560px); overflow-y: auto; border: 1px solid #dbe5ec; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px #071a2c55; outline: none; animation: captcha-modal-in .16s ease-out; }
.captcha-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e8eef2; }
.captcha-modal__header h2 { margin: 0; color: #173b57; font: 700 17px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif; }
.captcha-modal__close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #53697d; background: transparent; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.captcha-modal__close:hover, .captcha-modal__close:focus-visible { color: #173b57; background: #eef3f6; }
.captcha-modal__body { padding: 18px; }
.captcha-widget { width: 100%; max-width: 420px; margin: 0 auto; color: #22384d; font: 14px/1.45 "Microsoft YaHei", "PingFang SC", sans-serif; }
.captcha-board { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid #d6e1e9; border-radius: 7px; background: #eef3f7; box-sizing: border-box; touch-action: pan-y; }
.captcha-background { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.captcha-piece { position: absolute; top: 0; left: 0; width: 15.484%; height: auto; aspect-ratio: 1; object-fit: fill; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 2px 2px #10283b88); }
.captcha-refresh { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; border: 0; border-radius: 6px; color: #fff; background: #17334dcc; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.captcha-refresh:hover { background: #17334d; }
.captcha-refresh:disabled { cursor: wait; opacity: .6; }
.captcha-track { position: relative; height: 42px; margin-top: 11px; overflow: hidden; border: 1px solid #d4e0e9; border-radius: 7px; background: #f5f8fa; box-sizing: border-box; touch-action: none; }
.captcha-track-copy { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #718395; font-size: 13px; pointer-events: none; }
.captcha-track-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #e4f3fa; border-right: 1px solid #1680b8; }
.captcha-knob { position: absolute; z-index: 2; top: 1px; left: 0; width: 40px; height: 38px; padding: 0; border: 1px solid #cbd8e2; border-radius: 6px; color: #0878b9; background: #fff; box-shadow: 0 1px 4px #20394e26; font: 28px/1 Arial, sans-serif; cursor: grab; touch-action: none; user-select: none; }
.captcha-knob:active { cursor: grabbing; background: #f1f9fd; }
.captcha-knob:disabled { cursor: default; }
.captcha-knob.is-success { color: #fff; border-color: #188166; background: #188166; }
.captcha-knob.is-error { color: #fff; border-color: #b94747; background: #b94747; }
.captcha-status { min-height: 20px; padding-top: 7px; color: #65798c; font-size: 12px; }
.captcha-status[data-state="success"] { color: #14785f; }
.captcha-status[data-state="error"] { color: #aa3b3b; }
.captcha-status[data-state="loading"] { color: #47657e; }
@keyframes captcha-modal-in { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .theme-popover { width: min(96vw, 430px); }
  .captcha-modal-backdrop { padding: 12px; }
  .captcha-modal { width: 100%; max-height: 90vh; border-radius: 10px; }
  .captcha-modal__header { padding: 13px 15px; }
  .captcha-modal__body { padding: 14px 13px 16px; }
  .captcha-track { height: 46px; }
  .captcha-knob { height: 42px; }
}
