.swap-sidebar-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
#swapFavoritesPane[hidden],#swapHistory[hidden],.dbot-history-window[hidden],.dbot-history-more[hidden]{display:none!important}
.dbot-history-toggle{min-height:36px;padding:6px 14px;font-size:12px}
.dbot-history-token{color:var(--text,#e2edf5);padding:10px 8px;border-bottom:1px solid var(--line);font-size:11px}
.dbot-history-token-open,.dbot-history-trade-token{display:flex;align-items:center;gap:7px;max-width:100%;border:0;background:none;color:inherit;padding:0;cursor:pointer;text-align:left;font:inherit}
.dbot-history-identity{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}.dbot-history-identity>strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbot-history-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;overflow:hidden;background:var(--soft,#19232f);color:var(--green,#54d5b4);font-size:9px}.dbot-history-avatar img{width:100%;height:100%;object-fit:cover}
.dbot-history-chain{flex:none;display:inline-block;padding:2px 5px;border:1px solid var(--line,#35404d);border-radius:5px;font-size:9px;line-height:1.2;color:var(--muted,#96a4b5)}.dbot-history-position{font-size:9px;color:var(--muted)}
.dbot-history-profit{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin:9px 0 6px;color:var(--muted)}.dbot-history-profit strong{text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dbot-history-profit.positive strong{color:#0bbd8a}.dbot-history-profit.negative strong{color:#ef5365}
.dbot-history-token-detail{color:var(--muted);font-size:9px;line-height:1.65}.dbot-history-token-detail>div{display:flex;justify-content:space-between;gap:6px}.dbot-history-token-detail p{margin:5px 0 0}.dbot-history-more{display:block;margin:10px auto;min-width:96px}
.dbot-history-window{position:fixed;z-index:110;left:calc(100vw - 470px);top:78px;width:450px;height:510px;min-width:330px;min-height:min(260px,calc(100vh - 8px));max-width:calc(100vw - 8px);max-height:calc(100vh - 8px);box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;background:var(--card,#10161e);color:var(--text,#e2edf5);border:1px solid var(--line,#34404e);border-radius:12px;box-shadow:0 20px 65px #0007;font-size:12px}
/* Transaction feed: two compact rows with direct CA copy; quantity and explorer actions expand. */
.dbot-history-window{--history-row:#403d29;--history-divider:#58543c;--history-muted:#b2af9c;--history-ink:#f2f0e6;--history-up:#20d7b1;--history-down:#ff6678}
.dbot-history-window-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line,#34404e);background:var(--card,#10161e);cursor:move;touch-action:none}
.dbot-history-window-head>strong{font-size:12px}.dbot-history-window-controls{display:flex;gap:5px;align-items:center}.dbot-history-window-controls .swap-plain-btn{font-size:10px;padding:5px 7px}
.dbot-history-status{padding:9px 12px;color:var(--muted,#8794a3);font-size:10px;overflow-wrap:anywhere}.dbot-history-status.error{color:#ef5365}
.dbot-history-trades{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.dbot-history-trade{position:relative;padding:9px 10px 10px;border-bottom:1px solid var(--history-divider);background:var(--history-row);color:var(--history-ink)}
.dbot-history-trade-top{display:flex;align-items:center;gap:5px;min-width:0;min-height:20px;line-height:20px}
.dbot-history-wallet-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:17px;height:17px;border-radius:50%;background:#626148;color:#faf5c6;font-size:10px;line-height:1;font-weight:700}
.dbot-history-wallet{min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee1a1;font-size:12px;font-weight:650}
.dbot-history-action{flex:none;font-size:12px;font-weight:550}.dbot-history-action,.dbot-history-amount{color:var(--history-up)}
.dbot-history-trade.sell .dbot-history-action,.dbot-history-trade.sell .dbot-history-amount{color:var(--history-down)}
.dbot-history-trade.unknown .dbot-history-action,.dbot-history-trade.unknown .dbot-history-amount{color:var(--history-muted)}
.dbot-history-time{flex:none;margin-left:auto;max-width:54%;overflow:hidden;text-overflow:ellipsis;color:var(--history-muted);font:inherit;font-size:10px;white-space:nowrap;border:0;background:none;padding:2px 0;cursor:pointer}
.dbot-history-time:hover{text-decoration:underline}
.dbot-history-detail-toggle{flex:none;display:grid;place-items:center;width:24px;height:24px;margin:-2px 0;border:0;border-radius:4px;background:none;color:var(--history-muted);font:18px/1 sans-serif;cursor:pointer}
.dbot-history-detail-toggle:hover,.dbot-history-detail-toggle[aria-expanded="true"]{background:#ffffff12;color:var(--history-ink)}
.dbot-history-time:focus-visible,.dbot-history-copy:focus-visible,.dbot-history-detail-toggle:focus-visible,.dbot-history-trade-token:focus-visible,.dbot-history-valuation:focus-visible{outline:2px solid var(--history-up);outline-offset:2px;border-radius:3px}
.dbot-history-trade-bottom{display:flex;align-items:center;gap:6px;min-width:0;min-height:22px;margin-top:3px;line-height:20px}
.dbot-history-amount{flex:0 0 auto;min-width:0;max-width:43%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.dbot-history-trade-token{flex:0 1 auto;min-width:30px;gap:4px;max-width:42%;color:var(--history-ink);font-size:12px}
.dbot-history-trade-token strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.dbot-history-trade-token .dbot-history-avatar{width:17px;height:17px;font-size:8px;background:#5a573e;color:var(--history-ink)}
.dbot-history-valuation{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex:0 1 auto;min-width:72px;max-width:48%;margin-left:auto;border:0;background:none;color:var(--history-ink);font:inherit;font-size:12px;cursor:pointer;text-align:right;white-space:nowrap;padding:0;line-height:20px}
.dbot-history-valuation-label{flex:none;color:var(--history-muted);font-size:10px}.dbot-history-valuation-value{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-variant-numeric:tabular-nums}.dbot-history-valuation:hover .dbot-history-valuation-value{text-decoration:underline}
.dbot-history-conversion{flex:none;color:var(--history-muted);font-size:8px;font-weight:normal;border:1px solid var(--history-divider);border-radius:3px;padding:0 2px;line-height:12px}
.dbot-history-trade-details[hidden]{display:none!important}.dbot-history-trade-details{border-top:1px solid var(--history-divider);margin-top:8px;padding-top:7px}
.dbot-history-trade-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--history-muted);font-size:10px}.dbot-history-trade-foot .dbot-history-chain{color:var(--history-muted);border-color:var(--history-divider)}.dbot-history-trade-foot a{margin-left:auto;color:var(--history-ink);text-decoration:none}.dbot-history-trade-foot a:hover{text-decoration:underline}
.dbot-history-contract{display:inline-flex;align-items:center;flex:none;font-size:9px;color:var(--history-muted)}.dbot-history-copy{min-width:24px;min-height:24px;padding:2px 3px;border:1px solid var(--history-divider);border-radius:4px;background:none;color:inherit;font:inherit;cursor:pointer}.dbot-history-copy:hover{background:#ffffff12;color:var(--history-ink)}.dbot-history-copy:disabled{cursor:wait}.dbot-history-copy-unknown{opacity:.65}.dbot-history-copy-feedback{position:absolute;z-index:2;left:8px;right:8px;top:calc(100% - 2px);padding:7px 9px;border:1px solid var(--history-divider);border-radius:5px;background:var(--history-row);box-shadow:0 3px 10px #0004;color:var(--history-ink);font-size:10px;line-height:1.5;overflow-wrap:anywhere;user-select:text}.dbot-history-copy-feedback:empty{display:none}.dbot-history-copy-feedback.error{color:var(--history-down)}

.dbot-history-note{flex:none;padding:8px 12px;margin:0;color:var(--muted,#8794a3);font-size:9px;line-height:1.6}
html[data-theme="day"] .dbot-history-window{--history-row:#eeecdc;--history-divider:#d7d3ba;--history-muted:#716d58;--history-ink:#272a22;--history-up:#07876c;--history-down:#cf304b}
html[data-theme="day"] .dbot-history-wallet{color:#696021}html[data-theme="day"] .dbot-history-wallet-avatar{background:#d0ccad;color:#514c2b}html[data-theme="day"] .dbot-history-trade-token .dbot-history-avatar{background:#d3cfb5;color:#514c2b}
@media(max-width:480px){.dbot-history-window{left:4px;min-width:0;width:calc(100vw - 8px)}.dbot-history-window-head{padding:8px}.dbot-history-trade-top{gap:4px}.dbot-history-trade{padding:8px}.dbot-history-trade-bottom{gap:4px}.dbot-history-amount{font-size:12px}.dbot-history-valuation{font-size:11px;gap:2px}.dbot-history-wallet{max-width:40%}}

.dbot-history-window-foot{display:flex;align-items:flex-end;flex:none;gap:4px;border-top:1px solid var(--line,#34404e)}.dbot-history-window-foot .dbot-history-note{flex:1;min-width:0;padding:8px 4px 8px 12px}.dbot-history-resize{align-self:flex-end;flex:none;min-height:44px;min-width:78px;padding:8px 9px 8px 3px;border:0;background:none;color:var(--muted,#8794a3);font:inherit;font-size:10px;cursor:nwse-resize;touch-action:none;user-select:none}.dbot-history-resize:hover,.dbot-history-resize:active{color:var(--green,#54d5b4);background:var(--soft,#19232f)}.dbot-history-resize:focus-visible{outline:2px solid var(--green,#54d5b4);outline-offset:-3px;border-radius:5px}.dbot-history-window.resizing{user-select:none}.dbot-history-window.resizing,.dbot-history-window.resizing *{cursor:nwse-resize!important}

.dbot-history-realized{flex:0 1 auto;min-width:18px;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;font-variant-numeric:tabular-nums}.dbot-history-realized.positive{color:var(--history-up)}.dbot-history-realized.negative{color:var(--history-down)}.dbot-history-realized.unknown,.dbot-history-realized.neutral{color:var(--history-muted)}

#swapHistory .swap-actions{flex-wrap:wrap;align-items:flex-start}#swapHistoryRefresh{flex:none;align-self:flex-start}.dbot-history-chain-summaries{display:flex;flex:1 1 160px;min-width:0;flex-direction:column;gap:5px;padding:4px 0;font-size:10px;line-height:1.5}.dbot-history-chain-summaries[hidden]{display:none!important}.dbot-history-chain-pnl{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dbot-history-chain-pnl-chain,.dbot-history-chain-pnl small,.dbot-history-chain-pnl-empty{color:var(--muted,#8794a3)}.dbot-history-chain-pnl small{display:block;font-size:9px}.dbot-history-chain-pnl.positive strong{color:var(--green,#0bbd8a)}.dbot-history-chain-pnl.negative strong{color:var(--red,#ef5365)}.dbot-history-chain-pnl.unknown strong,.dbot-history-chain-pnl.neutral strong{color:var(--muted,#8794a3)}
