/* Only the same-origin /?mobile=1 embedded application opts in. Desktop is unchanged. */
html.dbot-mobile-frame,body.dbot-mobile-embed{margin:0;min-width:0;min-height:100%;overflow-x:hidden;background:var(--bg,#0b1016)}
/* Suppress browser pinch/double-tap zoom, including independently scrolling dialogs.
   More specific controls retain their own touch behavior (for example the range slider). */
html.dbot-mobile-frame,.dbot-mobile-embed,.dbot-mobile-embed *{touch-action:pan-x pan-y}
.dbot-mobile-embed .swap-chart-surface{touch-action:pan-y}
.dbot-mobile-embed{transition:none;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.dbot-mobile-embed *{box-sizing:border-box;min-width:0}
.dbot-mobile-embed .page{width:100%;max-width:none;margin:0;padding:0}
.dbot-mobile-embed .top-nav,.dbot-mobile-embed #authGate,.dbot-mobile-embed .main-column>.view:not(#swapView):not(#dbotConfigView){display:none!important}
.dbot-mobile-embed .app-shell{display:block!important;min-width:0}
.dbot-mobile-embed .main-column{min-width:0;width:100%}
.dbot-mobile-embed[data-mobile-view="paused"] .page,.dbot-mobile-embed[data-mobile-view^="monitor"] .main-column{display:none!important}
.dbot-mobile-embed[data-mobile-view="swap"] #dbotConfigView,.dbot-mobile-embed[data-mobile-view="settings"] #swapView{display:none!important}
.dbot-mobile-embed input:not([type="checkbox"]):not([type="range"]),.dbot-mobile-embed select,.dbot-mobile-embed textarea{font-size:16px!important;max-width:100%}
.dbot-mobile-embed button{touch-action:manipulation}
.dbot-mobile-embed .v4-field,.dbot-mobile-embed .swap-sidebar-field{font-size:12px}
.dbot-mobile-embed .v4-input,.dbot-mobile-embed .v4-select,.dbot-mobile-embed .swap-chain-select{min-height:42px}
.dbot-mobile-embed .swap-plain-btn{min-height:34px}
.dbot-mobile-embed #mobileTradeContext{margin:8px 8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}
.dbot-mobile-embed #mobileTradeContext>summary{padding:13px;color:var(--text);font-size:13px;font-weight:700;cursor:pointer}
.dbot-mobile-embed #quickSettingsFields{display:grid;grid-template-columns:1fr;gap:10px;padding:12px;border-top:1px solid var(--line)}
.dbot-mobile-embed #swapDbotFloat{position:static!important;display:flex;flex-direction:column;margin:0 8px 14px;width:calc(100% - 16px)!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;resize:none!important;overflow:visible!important;box-shadow:none}
.dbot-mobile-embed #swapDbotFloat:after,.dbot-mobile-embed #swapDbotMinimize,.dbot-mobile-embed #swapDbotClose,.dbot-mobile-embed #quickSettingsToggle,.dbot-mobile-embed #swapOpenTrade{display:none!important}
.dbot-mobile-embed .swap-dbot-head{cursor:default;touch-action:auto;padding:12px}
.dbot-mobile-embed .swap-dbot-body{display:grid;padding:10px;gap:10px;overflow:visible}
.dbot-mobile-embed .quick-trade-input{height:44px}
.dbot-mobile-embed .quick-preset{height:34px;font-size:12px}
.dbot-mobile-embed .quick-order-btn{height:48px;font-size:16px}
.dbot-mobile-embed .quick-trade-label{font-size:12px;gap:8px;flex-wrap:wrap}
.dbot-mobile-embed .quick-trade-label>span:last-child{max-width:100%;font-size:11px}
.dbot-mobile-embed #quickTriggerToggle{position:static!important;order:2;width:auto;height:38px;margin:0 10px 10px;border:1px solid #405060;border-radius:8px;font-size:13px;box-shadow:none}
.dbot-mobile-embed #quickTriggerPanel{position:static!important;order:3;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0 10px 10px;box-shadow:none}
.dbot-mobile-embed #quickTriggerPanel[hidden]{display:none!important}
.dbot-mobile-embed #quickOrderStatus{height:160px!important;min-height:160px!important;max-height:160px!important}
.dbot-mobile-embed .mobile-trade-hint{order:4;margin:0 12px 12px;color:var(--muted);font-size:11px;line-height:1.6}
.dbot-mobile-embed .swap-layout,.dbot-mobile-embed .swap-layout.favorites-collapsed{display:flex;flex-direction:column;min-height:0;margin:0 8px;gap:12px}
.dbot-mobile-embed .swap-chart-panel{order:1;min-height:0}
.dbot-mobile-embed .swap-favorites{order:2;min-height:0;width:100%!important}
.dbot-mobile-embed .swap-chart-canvas,.dbot-mobile-embed .swap-chart-surface{height:280px;min-height:280px}
.dbot-mobile-embed .swap-token-bar{padding:12px;gap:10px}
.dbot-mobile-embed .swap-market-stat{padding:9px}
.dbot-mobile-embed .swap-market-value{font-size:13px}
.dbot-mobile-embed .swap-trades-scroll,.dbot-mobile-embed .swap-pool-table-wrap{overflow:auto;max-width:100%}
.dbot-mobile-embed .swap-groups{max-height:340px;min-height:0}
.dbot-mobile-embed .dbot-config-card{padding:12px;border:0;border-radius:0}
.dbot-mobile-embed .dbot-config-title{font-size:20px}
.dbot-mobile-embed .dbot-fixed-form,.dbot-mobile-embed .dbot-config-form,.dbot-mobile-embed .dbot-wallet-row,.dbot-mobile-embed .dbot-rpc-grid,.dbot-mobile-embed .dbot-rpc-pair{grid-template-columns:minmax(0,1fr)}
.dbot-mobile-embed .dbot-rpc-section{padding:12px;overflow:hidden}
.dbot-mobile-embed .dbot-rpc-actions{gap:7px;flex-wrap:wrap}
.dbot-mobile-embed .dbot-rpc-head{flex-direction:column;align-items:stretch}
.dbot-mobile-embed .dbot-rpc-chain{width:100%}
.dbot-mobile-embed .dbot-rpc-state{min-width:0;overflow-wrap:anywhere}
.dbot-mobile-embed .dbot-server-list,.dbot-mobile-embed .dbot-selection-list{max-width:100%;overflow-wrap:anywhere}
.dbot-mobile-embed #importantMonitor,.dbot-mobile-embed #smartMonitor{position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:calc(100dvh - 20px)!important;max-height:none!important;border-radius:0;resize:none;box-shadow:none}
.dbot-mobile-embed[data-mobile-view="monitor-important"] #importantMonitor,.dbot-mobile-embed[data-mobile-view="monitor-realtime"] #smartMonitor{display:flex!important}
.dbot-mobile-embed:not([data-mobile-view="monitor-important"]) #importantMonitor,.dbot-mobile-embed:not([data-mobile-view="monitor-realtime"]) #smartMonitor{display:none!important}
.dbot-mobile-embed #importantMonitor:after,.dbot-mobile-embed #smartMonitor:after,.dbot-mobile-embed #importantPanelClose,.dbot-mobile-embed #monitorPanelClose,.dbot-mobile-embed #importantResetWindow,.dbot-mobile-embed #monitorResetWindow{display:none!important}
.dbot-mobile-embed .important-head,.dbot-mobile-embed .monitor-head{cursor:default;touch-action:auto}
.dbot-mobile-embed .important-feed,.dbot-mobile-embed .monitor-feed{overflow:visible;max-height:none;flex:1}
.dbot-mobile-embed .important-tools,.dbot-mobile-embed .monitor-head-actions{flex-wrap:wrap}
.dbot-mobile-embed .important-card,.dbot-mobile-embed .monitor-card{overflow-wrap:anywhere}
.dbot-mobile-embed dialog{width:calc(100% - 20px);max-width:430px;max-height:90dvh;overflow:auto}

html.dbot-mobile-frame{--ms-button:#edf4f8;--ms-button-text:#101820;--ms-disabled-text:#687782;--ms-backdrop:#02090dcc;--bg:#080f14;--card:#101b23;--soft:#14242c;--text:#f3f8fb;--muted:#99acb8;--line:#24353d}
html.dbot-mobile-frame[data-theme="day"]{--ms-button:#17252e;--ms-button-text:#fff;--ms-disabled-text:#9aa6ae;--ms-backdrop:#18344370;--bg:#f7f9fa;--card:#fff;--soft:#edf2f5;--text:#17252e;--muted:#627681;--line:#d9e2e6}
/* The mobile exchange retains the shared order engine and hides its desktop controls. */
.dbot-mobile-embed #swapView>.swap-layout,.dbot-mobile-embed #swapDbotFloat,.dbot-mobile-embed #quickTriggerPanel,.dbot-mobile-embed #quickTriggerToggle,.dbot-mobile-embed #quickSettingsFields{display:none!important}
.dbot-mobile-embed[data-mobile-view="swap"]{min-height:100dvh;background:var(--bg);color:var(--text)}
.dbot-mobile-embed #mobileSwap{padding:8px 20px 24px;max-width:620px;margin:0 auto;color:var(--text);background:var(--bg)}
.dbot-mobile-embed .mobile-swap-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;margin-bottom:10px}
.dbot-mobile-embed .mobile-swap-heading h1{margin:0;font-size:28px;font-weight:750;letter-spacing:-.8px}
.dbot-mobile-embed .mobile-swap-heading-actions{display:flex;gap:6px;align-items:center}
.dbot-mobile-embed .mobile-swap-heading-actions button{display:grid;place-items:center;width:44px;height:44px;padding:9px;border:0;border-radius:50%;background:transparent;color:var(--text)}
.dbot-mobile-embed .mobile-swap-heading-actions button:disabled{color:var(--ms-disabled-text);cursor:default}
.dbot-mobile-embed .mobile-swap-heading-actions svg,.dbot-mobile-embed #mobileSwapReverse svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dbot-mobile-embed .mobile-swap-tools{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.dbot-mobile-embed #mobileSwapContext{max-width:100%;min-height:36px;padding:8px 12px;border:0;border-radius:18px;background:var(--soft);color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.dbot-mobile-embed .mobile-swap-mode{display:flex;align-items:center;min-height:40px;margin-bottom:8px}
.dbot-mobile-embed #mobileSwapMarketMode{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 24px;border-radius:24px;background:var(--ms-button);color:var(--ms-button-text);font-size:16px;font-weight:700}
.dbot-mobile-embed .mobile-swap-pair{background:var(--bg);border:0;border-radius:0;overflow:visible}
.dbot-mobile-embed .mobile-swap-row{padding:14px 0 25px}
.dbot-mobile-embed .mobile-swap-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:24px;color:var(--muted);font-size:12px}
.dbot-mobile-embed .mobile-swap-row-head button{background:none;border:0;padding:0;min-height:26px;color:var(--muted);font-size:12px;text-align:right;overflow-wrap:anywhere}
.dbot-mobile-embed .mobile-swap-row-main{display:flex;align-items:center;gap:12px;min-height:60px}
.dbot-mobile-embed .mobile-swap-token{display:flex;align-items:center;gap:9px;flex:0 1 54%;max-width:54%;padding:0;min-height:52px;border:0;background:none;color:var(--ms-button);font-size:23px;font-weight:750;letter-spacing:-.6px;text-align:left}
.dbot-mobile-embed .mobile-swap-token>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbot-mobile-embed .mobile-swap-token>span:last-child{color:var(--text);font-size:18px;flex:none;letter-spacing:0}
.dbot-mobile-embed .mobile-swap-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;overflow:hidden;background:var(--ms-button);color:var(--ms-button-text);font-size:12px;font-weight:750;letter-spacing:0}
.dbot-mobile-embed .mobile-swap-icon img{display:block;width:100%;height:100%;object-fit:cover}
.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{width:0;flex:1;min-width:0;max-width:none;text-align:right;font-family:inherit;font-size:34px!important;font-weight:600;letter-spacing:-1.3px;color:var(--text);font-variant-numeric:tabular-nums;background:none;border:0;border-radius:0;padding:6px 0;line-height:1.4;outline:none;box-shadow:none}
.dbot-mobile-embed #mobileSwapAmount::placeholder,.dbot-mobile-embed #mobileSwapOutput.is-empty{color:var(--ms-disabled-text);opacity:1}
.dbot-mobile-embed #mobileSwapOutput{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbot-mobile-embed .mobile-swap-divider{position:relative;height:44px;display:flex;align-items:center;justify-content:center;margin:0 -20px}
.dbot-mobile-embed .mobile-swap-divider:before{content:"";position:absolute;left:0;right:0;height:1px;background:var(--line)}
.dbot-mobile-embed #mobileSwapReverse{position:relative;z-index:1;display:grid;place-items:center;width:48px;height:48px;padding:11px;border:0;border-radius:50%;color:var(--ms-button-text);background:var(--ms-button)}
.dbot-mobile-embed .mobile-swap-divider+.mobile-swap-row{padding-top:18px;padding-bottom:14px}
.dbot-mobile-embed .mobile-swap-quote{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:54px;padding:8px 0;color:var(--muted);font-size:11px;line-height:1.6}
.dbot-mobile-embed #mobileSwapQuoteStatus{overflow-wrap:anywhere}
.dbot-mobile-embed #mobileSwapSlippage{flex:none;min-height:44px;border:0;background:none;color:var(--muted);font-size:11px;padding:0 2px}
.dbot-mobile-embed .mobile-swap-submit{width:100%;min-height:58px;padding:14px;border:0;border-radius:32px;background:var(--ms-button);color:var(--ms-button-text);font-size:18px;font-weight:700}
.dbot-mobile-embed .mobile-swap-submit:disabled{background:var(--soft);color:var(--ms-disabled-text);cursor:default}
.dbot-mobile-embed .mobile-swap-status{margin:13px 0 0;color:var(--muted);font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.dbot-mobile-embed .mobile-swap-status.error,.dbot-mobile-embed #mobileSwapQuoteStatus.error{color:var(--red)}
.dbot-mobile-embed .mobile-swap-status.success{color:var(--green)}
.dbot-mobile-embed .mobile-swap-dialog{color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:20px;padding:17px;max-width:440px;box-shadow:0 20px 80px #0008}
.dbot-mobile-embed .mobile-swap-dialog::backdrop{background:var(--ms-backdrop)}
.dbot-mobile-embed .mobile-swap-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}
.dbot-mobile-embed .mobile-swap-dialog-head h2{font-size:17px;margin:0}
.dbot-mobile-embed .mobile-swap-dialog-head button{height:44px;width:44px;flex:none;border:0;border-radius:12px;background:var(--soft);color:var(--text);font-size:25px}
.dbot-mobile-embed .mobile-swap-dialog>label{display:flex;flex-direction:column;gap:7px;margin:12px 0;color:var(--muted);font-size:12px}
.dbot-mobile-embed .mobile-swap-dialog input,.dbot-mobile-embed .mobile-swap-dialog select{width:100%;min-height:44px;padding:9px 10px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px}
.dbot-mobile-embed .mobile-swap-dialog .quick-token-form{display:flex;gap:7px;margin:7px 0 10px}
.dbot-mobile-embed .mobile-swap-dialog .quick-token-form input{flex:1;min-width:0}
.dbot-mobile-embed .mobile-swap-dialog button.swap-plain-btn{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;color:var(--green);background:var(--soft)}
.dbot-mobile-embed .mobile-swap-route-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
.dbot-mobile-embed .mobile-swap-dialog-hint,.dbot-mobile-embed .mobile-swap-dialog .quick-trigger-help{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.8}
.dbot-mobile-embed #mobileSwap button:focus-visible,.dbot-mobile-embed #mobileSwapAmount:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.dbot-mobile-embed .mobile-swap-dialog button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.dbot-mobile-embed .mobile-swap-check{min-height:44px;margin-top:10px;padding:10px 14px;border:1px solid var(--line);border-radius:11px;background:var(--soft);color:var(--text);font-size:13px}
.dbot-mobile-embed .mobile-swap-orders{margin-top:12px;color:var(--muted);font-size:12px}
.dbot-mobile-embed .mobile-swap-orders summary{min-height:44px;padding:12px 2px;cursor:pointer}
.dbot-mobile-embed .mobile-swap-orders p{padding:7px 2px;margin:0;border-top:1px solid var(--line);overflow-wrap:anywhere;line-height:1.7}
/* The existing chart is loaded only while this user-opened dialog is visible. */
.dbot-mobile-embed #mobileSwapChartDialog{width:100%;max-width:760px;height:100dvh;max-height:100dvh;margin:0 auto;padding:0;border:0;border-radius:0;overscroll-behavior:contain;background:var(--terminal-bg)}
.dbot-mobile-embed #mobileSwapChartDialog>.mobile-swap-dialog-head{position:sticky;top:0;z-index:3;margin:0;padding:8px 12px;background:var(--terminal-bg);border-bottom:1px solid var(--terminal-line)}
.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-panel{width:100%;max-width:100%;min-height:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.dbot-mobile-embed #mobileSwapChartDialog .swap-token-bar{gap:8px;padding:12px;align-items:stretch}
.dbot-mobile-embed #mobileSwapChartDialog .swap-token-identity{width:100%;max-width:100%}
.dbot-mobile-embed #mobileSwapChartDialog .swap-token-title-wrap{flex:1;min-width:0;max-width:100%}
.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-title,.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-sub{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-tools{flex:none;max-width:100%}
.dbot-mobile-embed #mobileSwapChartDialog .swap-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dbot-mobile-embed #mobileSwapChartDialog .swap-market-stat{padding:8px 12px}
.dbot-mobile-embed #mobileSwapChartDialog .swap-toolbar{width:100%;max-width:100%;min-height:48px;flex:none;overflow-x:auto;overscroll-behavior-x:contain}
.dbot-mobile-embed #mobileSwapChartDialog .swap-toolbar>*{flex-shrink:0;white-space:nowrap}
.dbot-mobile-embed #mobileSwapChartDialog .swap-period-btn{min-height:36px;min-width:42px}
.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-canvas,.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-surface{height:320px;min-height:320px}
.dbot-mobile-embed #mobileSwapChartDialog .swap-trades-table{min-width:680px}
.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-hooks{display:none}
@media(max-width:350px){.dbot-mobile-embed #mobileSwap{padding-left:16px;padding-right:16px}.dbot-mobile-embed .mobile-swap-token{gap:7px;font-size:20px}.dbot-mobile-embed .mobile-swap-icon{width:36px;height:36px;font-size:10px}.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{font-size:28px!important}.dbot-mobile-embed .mobile-swap-row-main{gap:8px}.dbot-mobile-embed .mobile-swap-divider{margin-left:-16px;margin-right:-16px}}
@media(min-width:500px){.dbot-mobile-embed .mobile-swap-row-main{min-height:78px}.dbot-mobile-embed .mobile-swap-token{font-size:28px}.dbot-mobile-embed .mobile-swap-icon{width:50px;height:50px}.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{font-size:40px!important}.dbot-mobile-embed .mobile-swap-row-head{margin-bottom:28px}}
@media(orientation:landscape) and (max-height:500px){.dbot-mobile-embed .mobile-swap-heading{margin-bottom:2px}.dbot-mobile-embed .mobile-swap-tools{margin-bottom:10px}.dbot-mobile-embed .mobile-swap-row{padding-top:8px;padding-bottom:12px}.dbot-mobile-embed .mobile-swap-row-head{margin-bottom:10px}.dbot-mobile-embed .mobile-swap-row-main{min-height:46px}.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-canvas,.dbot-mobile-embed #mobileSwapChartDialog .swap-chart-surface{height:250px;min-height:250px}}

.dbot-mobile-embed .mobile-swap-selected-token{display:flex;align-items:center;gap:11px;padding:12px 0 4px;min-width:0}.dbot-mobile-embed .mobile-swap-selected-token>span:last-child{min-width:0}.dbot-mobile-embed .mobile-swap-selected-token strong{display:block;font-size:14px;color:var(--text);overflow-wrap:anywhere}.dbot-mobile-embed .mobile-swap-selected-token small{display:block;margin-top:5px;font-size:10px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}

/* Mobile-only balance percentage and the existing per-chain RPC selectors. */
.dbot-mobile-embed .mobile-swap-percent{margin-top:12px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.dbot-mobile-embed .mobile-swap-percent[hidden]{display:none!important}
.dbot-mobile-embed .mobile-swap-percent-heading,.dbot-mobile-embed .mobile-swap-percent-marks{display:flex;align-items:center;justify-content:space-between;gap:6px}
.dbot-mobile-embed #mobileSwapPercent #quickSellRange{display:block;width:100%;height:32px;margin:2px 0;padding:0;accent-color:currentColor;touch-action:pan-y}
.dbot-mobile-embed .mobile-swap-percent-marks{font-size:10px;line-height:1.4}
.dbot-mobile-embed .mobile-swap-rpc{display:grid;gap:12px;margin-top:16px;min-width:0}
.dbot-mobile-embed .mobile-swap-rpc>label{display:flex;flex-direction:column;gap:7px;font-size:12px}
.dbot-mobile-embed .mobile-swap-rpc #quickRpcState{min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}

/* Mobile workspace uses the same surfaces as the wallet overview. */
html.dbot-mobile-frame{--ms-button:#53dbc1;--ms-button-text:#09251f;--ms-disabled-text:#72879b;--ms-backdrop:#020a13b8;--bg:#09121c;--card:#101e2c;--soft:#162838;--text:#eef5fb;--muted:#91a5b8;--line:#233749;--green:#53dbc1;--red:#fb7f8d}
html.dbot-mobile-frame[data-theme="day"]{--ms-button:#087f6b;--ms-button-text:#fff;--ms-disabled-text:#8397a7;--ms-backdrop:#152e4866;--bg:#f2f5f8;--card:#fff;--soft:#eaf0f5;--text:#192c3b;--muted:#657c8e;--line:#dce5ec;--green:#087f6b;--red:#c64559}
.dbot-mobile-embed #mobileSwap{padding:16px 18px 24px}
.dbot-mobile-embed .mobile-swap-heading{min-height:38px;margin-bottom:9px;gap:10px}
.dbot-mobile-embed .mobile-swap-heading h1{font-size:23px;letter-spacing:-.6px}
.dbot-mobile-embed .mobile-swap-heading-actions{gap:7px}
.dbot-mobile-embed .mobile-swap-heading-actions button{width:35px;height:35px;padding:8px;border-radius:11px;background:var(--soft);color:var(--muted)}
.dbot-mobile-embed .mobile-swap-heading-actions svg{width:19px;height:19px}
.dbot-mobile-embed .mobile-swap-tools{margin-bottom:15px}
.dbot-mobile-embed #mobileSwapContext{min-height:33px;padding:7px 11px;font-size:11px;border-radius:9px}
.dbot-mobile-embed .mobile-swap-mode{min-height:30px;margin-bottom:10px}
.dbot-mobile-embed #mobileSwapMarketMode{min-height:29px;padding:5px 11px;border-radius:8px;background:var(--soft);color:var(--green);font-size:12px;font-weight:650}
.dbot-mobile-embed .mobile-swap-pair{background:transparent;display:flex;flex-direction:column;gap:7px}
.dbot-mobile-embed .mobile-swap-row{padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.dbot-mobile-embed .mobile-swap-row-head{font-size:11px;margin-bottom:13px}
.dbot-mobile-embed .mobile-swap-row-head button{font-size:11px;min-height:24px}
.dbot-mobile-embed .mobile-swap-row-main{gap:10px;min-height:57px}
.dbot-mobile-embed .mobile-swap-token{font-size:21px;font-weight:650;gap:8px;letter-spacing:-.4px;color:var(--text);min-height:47px}
.dbot-mobile-embed .mobile-swap-icon{width:35px;height:35px;background:var(--soft);color:var(--green);font-size:11px}
.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{font-size:30px!important;letter-spacing:-1px;font-weight:600}
.dbot-mobile-embed .mobile-swap-divider{height:9px;margin:0;z-index:1}
.dbot-mobile-embed .mobile-swap-divider:before{display:none}
.dbot-mobile-embed #mobileSwapReverse{width:38px;height:38px;padding:9px;border:4px solid var(--bg);border-radius:13px;background:var(--soft);color:var(--green)}
.dbot-mobile-embed #mobileSwapReverse svg{width:17px;height:17px}
.dbot-mobile-embed .mobile-swap-divider+.mobile-swap-row{padding:14px}
.dbot-mobile-embed .mobile-swap-quote{min-height:54px;font-size:11px;gap:9px}
.dbot-mobile-embed #mobileSwapSlippage{min-height:38px;border-radius:9px;font-size:11px}
.dbot-mobile-embed .mobile-swap-submit{min-height:49px;padding:12px;border-radius:14px;font-size:16px}
.dbot-mobile-embed .mobile-swap-status{font-size:12px;line-height:1.75;margin-top:12px}
.dbot-mobile-embed .mobile-swap-check{min-height:40px;border-radius:11px;font-size:12px}
.dbot-mobile-embed .mobile-swap-orders{margin-top:12px;border:1px solid var(--line);background:var(--card);border-radius:13px;padding:0 12px}
.dbot-mobile-embed .mobile-swap-orders summary{min-height:43px;font-size:12px}
.dbot-mobile-embed .mobile-swap-percent{color:var(--muted);font-size:11px;margin-top:11px}
.dbot-mobile-embed #mobileSwapPercent #quickSellRange{accent-color:var(--green)}
.dbot-mobile-embed .mobile-swap-dialog{border-radius:18px;box-shadow:0 12px 50px #00000038}

/* Settings retain all existing controls and use distinct, readable sections. */
.dbot-mobile-embed .dbot-config-card{padding:5px 14px 20px;background:var(--bg)}
.dbot-mobile-embed .dbot-config-title{font-size:17px;font-weight:650;color:var(--text)}
.dbot-mobile-embed .dbot-config-sub{font-size:11px;line-height:1.75;color:var(--muted);margin-top:6px}
.dbot-mobile-embed .dbot-fixed-form{margin-top:15px;gap:12px}
.dbot-mobile-embed .dbot-config-actions{gap:8px;flex-wrap:wrap;margin-top:13px}
.dbot-mobile-embed .dbot-config-actions .v4-btn{min-width:0;flex:1}
.dbot-mobile-embed .dbot-config-status{flex-basis:100%;font-size:11px}
.dbot-mobile-embed .dbot-rpc-section{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card);margin-top:16px}
.dbot-mobile-embed .dbot-rpc-section .dbot-rpc-section{background:var(--bg);border-radius:12px;padding:12px}
.dbot-mobile-embed .dbot-rpc-title{font-size:15px;font-weight:650;color:var(--text)}
.dbot-mobile-embed .dbot-rpc-sub,.dbot-mobile-embed .dbot-rpc-state,.dbot-mobile-embed .dbot-rpc-selected-detail{font-size:11px;line-height:1.8;color:var(--muted)}
.dbot-mobile-embed .dbot-rpc-head{gap:12px}
.dbot-mobile-embed .dbot-rpc-grid,.dbot-mobile-embed .dbot-rpc-pair,.dbot-mobile-embed .dbot-wallet-row{gap:11px}
.dbot-mobile-embed .dbot-config-view .v4-field{font-size:12px;color:var(--muted);line-height:1.65;gap:7px}
.dbot-mobile-embed .dbot-config-view .v4-input,.dbot-mobile-embed .dbot-config-view .v4-select{background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--text);min-height:43px;padding:10px 11px}
.dbot-mobile-embed .dbot-config-view .v4-btn{min-height:40px;background:var(--green);color:var(--ms-button-text);border:0;border-radius:10px;font-size:12px;font-weight:650}
.dbot-mobile-embed .dbot-config-view .swap-plain-btn{min-height:36px;background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:9px;font-size:11px}
.dbot-mobile-embed .dbot-selection-list{border-radius:10px;background:var(--bg);border-color:var(--line)}
.dbot-mobile-embed .dbot-selection-item{border-color:var(--line);font-size:11px}
.dbot-mobile-embed .dbot-config-note{font-size:11px;line-height:1.8;border-radius:12px}

/* Monitoring cards are neutral surfaces; their badges carry urgency. */
html.dbot-mobile-frame .dbot-mobile-embed #importantMonitor,html.dbot-mobile-frame .dbot-mobile-embed #smartMonitor{background:var(--bg);border:0;color:var(--text);min-height:100dvh!important}
html.dbot-mobile-frame .dbot-mobile-embed .important-head,html.dbot-mobile-frame .dbot-mobile-embed .monitor-head{padding:10px 16px;background:var(--bg);border-color:var(--line)}
.dbot-mobile-embed .important-title,.dbot-mobile-embed .monitor-title{font-size:13px;font-weight:650}
html.dbot-mobile-frame .dbot-mobile-embed .important-title{color:var(--text)}
.dbot-mobile-embed .important-title-icon{width:21px;height:21px;border-radius:7px;box-shadow:none;font-size:12px}
html.dbot-mobile-frame .dbot-mobile-embed .important-sub,html.dbot-mobile-frame .dbot-mobile-embed .monitor-sub{font-size:10px;color:var(--muted);line-height:1.65;margin-top:7px}
.dbot-mobile-embed .important-live,.dbot-mobile-embed .monitor-live{font-size:10px;font-weight:500}
html.dbot-mobile-frame .dbot-mobile-embed .important-tools,html.dbot-mobile-frame .dbot-mobile-embed .monitor-tools,html.dbot-mobile-frame .dbot-mobile-embed .monitor-global{padding:10px 14px;background:var(--card);border-color:var(--line)}
.dbot-mobile-embed .monitor-window-tip{display:none}
html.dbot-mobile-frame .dbot-mobile-embed .important-btn,html.dbot-mobile-frame .dbot-mobile-embed .sound-toggle,html.dbot-mobile-frame .dbot-mobile-embed .monitor-mini-btn{min-height:31px;border-radius:8px;border-color:var(--line);background:var(--soft);color:var(--muted);font-size:10px;font-weight:500}
.dbot-mobile-embed .important-feed,.dbot-mobile-embed .monitor-feed{padding:12px}
html.dbot-mobile-frame .dbot-mobile-embed .important-card{padding:13px;margin-bottom:10px;border:1px solid var(--line);border-left:3px solid #eabb58;border-radius:14px;background:var(--card);box-shadow:none}
html.dbot-mobile-frame .dbot-mobile-embed .important-card.reported-listing{border-left-color:#f38d6b}
html.dbot-mobile-frame .dbot-mobile-embed .important-card.fomo-verified{border-left-color:#9a8bed;background:var(--card)}
html.dbot-mobile-frame .dbot-mobile-embed .important-card-title,html.dbot-mobile-frame .dbot-mobile-embed .important-card.fomo-verified .important-card-title{font-size:15px;font-weight:650;line-height:1.6;color:var(--text)}
html.dbot-mobile-frame .dbot-mobile-embed .important-message{color:var(--text);font-size:12px;font-weight:400;line-height:1.8}
html.dbot-mobile-frame .dbot-mobile-embed .important-kind{font-weight:650;font-size:10px;border-radius:6px}
html.dbot-mobile-frame .dbot-mobile-embed .important-source,html.dbot-mobile-frame .dbot-mobile-embed .important-foot,html.dbot-mobile-frame .dbot-mobile-embed .important-risk-note{color:var(--muted);font-size:10px;line-height:1.6;font-weight:400}
html.dbot-mobile-frame .dbot-mobile-embed .important-token-row{padding:9px;background:var(--bg);border-color:var(--line);border-radius:10px}
html.dbot-mobile-frame .dbot-mobile-embed .important-ca{padding:6px 8px;background:var(--soft);border-color:var(--line);color:var(--muted);max-width:100%;overflow-wrap:anywhere;white-space:normal}
html.dbot-mobile-frame .dbot-mobile-embed .important-symbol{color:var(--text);font-weight:650}
html.dbot-mobile-frame .dbot-mobile-embed .important-empty{border-color:var(--line);color:var(--muted);background:var(--card);font-size:12px;line-height:1.8;border-radius:14px}
@media(max-width:350px){.dbot-mobile-embed #mobileSwap{padding-left:14px;padding-right:14px}.dbot-mobile-embed .mobile-swap-row{padding:12px}.dbot-mobile-embed .mobile-swap-divider+.mobile-swap-row{padding:12px}.dbot-mobile-embed .mobile-swap-token{font-size:18px;gap:6px}.dbot-mobile-embed .mobile-swap-icon{width:30px;height:30px}.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{font-size:26px!important}.dbot-mobile-embed .mobile-swap-row-main{gap:7px}.dbot-mobile-embed .dbot-rpc-section{padding:12px}}
@media(min-width:500px){.dbot-mobile-embed .mobile-swap-row-main{min-height:64px}.dbot-mobile-embed .mobile-swap-token{font-size:23px}.dbot-mobile-embed .mobile-swap-icon{width:40px;height:40px}.dbot-mobile-embed #mobileSwapAmount,.dbot-mobile-embed #mobileSwapOutput{font-size:34px!important}.dbot-mobile-embed .mobile-swap-row-head{margin-bottom:17px}}
@media(orientation:landscape) and (max-height:500px){.dbot-mobile-embed #mobileSwap{padding-top:8px}.dbot-mobile-embed .mobile-swap-tools{margin-bottom:9px}.dbot-mobile-embed .mobile-swap-row-main{min-height:45px}.dbot-mobile-embed .mobile-swap-row-head{margin-bottom:8px}}
.dbot-mobile-embed .workspace-view-head{display:none!important}
