:where(html){--b1:#5e6bff;--b1r:94,107,255;--b1l:#a5b0ff;--b2:#14d6e8;--b2r:20,214,232;--b3:#3cf2b4;--b3r:60,242,180;--b4:#9b6bff;--b4r:155,107,255;--b4l:#b3a2ff;--on-b:#fff;--s0:#07090f;--s1:#0b0e17;--s2:#11151f;--s3:#1a2030}
/* Crypto Suite AI v2.8 — help desk inside the ADA widget, popups, view-as banner */
.hd-tabs{display:flex;gap:4px;padding:8px 10px 0;background:var(--b1);position:sticky;top:52px;z-index:1}
.hd-tab{flex:1;border:0;border-radius:10px 10px 0 0;padding:9px 8px;font:600 14px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;background:rgba(255,255,255,.14);color:#fff;position:relative}
.hd-tab.on{background:#fff;color:var(--b1)}
.hd-tab:focus-visible{outline:3px solid #facc15;outline-offset:-3px}
.hd-dot{position:absolute;top:7px;right:10px;width:9px;height:9px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 2px #fff}
.a11y-panel.hd-chatmode{display:flex;flex-direction:column;height:min(600px,calc(100vh - 110px))}
.a11y-panel.hd-chatmode[hidden]{display:none}
.hd-view{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 12px 12px;color:#111827}
.hd-view[hidden]{display:none}
.hd-intro{margin:14px 2px 6px;padding:12px 14px;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.hd-intro b{display:block;font-size:15px}.hd-intro span{font-size:13px}
.hd-msgs{flex:1;min-height:120px;overflow-y:auto;padding:8px 2px;display:flex;flex-direction:column;gap:8px}
.hd-m{display:flex;flex-direction:column;max-width:86%}
.hd-m .hd-b{padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.hd-m a{color:inherit;text-decoration:underline}
.hd-visitor{align-self:flex-end}.hd-visitor .hd-b{background:var(--b1);color:#fff;border-bottom-right-radius:4px}
.hd-agent,.hd-ai{align-self:flex-start}.hd-agent .hd-b{background:#f1f5f9;border-bottom-left-radius:4px}
.hd-ai .hd-b{background:linear-gradient(135deg,#f5f3ff,#ecfeff);border:1px solid #e0e7ff;border-bottom-left-radius:4px}
.hd-who-l{font-size:11.5px;color:#64748b;margin:0 0 3px 4px;font-weight:600}
.hd-system{align-self:center;max-width:94%}.hd-system .hd-b{background:none;color:#64748b;font-size:12.5px;text-align:center;padding:2px 6px}
.hd-typing{display:flex;gap:4px;padding:6px 8px}.hd-typing[hidden]{display:none}
.hd-typing i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:hdBounce 1s infinite}.hd-typing i:nth-child(2){animation-delay:.15s}.hd-typing i:nth-child(3){animation-delay:.3s}
@keyframes hdBounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.hd-who{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0 6px}.hd-who[hidden]{display:none}
.hd-who input,.hd-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font:14px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#111827;background:#fff}
.hd-form{display:flex;gap:6px;align-items:flex-end}
.hd-form textarea{resize:none;min-height:42px;max-height:120px}
.hd-form textarea:focus,.hd-who input:focus{outline:2px solid var(--b1);outline-offset:0;border-color:transparent}
.hd-form button{flex:none;width:42px;height:42px;border-radius:12px;border:0;background:var(--b1);color:#fff;font-size:17px;cursor:pointer}
.hd-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:7px}
.hd-human{border:0;background:none;color:var(--b1);font:600 12.5px system-ui,sans-serif;cursor:pointer;padding:2px 0;text-decoration:underline}
.hd-note{font-size:11.5px;color:#94a3b8}
.hd-fab{position:fixed;right:24px;bottom:84px;z-index:2147483000;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--b1),var(--b2));box-shadow:0 10px 24px -8px rgba(0,0,0,.6),0 0 0 3px rgba(255,255,255,.85);transition:transform .15s}
.hd-fab:hover{transform:scale(1.08)}.hd-fab:focus-visible{outline:3px solid #facc15;outline-offset:3px}
.hd-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font:700 11px/18px system-ui,sans-serif;box-shadow:0 0 0 2px #fff}
.hd-badge[hidden]{display:none}
.hd-toast{position:fixed;right:76px;bottom:88px;z-index:2147483000;max-width:280px;text-align:left;border:0;cursor:pointer;padding:10px 14px;border-radius:14px 14px 4px 14px;background:#fff;color:#111827;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);font:13.5px/1.4 system-ui,sans-serif;animation:hdIn .35s cubic-bezier(.2,.8,.2,1)}
.hd-toast[hidden]{display:none}.hd-toast b{display:block;font-size:12px;color:var(--b1);margin-bottom:2px}
@keyframes hdIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.hd-pops{position:fixed;top:16px;right:16px;z-index:2147483002;display:flex;flex-direction:column;gap:10px;width:min(340px,calc(100vw - 32px))}
.hd-pop{position:relative;padding:14px 16px 12px;border-radius:16px;background:#0f172a;color:#e2e8f0;border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 60px -16px rgba(0,0,0,.7);font:14px/1.4 system-ui,-apple-system,sans-serif;animation:hdIn .35s cubic-bezier(.2,.8,.2,1)}
.hd-pop b{display:block;font-size:15px;margin-bottom:3px;color:#fff}.hd-pop span{display:block;color:#cbd5e1;overflow-wrap:anywhere}
.hd-call{border-color:rgba(52,211,153,.55);box-shadow:0 0 0 0 rgba(52,211,153,.6),0 24px 60px -16px rgba(0,0,0,.7);animation:hdIn .35s cubic-bezier(.2,.8,.2,1),hdRing 1.6s infinite .4s}
@keyframes hdRing{0%{box-shadow:0 0 0 0 rgba(52,211,153,.55),0 24px 60px -16px rgba(0,0,0,.7)}70%{box-shadow:0 0 0 14px rgba(52,211,153,0),0 24px 60px -16px rgba(0,0,0,.7)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0),0 24px 60px -16px rgba(0,0,0,.7)}}
.hd-alert{border-color:rgba(var(--b1r),.55)}
.hd-x{position:absolute;top:6px;right:8px;border:0;background:none;color:#94a3b8;font-size:20px;cursor:pointer;line-height:1}
.hd-pact{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hd-pbtn{padding:6px 12px;border-radius:10px;background:var(--b1);color:#fff!important;text-decoration:none;font-weight:600;font-size:13px}
.hd-call .hd-pbtn:first-child{background:#059669}
.imp-bar{position:sticky;top:0;z-index:2147483003;display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:8px 14px;background:repeating-linear-gradient(135deg,#b45309,#b45309 14px,#92400e 14px,#92400e 28px);color:#fff;font:600 13.5px system-ui,sans-serif}
.imp-bar form{margin:0}.imp-bar button{border:0;border-radius:8px;padding:5px 12px;background:#fff;color:#92400e;font-weight:700;cursor:pointer}
@media (prefers-reduced-motion: reduce){.hd-call,.hd-pop,.hd-toast{animation:none}.hd-typing i{animation:none}}
@media (max-width:520px){.hd-toast{right:16px;bottom:140px}}
