/* The trading grid has four panels. Supporting content spans the workspace. */
body.bp-swap-presentation #main.main{max-width:1520px;margin-inline:auto;padding-inline:24px;grid-template-columns:minmax(240px,270px) minmax(0,1fr) minmax(320px,360px);grid-template-areas:'crumbs crumbs crumbs' 'markets chart ticket' 'markets holdings ticket';align-items:start;gap:16px}
body.bp-swap-presentation #main.main>.markets{grid-area:markets;align-self:start;min-width:0}
body.bp-swap-presentation #main.main>.chart{grid-area:chart;min-width:0}
body.bp-swap-presentation #main.main>.holdings-panel{grid-area:holdings;min-width:0}
body.bp-swap-presentation #main.main>.trade{grid-area:ticket;min-width:0;align-self:start;border-top:3px solid var(--accent)}
body.bp-swap-presentation #main.main>.bp-context-crumbs{grid-area:crumbs;margin:0}
body.bp-swap-presentation #main.main>:not(.markets,.chart,.holdings-panel,.trade,.bp-context-crumbs){grid-column:1/-1;width:auto;max-width:none;min-width:0;justify-self:stretch;margin-block:12px}
body.bp-swap-presentation :is(.spot-hero,.product-strip,.cmd,.mobile-workspace-nav){max-width:1472px;margin-inline:auto}
body.bp-swap-presentation .spot-hero{padding-block:28px 24px}
body.bp-swap-presentation .spot-hero h1{font-size:clamp(28px,3vw,42px);line-height:1.15;letter-spacing:-.035em}
body.bp-swap-presentation .spot-content{display:block;width:auto;max-width:1250px;margin:32px auto 64px;padding:0 24px;min-height:0}
body.bp-swap-presentation .spot-content>:is(section,div){width:auto;max-width:none;margin-block:28px;min-width:0}
body.bp-swap-presentation .spot-content>:is(h2,p){max-width:82ch;margin-block:20px 12px}
body.bp-swap-presentation .spot-content .pair-facts{padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
body.bp-swap-presentation .spot-content p{font-size:14px;line-height:1.8}
body.bp-swap-presentation #swap-workspace .swap-card{padding:18px}
body.bp-swap-presentation #swap-workspace .asset-card{padding:16px;border-radius:14px;background:var(--panel-2,var(--surface-2));border:1px solid var(--border)}
body.bp-swap-presentation #swap-workspace .asset-card-main{display:flex;gap:12px;align-items:center;min-height:64px}
body.bp-swap-presentation #swap-workspace :is(#amountIn,#swapAmount){font-size:30px;line-height:1.25;width:100%;min-width:0;max-width:100%;padding:4px 0;box-shadow:none}
body.bp-swap-presentation #swap-workspace .token-sel{flex-shrink:0;min-height:42px;padding:8px 12px}
body.bp-swap-presentation #swap-workspace :is(.amount-presets,.evm-amount-actions){display:flex;gap:6px;justify-content:flex-end;margin-top:8px}
body.bp-swap-presentation #swap-workspace :is(.amount-presets,.evm-amount-actions)>button{min-height:32px;padding:6px 10px;border-radius:7px}
body.bp-swap-presentation #swap-workspace .balance-slider{padding-top:15px;margin-top:14px;border-top:1px solid var(--border);font-size:11px;line-height:1.4;color:var(--text)}
body.bp-swap-presentation #swap-workspace .balance-slider-heading,body.bp-swap-presentation #swap-workspace .balance-slider-scale{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.bp-swap-presentation #swap-workspace .balance-slider-heading output{font-variant-numeric:tabular-nums;color:var(--accent)}
body.bp-swap-presentation #swap-workspace .balance-slider input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:0;height:6px;padding:0;margin:18px 0 13px;border:0;border-radius:8px;box-shadow:none;cursor:pointer;background:linear-gradient(to right,var(--accent) var(--balance-fill,0%),var(--border) var(--balance-fill,0%));accent-color:var(--accent);touch-action:pan-y}
body.bp-swap-presentation #swap-workspace .balance-slider input::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border:3px solid var(--panel);border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent)}
body.bp-swap-presentation #swap-workspace .balance-slider input::-moz-range-thumb{width:15px;height:15px;border:3px solid var(--panel);border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent)}
body.bp-swap-presentation #swap-workspace .balance-slider input:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
body.bp-swap-presentation #swap-workspace .balance-slider input:disabled{cursor:not-allowed;opacity:.45}
body.bp-swap-presentation #swap-workspace .balance-slider-scale{color:var(--muted);font-size:10px}
body.bp-swap-presentation #swap-workspace .balance-slider-refresh{font-size:11px;min-height:32px;margin-top:10px;padding:6px 10px}
body.bp-swap-presentation #swap-workspace :is(#findRoutes,#getQuoteBtn){width:100%;min-height:46px;border-radius:10px}
body.bp-swap-presentation #main .panel{box-shadow:0 4px 18px rgb(0 0 0 / .025)}
@media(max-width:1150px){body.bp-swap-presentation #main.main{grid-template-columns:minmax(0,1fr) minmax(300px,360px);grid-template-areas:'crumbs crumbs' 'chart ticket' 'holdings ticket' 'markets markets'}body.bp-swap-presentation #main .mgrid{max-height:340px}}
@media(max-width:720px){body.bp-swap-presentation #main.main{padding-inline:12px;grid-template-columns:minmax(0,1fr);grid-template-areas:'crumbs' 'ticket' 'chart' 'holdings' 'markets'}body.bp-swap-presentation :is(.spot-hero,.product-strip,.cmd){margin-inline:12px}body.bp-swap-presentation .spot-content{padding-inline:12px;margin-top:24px}body.bp-swap-presentation .spot-content .pair-facts{padding:18px}body.bp-swap-presentation #swap-workspace :is(input,select){font-size:16px}body.bp-swap-presentation #swap-workspace .balance-slider input[type=range]{margin-block:22px 18px}}

/* Keep token identities on their own line; prices must never squeeze the name. */
body.bp-swap-presentation #main.main>.markets .mgrid{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;overflow-x:hidden}
body.bp-swap-presentation #main.main>.markets .mrow{grid-template-columns:28px minmax(0,1fr) 30px;grid-template-rows:auto auto auto;grid-template-areas:'ava sym fav' 'meta meta meta' 'price price chg';gap:7px 9px;padding:12px 10px;align-items:center;min-width:0;min-height:88px}
body.bp-swap-presentation #main.main>.markets .mrow :is(.sym,.sym span,.meta,.price){min-width:0;max-width:100%;width:auto;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;text-align:left}
body.bp-swap-presentation #main.main>.markets .mrow .sym{font-size:13px;line-height:1.4}
body.bp-swap-presentation #main.main>.markets .mrow .meta{font-size:11px;line-height:1.45}
body.bp-swap-presentation #main.main>.markets .mrow .price{font-size:11px;line-height:1.4}
body.bp-swap-presentation #main.main>.markets .mrow .chg{justify-self:end;align-self:end;font-size:10px}
body.bp-swap-presentation #main.main>.markets .market-row>.star{top:11px;right:11px;transform:none;width:30px;height:30px;min-height:30px}
body.bp-swap-presentation #main.main>.markets .mrow:has(>.evm-market-pair-link){grid-template-columns:minmax(0,1fr) 30px;grid-template-rows:auto;grid-template-areas:'link fav';align-items:start}
body.bp-swap-presentation #main.main>.markets .evm-market-pair-link{grid-area:link;grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:auto auto auto;grid-template-areas:'ava sym sym' 'meta meta meta' 'price price chg';gap:7px 9px;align-items:center;min-width:0;min-height:64px}
body.bp-swap-presentation #main.main>.markets .evm-market-pair-link .chg{font-size:9px}
body.bp-swap-presentation #main.main>.markets .mrow>.fav{grid-area:fav;align-self:start}
body.bp-swap-presentation #main.main>.markets .mrow .star{width:30px;min-height:30px;padding:0}
body.bp-swap-presentation #main.main>.markets .mrow:focus-within{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:1150px){body.bp-swap-presentation #main.main>.markets .mgrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}}
