/* Emerald v0.1.22.2 · seamless REGULAR ↔ DEX switch */
#emerald-dex-switch{position:fixed;z-index:99989;top:max(10px,env(safe-area-inset-top));right:max(154px,calc(env(safe-area-inset-right) + 154px));min-width:78px;padding:8px 12px 7px;border:1px solid rgba(126,233,209,.48);border-radius:13px;background:rgba(8,22,29,.92);box-shadow:0 8px 28px #0006,inset 0 1px rgba(255,255,255,.05);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#ecfff9;text-align:center;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;line-height:1;cursor:pointer;appearance:none;-webkit-appearance:none}
#emerald-dex-switch b{display:block;font-size:12px;font-weight:900;letter-spacing:.12em}
#emerald-dex-switch small{display:block;margin-top:4px;color:#8ec9bd;font-size:7px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
#emerald-dex-switch:hover,#emerald-dex-switch:focus-visible{border-color:#78e7cd;background:#123a3d;outline:none}
html[data-emerald-mode="dex"] #emerald-dex-switch{background:rgba(20,57,60,.96);border-color:#78e7cd}
/* Strategy context is mounted once but invisible in regular mode. */
html[data-emerald-mode="regular"] .spx-context,
html[data-emerald-mode="regular"] .spx-live-snapshot{display:none!important}
@media(max-width:700px){#emerald-dex-switch{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));min-width:64px;padding:7px 9px}#emerald-dex-switch small{display:none}}
