/* 居中的确认弹窗（confirm.js）。白底、大圆角、一圈很轻的投影；背后的页面压暗并虚化一点。 */
.xc { position: fixed; inset: 0; margin: auto; width: min(380px, calc(100vw - 40px)); height: fit-content; max-height: calc(100vh - 40px); box-sizing: border-box; padding: 30px 26px 24px;
  border: 0; border-radius: 24px; color: #1d2129; background: #fff; text-align: center; font-size: 14px; line-height: 1.6;
  box-shadow: 0 32px 80px -28px rgb(10 53 82 / 45%), 0 2px 8px rgb(10 53 82 / 8%); animation: xc-pop .24s cubic-bezier(.22, 1, .36, 1) both; }
.xc::backdrop { background: rgb(15 35 52 / 30%); backdrop-filter: blur(4px); animation: xc-fade .2s ease both; }
.xc-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #1274a5; background: #e8f6fc; }
.xc-icon.danger { color: #d9463c; background: #fdeeec; }
.xc-icon svg { width: 24px; height: 24px; }
.xc h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.xc p { margin: 8px 0 0; color: #6b7785; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
.xc-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.xc-btn { height: 44px; padding: 0 12px; border: 0; border-radius: 14px; color: #1d2129; background: #f2f3f5; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.xc-btn:hover { background: #e8eaee; }
.xc-btn:active { transform: scale(.98); }
.xc-btn.danger { color: #fff; background: #e5484d; box-shadow: 0 10px 20px -12px rgb(229 72 77 / 80%); }
.xc-btn.danger:hover { background: #d63c41; }
.xc-btn.primary { color: #fff; background: linear-gradient(135deg, #30acd8, #1783b3); box-shadow: 0 10px 20px -12px rgb(18 116 165 / 80%); }
.xc-btn.primary:hover { background: linear-gradient(135deg, #2ba2cd, #14779f); }
.xc-btn:focus-visible { outline: 2px solid #30acd8; outline-offset: 2px; }
@keyframes xc-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes xc-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xc, .xc::backdrop { animation: none; } }
