html,body{margin:0;height:100%;background:#0a1022}
#tw{position:fixed;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 70px);z-index:9600;display:flex;flex-direction:column;gap:8px;pointer-events:none;font-family:"Segoe UI",system-ui,sans-serif}
.tt{background:#0f172a;color:#fff;border-radius:14px;padding:12px 16px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:opacity .4s,transform .4s}.tt.error{background:#b91c1c}.tt.warn{background:#b45309}.tt.info{background:#1e3a8a}.tt.out{opacity:0;transform:translateY(10px)}
.cf{position:fixed;inset:0;z-index:9700;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center;font-family:"Segoe UI",system-ui,sans-serif}
.cfb{background:#fff;width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:20px 20px calc(env(safe-area-inset-bottom,0px) + 18px);display:flex;flex-direction:column;gap:14px;animation:up .25s ease-out}@keyframes up{from{transform:translateY(40px);opacity:0}}
.cfh{font-size:17px;font-weight:700;display:flex;align-items:center;gap:10px;color:#0f172a}.cfh i{width:10px;height:10px;border-radius:5px;background:#2563eb}
.cfs{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#0f172a}.cfs>div{display:flex;justify-content:space-between;gap:10px}.cfs span{color:#64748b}.cfs b{text-align:right;word-break:break-all}.cfs .tm{color:#b45309;font-weight:600}
.cfa{display:flex;gap:10px}.cfa button{flex:1;height:50px;border-radius:14px;border:1px solid #cbd5e1;background:#fff;font:inherit;font-weight:600;font-size:15px}.cfa .p{background:#1d4ed8;color:#fff;border:0;font-weight:700}
.tbadge{position:fixed;top:calc(env(safe-area-inset-top,0px) + 4px);left:50%;transform:translateX(-50%);z-index:9500;background:#f59e0b;color:#1f2937;font:700 10px "Segoe UI",system-ui,sans-serif;letter-spacing:.08em;padding:2px 10px;border-radius:999px}
#off{font-family:"Segoe UI",system-ui,sans-serif;text-align:center;padding:80px 20px;color:#334155}#off button{margin-top:14px;height:48px;padding:0 22px;border-radius:14px;border:0;background:#1d4ed8;color:#fff;font:inherit;font-weight:700}
