/* Non-modal side panel: charts remain interactive, global pump banner stays above it. */
.chart-title{gap:8px;flex-wrap:wrap}.chart-title>a{flex:1;min-width:70px;overflow-wrap:anywhere}.chart-order-button{font-size:11px;padding:5px 8px;white-space:nowrap;border-color:#455b37;color:var(--accent)}
#orderPanel{position:fixed;right:14px;top:14px;bottom:14px;width:min(410px,calc(100vw - 28px));box-sizing:border-box;overflow:auto;z-index:35;padding:20px;background:#101a20;border:1px solid #35454f;border-radius:16px;box-shadow:-12px 8px 60px #0009;color:var(--text);font-size:13px;scrollbar-width:thin}
#orderPanel[hidden]{display:none}#orderPanel h2,#orderReview h2{margin:4px 0;font-size:21px}#orderPanel h3{font-size:18px;margin:0 0 6px}.po-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.po-header button{padding:6px 11px}.po-demo{margin:16px 0;background:#233023;color:#bbf277;border:1px solid #42583a;border-radius:7px;padding:10px;font-size:10px;font-weight:700;letter-spacing:.08em}
.po-asset{padding:3px 0 12px}.po-address{display:flex;align-items:center;gap:8px;margin-top:10px}.po-address code{color:var(--muted);flex:1}.po-address button,.po-wallet button{font-size:11px;padding:6px 9px}.po-wallet{background:#0b1419;border:1px solid var(--line);padding:12px;border-radius:10px}.po-wallet>div{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}.po-wallet p{margin:10px 0 0;color:var(--muted)}
.po-sides{display:flex;gap:5px;background:#0b1419;padding:4px;margin:18px 0;border-radius:9px}.po-sides button{width:50%;border:0;background:transparent;font-weight:700}.po-sides #poBuy[aria-selected=true]{background:#b8f674;color:#10190d}.po-sides #poSell[aria-selected=true]{background:#ef7c7c;color:#240c0c}.po-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:9px 0}.po-presets button{padding:9px 4px;font-size:12px}.po-presets button[aria-pressed=true]{border-color:var(--accent);background:#273725;color:var(--accent)}#orderPanel[data-side=SELL] .po-presets button[aria-pressed=true]{border-color:#ef7c7c;color:#ef7c7c;background:#372323}#poAmount{font-size:22px;font-weight:600;padding:12px}#poForm label{font-size:11px;color:var(--muted);letter-spacing:.06em}#poForm .error{font-size:12px;line-height:1.5;min-height:18px}#poForm button[type=submit]{width:100%;padding:13px;font-weight:700}#orderPanel[data-side=SELL] #poReview{background:#ef7c7c;color:#230e0e}.po-advanced{border-block:1px solid var(--line);padding:12px 0;margin:15px 0}.po-advanced summary{cursor:pointer;color:var(--muted)}.po-advanced label{display:block;margin:12px 0 6px}.po-advanced input{margin-top:6px}.po-advanced p,.po-estimate p{font-size:11px;line-height:1.6}.po-estimate{background:#18221d;border:1px dashed #38503a;padding:12px;border-radius:9px}.po-estimate>span{font-size:9px;letter-spacing:.06em}.po-estimate p{color:var(--muted);margin:8px 0}.po-estimate strong{font-size:12px}.po-status{color:var(--accent)}.po-position{font-size:11px;color:var(--muted);line-height:1.6}.po-history{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.po-history h3{font-size:14px!important}.po-history-row{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--line);padding:10px 0}.po-history-row small{color:var(--muted)}.po-green{color:var(--accent)}.po-red{color:#ef7c7c}
#orderReview{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #3b4d55;border-radius:16px;padding:22px;background:#101a20;color:var(--text)}#orderReview::backdrop{background:#0009}#poReviewDetails{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px 14px;font-size:12px;line-height:1.5}#poReviewDetails dt{color:var(--muted)}#poReviewDetails dd{margin:0;overflow-wrap:anywhere}.po-review-actions{display:flex;gap:10px;margin-top:18px}.po-review-actions button{flex:1}#orderPanel button:disabled,#orderReview button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){#orderPanel{top:8px;bottom:8px;right:8px;width:calc(100vw - 16px);padding:16px}#poReviewDetails{grid-template-columns:100px minmax(0,1fr)}}
#poQuoteDetails{display:grid;grid-template-columns:110px minmax(0,1fr);gap:7px 10px;font-size:11px;line-height:1.5;margin:14px 0}#poQuoteDetails dt{color:var(--muted)}#poQuoteDetails dd{margin:0;overflow-wrap:anywhere}#poQuoteStatus{font-size:11px;color:var(--accent)}#poRefreshQuote{width:100%;font-size:12px}#poOutput{display:block;margin-top:10px}.po-review-actions{flex-wrap:wrap}.po-review-actions #poSimulate{flex-basis:100%}
/* GMGN panel controls; no chart container or iframe changes. */
#orderPanel .po-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 32px;gap:5px}#orderPanel .po-profiles{display:flex;gap:6px;margin:12px 0}#orderPanel button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}#orderPanel label{display:block;margin:10px 0}#orderPanel input:not([type=checkbox]),#orderPanel select{box-sizing:border-box;width:100%}#orderPanel #poCA{overflow-wrap:anywhere}#orderPanel fieldset{min-width:0;border:1px solid #35454f;border-radius:8px;margin:12px 0}#orderPanel #poPresetInputs{display:grid;grid-template-columns:1fr 1fr;gap:6px}#orderPanel details{margin:12px 0}#orderPanel .po-sides{margin:8px 0}
/* Long read-only wallet, quote and order values stay inside the existing panel. */
#orderPanel #poPreview dd{margin:3px 0 9px;overflow-wrap:anywhere}#orderPanel #poQuoteResult,#orderPanel #poOpenOrders,#orderPanel #poPositions,#orderPanel #poHistory,#orderPanel #poOrderStatus{overflow-wrap:anywhere}

/* Compact GMGN-style order entry; wallet/plan failures never hide amount input. */
#orderPanel .po-wallet-settings{border-block:1px solid var(--line);padding:8px 0}
#orderPanel .po-wallet-settings summary{cursor:pointer;color:var(--muted);font-size:12px}
#orderPanel .po-demo{margin:10px 0;padding:8px;font-size:9px;line-height:1.5}
#orderPanel .po-balance{font-size:12px;text-align:right;color:var(--muted);margin:8px 0}
#orderPanel #poLoginStatus{font-size:10px;overflow-wrap:anywhere;color:var(--muted);line-height:1.5}
#orderPanel .po-profiles{border-bottom:1px solid var(--line);padding-bottom:10px}
#orderPanel .po-sides button{padding:10px 6px}
#orderPanel #poMarket[aria-selected=true],#orderPanel #poLimit[aria-selected=true]{color:var(--accent);background:#1c2c24}
#orderPanel .po-amount-field{position:relative;border:1px solid #35454f;border-radius:8px;background:#0b1419}
#orderPanel .po-amount-field:focus-within{border-color:var(--accent)}
#orderPanel #poAmount{border:0;background:transparent;padding:13px 55px 13px 12px;font-size:20px;min-height:52px}
#orderPanel #poAmount::placeholder{font-size:13px;font-weight:400;color:var(--muted)}
#orderPanel #poAmountUnit{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px;pointer-events:none}
#orderPanel .po-token-hint{font-size:11px;line-height:1.5;color:var(--muted)}
#orderPanel .po-presets{gap:0;border:1px solid #35454f;border-radius:7px;overflow:hidden}
#orderPanel .po-presets button{border:0;border-right:1px solid #35454f;border-radius:0;background:#101a20;padding:9px 3px}
#orderPanel .po-presets button:last-child{border-right:0}
#orderPanel .po-presets button:hover{background:#20312a;color:var(--accent)}

.po-fee-modes{display:flex;gap:4px;flex-wrap:wrap;margin:12px 0}.po-fee-modes button{flex:1;padding:7px 4px}.po-fee-modes [aria-pressed=true]{border-color:#b6f36b;color:#b6f36b}#poFeeSummary{font-size:12px;line-height:1.5;color:#d8c28b}

.chart-token-identity{display:inline-flex;align-items:center;gap:6px;flex:1;min-width:70px}.chart-token-identity>a{min-width:0;overflow-wrap:anywhere}.chart-copy-ca{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:5px;background:transparent;border:1px solid transparent;border-radius:5px;color:var(--muted);cursor:pointer}.chart-copy-ca:hover{color:var(--accent);border-color:var(--line)}.chart-copy-ca:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
