.dg-btn{position:fixed;right:18px;bottom:18px;z-index:2147483000;font:600 13px/1.2 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:.02em;color:#f6f7f9;background:#1f2733;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 16px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.22);opacity:.86;transition:opacity .2s,transform .2s,box-shadow .2s}
.dg-btn:hover{opacity:1;transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.3)}
.dg-btn:focus-visible{outline:2px solid #7aa2ff;outline-offset:2px}
.dg-btn::before{content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#5ad19a;vertical-align:middle;box-shadow:0 0 0 3px rgba(90,209,154,.2)}
.dg-ov{position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(10,13,18,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:dg-fade .18s ease}
.dg-card{position:relative;width:100%;max-width:340px;box-sizing:border-box;background:#fbfcfe;color:#1a2230;border-radius:16px;padding:26px 24px 24px;box-shadow:0 24px 70px rgba(0,0,0,.4);animation:dg-pop .2s ease}
.dg-x{position:absolute;top:10px;right:12px;width:30px;height:30px;font-size:20px;line-height:1;color:#8b93a1;background:none;border:0;border-radius:8px;cursor:pointer}
.dg-x:hover{background:rgba(0,0,0,.06);color:#333}
.dg-h{font:700 16px/1.3 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;text-align:center;margin-bottom:12px}
.dg-msg{font:400 13px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#48505e;text-align:center;margin:8px 0}
.dg-err{color:#c23b46}
.dg-lnk{color:#2b6cf0;text-decoration:none;font-weight:600}
.dg-lnk:hover{text-decoration:underline}
.dg-code{font:700 26px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.16em;text-align:center;color:#111826;background:#eef1f6;border-radius:10px;padding:12px 8px;margin:12px 0}
.dg-qr{display:flex;justify-content:center;margin:14px 0 6px;min-height:60px}
.dg-qrc{width:auto;max-width:100%;height:auto;border-radius:8px;image-rendering:pixelated;background:#fff;padding:6px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.dg-wait{color:#6b7280;font-size:12px}
.dg-ok{width:46px;height:46px;margin:6px auto 2px;border-radius:50%;background:#5ad19a;color:#fff;font-size:26px;line-height:46px;text-align:center}
.dg-act{text-align:center;margin-top:14px}
.dg-b2{font:600 13px/1 system-ui,sans-serif;color:#fff;background:#2b6cf0;border:0;border-radius:10px;padding:10px 20px;cursor:pointer}
.dg-b2:hover{background:#245ad0}
.dg-b2:focus-visible{outline:2px solid #7aa2ff;outline-offset:2px}
.dg-spin{display:inline-block;width:22px;height:22px;margin:8px auto 0;border:3px solid rgba(43,108,240,.25);border-top-color:#2b6cf0;border-radius:50%;animation:dg-sp .8s linear infinite}
.dg-sm{width:13px;height:13px;border-width:2px;margin:0;vertical-align:middle}
@keyframes dg-sp{to{transform:rotate(360deg)}}
@keyframes dg-fade{from{opacity:0}}
@keyframes dg-pop{from{opacity:0;transform:translateY(8px) scale(.98)}}
@media (prefers-color-scheme:dark){.dg-card{background:#161b23;color:#e7eaf0}.dg-code{background:#0f141b;color:#f2f5fa}.dg-msg{color:#9aa3b2}.dg-x:hover{background:rgba(255,255,255,.08);color:#ddd}.dg-qrc{box-shadow:0 0 0 1px rgba(255,255,255,.12)}}
@media (max-width:400px){.dg-card{max-width:100%}.dg-code{font-size:22px}}
@media (prefers-reduced-motion:reduce){.dg-btn,.dg-ov,.dg-card{transition:none;animation:none}.dg-spin{animation:none;border-top-color:rgba(43,108,240,.6)}}
