/* Hyduo /app — the cabinet (SPEC §4–5): sticky top bar, side menu (≥1024), main column, rail (ticket, widest gaps, activity, exchanges;
   only on Live gaps and All markets), fixed bottom tab bar + sticky trade bar above it (≤1023, both keep their room at the page end).
   Built on base.css. */

#title{font-family:var(--serif);font-weight:400;font-size:var(--fs-h1);line-height:1.05;letter-spacing:-.015em;text-wrap:balance}

/* ---------- top bar: sticky, full-bleed (brand · ⌘K · next funding, tier chip, wallet) ---------- */
.atop{position:sticky;top:0;z-index:40;min-height:64px;background:var(--ink-0);box-shadow:inset 0 -1px 0 var(--line-1)}
@media (min-width:768px){.atop{min-height:72px}}
.atop__in{height:64px;align-items:center}
@media (min-width:768px){.atop__in{height:72px}}
.atop__brand{display:flex;align-items:center;grid-column:1 / 3}
.atop__r{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;grid-column:3 / -1}
.atop__r>.btn--icon{margin-left:auto}
@media (min-width:768px){.atop__brand{grid-column:1 / 3}.atop__r{grid-column:3 / -1;gap:16px}}
@media (min-width:1024px){.atop__q{display:block;grid-column:3 / 7}.atop__r{grid-column:7 / 13;justify-content:flex-end}}
.qbtn{display:flex;align-items:center;gap:12px;width:100%;height:48px;padding:12px 16px;border-radius:2px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1);color:var(--t-2);
  font-family:var(--sans);font-weight:500;font-size:var(--fs-ui);line-height:1.5;--t-3:#A9A59D}
.qbtn:hover{box-shadow:inset 0 0 0 1px var(--line-2)}
.qbtn > span:nth-child(2){flex:1;min-width:0;text-align:left}
.atop__cd{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.tier--bar{flex:none}
@media (max-width:1023px){.tier--bar{min-height:48px;padding-inline:12px}}
.wchip{display:inline-flex;align-items:center;gap:8px;height:48px;padding:12px 16px;border-radius:2px;background:var(--ink-3);color:var(--t-1);white-space:nowrap}

/* ---------- shell ---------- */
.ashell{padding-top:48px;padding-bottom:128px}
/* ≤ 1023 the page keeps the room of the bars at its end: tab bar 64 (+ safe area) — and 128 when the trade bar (80) sits on it too */
@media (max-width:1023px){
  .ashell{padding-top:24px;padding-bottom:96px}
  body[data-page="app"]{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  body[data-page="app"].has-tb{padding-bottom:calc(128px + env(safe-area-inset-bottom))}
}
.ashell__g{row-gap:48px;align-items:start}
.side{display:none}
@media (min-width:1024px){
  .side{display:flex;flex-direction:column;gap:32px;grid-column:1 / 3;position:sticky;top:120px}
  .amain{grid-column:3 / 13}
  .rail{grid-column:3 / 13}
}
@media (min-width:1440px){.amain{grid-column:3 / 9}.rail{grid-column:9 / 13;grid-row:1}.norail > .amain{grid-column:3 / 13}}
.amain{display:flex;flex-direction:column;gap:32px;min-width:0}
@media (max-width:767px){.amain{gap:24px}}
.rail{display:flex;flex-direction:column;gap:32px;min-width:0}

/* side menu */
.sgrp{display:flex;flex-direction:column}
.sgrp > .t-label{margin-bottom:8px}
.sitem{display:flex;align-items:flex-start;gap:8px;min-height:44px;padding-block:12px;color:var(--t-2)}
.sitem:hover{color:var(--t-1)}
.sitem[aria-current="page"]{color:var(--t-1)}
.sitem > .lbl{flex:1;min-width:0}
.tcard{display:flex;flex-direction:column;gap:16px;padding-top:24px;box-shadow:inset 0 1px 0 var(--line-1)}
.tcard__h{display:flex;flex-direction:column;gap:12px}
.tcard .tier,.tcard .tierl{align-self:flex-start}
.pbarx{position:relative;height:4px;background:var(--ink-3);overflow:hidden}
.pbarx > i{position:absolute;inset:0;background:var(--acc);transform-origin:left}

/* ---------- phone / tablet: the bottom tab bar (fixed, 64 + safe area) and the trade bar right above it ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:45;background:var(--ink-0);box-shadow:inset 0 1px 0 var(--line-2);padding-bottom:env(safe-area-inset-bottom)}
@media (min-width:1024px){.tabbar{display:none}}
.tabbar__in{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:calc(var(--maxw) + 2 * var(--m));margin-inline:auto;padding-inline:var(--m)}
.titem{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:64px;padding-inline:4px;color:var(--t-2);text-align:center}
.titem > .t-small{color:inherit;white-space:nowrap}
.titem[aria-current="page"]{color:var(--t-1);box-shadow:inset 0 2px 0 var(--acc)}

/* ---------- page head ---------- */
.ahead{display:flex;flex-direction:column;gap:16px}
/* two fixed lines: the counts, then the freshness line (its room is kept before the data lands, so nothing below moves) */
.ahead__meta{display:flex;flex-direction:column;align-items:flex-start;row-gap:8px}
.ahead__fresh{display:inline-flex}
.ahead__meta > *{min-height:max(20px, calc(var(--fs-small) * 1.45))}
/* phone: the freshness line keeps two lines of room — a venue / retry notice («… isn't responding · last data hh:mm UTC · retrying»)
   wraps there and must not move the page when it appears */
@media (max-width:767px){.ahead__meta > .ahead__fresh{align-items:flex-start}}

/* ---------- strips (get set up, preset, positions) ---------- */
.strips{background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1)}
.strip{display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;row-gap:12px;min-height:72px;padding:16px 24px;box-shadow:inset 0 -1px 0 var(--line-1)}
.strip:last-child{box-shadow:none}
.strip > .t-label{flex:none;width:100%}
.strip > .grow{flex:1;min-width:0}
@media (max-width:767px){.strip{padding:16px}}
/* «Get set up»: the head line carries «Hide»; the three steps sit on one grid (repeat(3,1fr)), one column on the phone */
.strip--gs{display:flex;flex-direction:column;align-items:stretch}
.strip__h{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gs{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
@media (min-width:768px){.gs{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}}
.gs__i{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--t-2)}
.gs__i:hover{color:var(--t-1)}
.gs__ring{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink-0)}
.gs__i.done{color:var(--t-1)}
.gs__i.done .gs__ring{background:var(--t-1)}
.gs__ring .ui{width:16px;height:16px}
/* phone: «Get set up» is one line — the label, the next step, Hide — so the first screen reaches the gaps */
@media (max-width:767px){
  .strip--gs{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:0}
  .strip--gs > .strip__h{display:contents}
  .strip--gs > .strip__h > .t-label{grid-column:1;grid-row:1;width:auto}
  .strip--gs > .strip__h > [data-gshide]{grid-column:3;grid-row:1}
  .strip--gs > .gs{grid-column:2;grid-row:1;display:block}
  .strip--gs .gs__i:not(.next){display:none}
}

/* ---------- boards: a panel with tabs and a fixed-height table (rows never grow the page; a pager walks the list) ---------- */
.boardp{background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1);min-width:0}
.boardp__h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 24px;box-shadow:inset 0 -1px 0 var(--line-1)}
.boardp__h .tabs{box-shadow:none}
.boardp__h > .t-small{padding-bottom:12px;text-align:right}
@media (max-width:767px){.boardp__h{flex-direction:column;align-items:stretch;gap:0;padding:0 16px}.boardp__h > .t-small{text-align:left;padding-block:16px}}
.boardp .tbl thead th{background:var(--ink-2)}
.boardp .tbl tbody tr:not([aria-selected="true"]):hover{background:rgba(242,238,230,.06);box-shadow:inset 2px 0 0 var(--line-2)}
/* the markets board holds exactly one page of rows (head 48 + 10 × 88 + rules; rows are always 88): a search with fewer matches or a
   live row never moves the pager. Its rows fit, so nothing scrolls inside; if one ever overflows, the wheel passes on to the page at
   the edge (overscroll-behavior-y auto: no scroll trap) */
.board--p{height:960px}
.board--al,.board--o{height:584px}
@media (min-width:1440px){.board--al{height:944px}}
.boardp__f{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;box-shadow:inset 0 1px 0 var(--line-1)}
.boardp__f > .row{margin-left:auto}
/* Open · Ended (32 px segments) and the pager (48 px buttons) never share a line: the pager starts its own line, right-aligned */
.boardp__f > .seg + .row{flex-basis:100%;justify-content:flex-end}
.boardp__n{padding:0 24px 16px}
@media (max-width:767px){.boardp__f{padding:16px}.boardp__n{padding:0 16px 16px}}
.tbl .w-fig{width:136px}.tbl .w-pb{width:136px}.tbl .w-st{width:136px}.tbl .w-act{width:144px}.tbl .w-legs{width:104px}.tbl .w-lev{width:72px}.tbl .w-rate{width:120px}
@media (max-width:1439px){.tbl .w-st{width:112px}.tbl .w-act{width:136px}.tbl .w-rate{width:112px}}
/* positions: «Close both legs» fits its column at every width */
.tbl .w-cb{width:160px}
.tbl .nm .nm__l2{flex-wrap:nowrap}
@media (max-width:767px){.tbl .w-fig{width:128px}.tbl .w-rate{width:96px}}
.stcell{display:flex;flex-direction:column;gap:8px}
.tbl td.r .btn--row{width:100%}
.tbl .nm .row{flex-wrap:wrap}
.sorted{display:inline-block;margin-left:4px;color:var(--t-1)}
.vhead{display:inline-flex;align-items:center;gap:4px}
[data-pn]{display:inline-block;min-width:3ch;text-align:left}

/* ---------- filters (all markets) ---------- */
.filters{display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;row-gap:16px;padding:16px 24px;box-shadow:inset 0 -1px 0 var(--line-1)}
@media (max-width:767px){.filters{padding:16px}}
/* class chips: one row, every chip «Name · 51» (count in mono t-3), the chosen one by style; when the row doesn't fit it scrolls
   sideways (no vertical scroll, the wheel passes on) and the side that has more fades out */
.filters__cls{flex-basis:100%;display:flex;flex-wrap:nowrap;gap:8px;background:none;padding:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.filters__cls::-webkit-scrollbar{display:none}
.filters__cls[data-more="r"]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
.filters__cls[data-more="l"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
.filters__cls[data-more="l r"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
.filters__cls > button{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;background:var(--ink-3)}
.filters__cls > button > [data-pn]{min-width:3ch;text-align:left}
.filters > .liq{margin-right:auto}
.filters > .grp{width:280px}
@media (max-width:1023px){.filters > .grp{width:100%}}
.filters .field{width:100%}
.liq{display:inline-flex;align-items:center;gap:8px}

/* ---------- detail of the selected market ---------- */
.detail{display:flex;flex-direction:column;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1);min-width:0}
.dband{position:relative;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px;padding:24px;overflow:hidden;isolation:isolate}
@media (max-width:767px){.dband{padding:16px}}
.dband__paint{position:absolute;inset:0;z-index:0;background:url(/img/painting-1200.webp?v=d3ef0a434b81) 78% 46% / cover no-repeat}
.dband::after{content:"";position:absolute;inset:0;z-index:1;background:repeating-linear-gradient(180deg,rgba(0,0,0,.36) 0 1px,rgba(0,0,0,0) 1px 3px),linear-gradient(180deg,rgba(17,17,20,.3) 0%,rgba(17,17,20,.92) 100%)}
.dband__in{position:relative;z-index:2;display:flex;align-items:center;gap:16px;width:100%}
.dband__in > .stack{flex:1;min-width:0;gap:16px}
.dband__in .t-h1{overflow-wrap:anywhere}
/* the deployer chip (PARA / IO / XYZ, tip.dex) sits next to the ticker, never under the legs */
.dband__nm{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:8px;min-width:0}
/* the sides of the trade, on an ink plate under the name: [↗ Long][mark] Lighter · [↘ Short][mark] Hyperliquid */
.dband__plate{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:12px;align-self:flex-start;max-width:100%;padding:12px 16px;background:rgba(6,6,7,.86);box-shadow:inset 0 0 0 1px var(--line-2)}
.dband__legs{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:8px}
.dbody{display:flex;flex-direction:column;gap:32px;padding:24px}
@media (max-width:767px){.dbody{padding:16px;gap:24px}}
.dlinks{display:flex;flex-wrap:wrap;gap:16px}
@media (max-width:767px){.dlinks > .btn{flex:1 1 100%}}
.dnote{display:block;padding:16px 24px;background:var(--ink-1);box-shadow:inset 2px 0 0 var(--warn)}
.dnote--acc{box-shadow:inset 2px 0 0 var(--acc)}
/* the token note is one control kind (data-btn="note"): on phones it keeps two lines of room, so signed in and out it has one height */
@media (max-width:767px){a.dnote{display:flex;align-items:center;min-height:calc(2lh + 32px)}}

/* ---------- rail blocks ---------- */
.rblock{display:flex;flex-direction:column;gap:16px;padding:24px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1);min-width:0}
@media (max-width:767px){.rblock{padding:16px}}
.rblock__h{display:flex;flex-direction:column;gap:12px}
.rblock .tbl thead th{background:var(--ink-2)}
.rblock .tbl tbody tr:not([aria-selected="true"]):hover{background:rgba(242,238,230,.06);box-shadow:inset 2px 0 0 var(--line-2)}
.boardp .tbl tbody tr[aria-current="true"]:hover,.rblock .tbl tbody tr[aria-current="true"]:hover{background:rgba(240,79,208,.2)}
.vrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding-block:12px;box-shadow:inset 0 -1px 0 var(--line-1)}
.vrow > .stack{gap:12px;min-height:76px;justify-content:center}
.vfees{padding-top:12px}
.rbox{margin-inline:-24px;overflow-y:auto;overscroll-behavior-y:auto}
.rbox--4{height:408px}
@media (max-width:767px){.rbox{margin-inline:-16px}}

/* ---------- positions ---------- */
.auto{display:flex;flex-direction:column;gap:16px;padding:24px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1)}
@media (max-width:767px){.auto{padding:16px}}
.auto__h{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.auto__h > .stack{min-width:0}
.auto__h .tierl,.auto__h .tier{align-self:flex-start}
.auto__log{display:flex;flex-direction:column;gap:8px}
.auto__log li{display:flex;gap:12px}
.pexp{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:24px;padding:24px;background:var(--ink-1)}
@media (min-width:768px){.pexp{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pexp__act{grid-column:1/-1}
.legline{display:flex;flex-direction:column;gap:8px}
.legline > .row{gap:8px;flex-wrap:wrap}
/* empty states: a dashed ink panel, one heading, one line, one action (SPEC §5) */
.panelx.empty{background:var(--ink-1);box-shadow:none;border:1px dashed var(--line-2)}
.poempty > p.t-body{min-height:3lh}

/* ---------- presets ---------- */
.ptabs{display:flex;gap:24px;padding:0 24px;box-shadow:inset 0 -1px 0 var(--line-1);overflow-x:auto;scrollbar-width:none}
@media (max-width:767px){.ptabs{padding:0 16px}}
.editor{display:flex;flex-direction:column;gap:32px;padding:24px}
@media (max-width:767px){.editor{padding:16px;gap:24px}}
.erow{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
@media (min-width:768px){.erow{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* toggle row: words on the left (the tier badge runs inline after the title, never alone mid-row), the switch on the title's line */
.tgl-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.tgl__t{display:block}
.tgl__b{display:inline-flex;vertical-align:middle;margin-left:12px}
/* signed out: one strip — why to sign in on the left, Sign in on the right */
.efoot--out .efoot__sp{display:none}
.efoot__msg{flex:1 1 240px;min-width:0}
.tgl-row > .stack,.tgl-row > .t-body{flex:1;min-width:0}
.efoot{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:24px;box-shadow:inset 0 1px 0 var(--line-1)}
@media (max-width:767px){.efoot{padding:16px}}
.efoot__sp{flex:1}
.chips{display:flex;flex-wrap:wrap;gap:16px}
/* class chips: wells; the chosen one has a t-1 edge and a check (never a white fill — that is the one action of the view) */
.chip--pick{background:var(--ink-3);box-shadow:inset 0 0 0 1px var(--line-1);color:var(--t-2)}
.chip--pick[aria-pressed="true"]{background:var(--ink-3);color:var(--t-1);box-shadow:inset 0 0 0 1px var(--t-1)}
.chip__ck{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line-2)}
.chip--pick[aria-pressed="true"] .chip__ck{background:var(--t-1);color:var(--ink-0);box-shadow:none}
.chip__ck .ui{width:16px;height:16px}

/* ---------- telegram / settings ---------- */
.panelx{display:flex;flex-direction:column;gap:24px;padding:24px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-1)}
@media (max-width:767px){.panelx{padding:16px}}
.panelx__h{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.panelx__h > .t-body{flex:1;min-width:0}
.tsteps{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
@media (min-width:768px){.tsteps{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tstep{display:flex;flex-direction:column;gap:8px;padding-top:16px;box-shadow:inset 0 2px 0 var(--line-2)}
.tstep.done{box-shadow:inset 0 2px 0 var(--t-1)}
.tstep.now{box-shadow:inset 0 2px 0 var(--acc)}
.tstep.off > .t-ui{color:var(--t-3)}
/* the bot is unavailable: the three steps step back (muted words and rules), the warn banner above says why */
.tsteps--off .tstep{box-shadow:inset 0 2px 0 var(--line-1)}
.tsteps--off .tstep > *{color:var(--t-3)}
.tgprev{display:flex;flex-direction:column;gap:16px;padding:24px;background:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-1)}
@media (max-width:767px){.tgprev{padding:16px}}
.tgprev .btn{align-self:flex-start}
.acts{display:flex;flex-wrap:wrap;gap:16px}
.addr--full{overflow-wrap:anywhere}
.kv--mid{align-items:center}

/* ---------- dialogs used by trade.js ---------- */
.legp{display:flex;flex-direction:column}
.legp > li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding-block:12px;box-shadow:inset 0 -1px 0 var(--line-1)}
.lst{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:2px;font-family:var(--mono);font-weight:500;font-size:var(--fs-label);line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--t-2);box-shadow:inset 0 0 0 1px var(--line-2)}
.lst--ok{color:var(--up);box-shadow:none;background:var(--up-tint)}
.lst--fail{color:var(--dn);box-shadow:none;background:var(--dn-tint)}
.lst--run{color:var(--t-1)}
.spin{display:inline-block;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line-2);border-top:2px solid var(--t-1);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.keyb{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-1)}
.rsn{display:flex;flex-direction:column;gap:8px}
.rsn > li{display:flex;align-items:flex-start;gap:8px}
#dlg nav.stack > .sitem{min-height:56px}

/* ---------- command palette (⌘K): fixed panel over a 72 % scrim; the page under it stays, inert ---------- */
.ck{position:fixed;inset:0;z-index:85}
.ck__scrim{position:absolute;inset:0;background:rgba(6,6,7,.72)}
.ck > .wrap{position:relative;padding-top:96px}
@media (max-width:767px){.ck > .wrap{padding-top:16px}}
.ck__p{position:relative;height:min(480px,calc(100vh - 128px));display:flex;flex-direction:column;
  background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-2);animation:ckin .2s var(--ease)}
@media (max-width:767px){.ck__p{height:calc(100vh - 32px)}}
@keyframes ckin{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
.ck__in{display:flex;align-items:center;gap:12px;height:64px;padding:0 8px 0 16px;box-shadow:inset 0 -1px 0 var(--line-1)}
.ck__in input{flex:1;min-width:0;height:48px;padding:0;border:0;background:none;outline:none;font-family:var(--sans);font-weight:500;font-size:var(--fs-ui);line-height:1.5;color:var(--t-1)}
.ck__in input::placeholder{color:var(--t-3)}
/* ≥ 1024 the input line is 15 × 1.5: the field is 44 like every other field (the close button is gone there, Esc is a key hint) */
@media (min-width:1024px){.ck__in input{height:44px}}
.ck__l{flex:1;overflow-y:auto;overscroll-behavior:contain;padding-block:8px}
.ck__sec{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:12px 16px 8px}
.ck__it{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:56px;padding:12px 16px;cursor:pointer}
.ck__it.sel{background:var(--ink-3);box-shadow:inset 2px 0 0 var(--acc)}
.ck__it .stack{min-width:0}
.ck__pg{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ink-3)}
.ck__empty{padding:24px 16px}
.ck__f{display:none;flex-wrap:wrap;gap:24px;padding:12px 16px;box-shadow:inset 0 1px 0 var(--line-1)}
.ck__f > span{display:inline-flex;align-items:center;gap:8px}
.ck__esc{display:none}
/* with a keyboard (fine pointer, ≥ 768): key hints in the footer, a right label on every result, Esc instead of the close button */
.ck--kbd .ck__f{display:flex}
.ck--kbd .ck__esc{display:inline-flex}
.ck--kbd .ck__x{display:none}
@media (prefers-reduced-motion:reduce){.ck__p,.spin{animation:none!important}}

.statst thead th{background:none!important;position:static}
.sk--lh{height:1lh;width:120px}
.tgprev .kv .sk--lh{width:96px}
.sk--legs{height:20px;width:96px}
.sk--btn{height:48px;width:200px}
.tgprev .sk--card{margin-block:0}
.sk--h{height:1lh;width:min(240px,60%)}
.sk--p{height:3lh;width:100%}

/* focus never lands under a bar: the scroll keeps the top bar and (≤ 1023) the tab bar + trade bar out of the way */
html{scroll-padding-top:88px}
@media (max-width:1023px){html{scroll-padding-top:80px;scroll-padding-bottom:calc(64px + 80px + 16px + env(safe-area-inset-bottom))}}
.aview{display:flex;flex-direction:column;gap:32px;min-width:0}
@media (max-width:767px){.aview{gap:24px}}
@media (max-width:767px){.panelx__h{flex-direction:column;align-items:stretch}.panelx__h > .tierl{align-self:flex-start}}
/* the first frame already has the sign-in banner a signed-out visitor will see on Live gaps / All markets (app.js redraws the same) */
html.si .pre-si,html[data-v]:not([data-v="alerts"]):not([data-v="pairs"]) .pre-si{display:none}
#vs{min-height:20px}
@media (max-width:767px){#vs{min-height:calc(2 * var(--fs-small) * 1.45)}}
@media (max-width:767px){.ahead__meta{flex-direction:column;align-items:flex-start}}
@media (max-width:767px){.ck__it{grid-template-columns:auto minmax(0,1fr)}.ck__rl,.ck__sec > [data-col="r"]{display:none}.ck__sec{grid-template-columns:32px minmax(0,1fr)}}

/* the phone / tablet ticket sheet: the ticket in its own order (size, legs, leverage, the gap, the action) — the same as on /pair */
/* a focused board row: the ring sits inside the row (never cut by the table) */
tr.is-link:focus-visible{outline-offset:-2px}
/* the search field focus: a 2 px accent ring */
.filters .field:focus-within{box-shadow:inset 0 0 0 2px var(--acc)}

/* ---------- compact cabinet: one-line board rows from 768, compact side menu and rail ---------- */
@media (min-width:1024px){.ashell{padding-top:32px}.side{top:104px}}
.amain,.aview{gap:24px}
.ahead{gap:12px}
#banners{gap:8px}
/* one thin banner: words left (may wrap to a second line), the action right; 56 px on desktop */
.banner--line{align-items:center;min-height:56px;padding:8px 16px}
@media (max-width:767px){.banner--line{flex-direction:row;padding:8px 16px}}
.banner__t{flex:1;min-width:0;text-wrap:pretty}
.banner__t > .t-ui{margin-right:8px}
.banner--line > .btn{flex:none}
/* tables: from 768 every board row is ONE line, 56 px (coin 32 + 12 above and below: text keeps 12 px from the rules);
   the market cell runs ticker · deployer chip · legs · delay badge on that line. Phones: two-line cards, 82 px (16 px to the rules,
   12 between the lines — the gate's rule and proximity clearances) */
.tbl--fixed tbody tr{height:56px}
.tbl--fixed td{padding-block:12px}
.tbl .mkt .nm{gap:12px}
@media (min-width:768px){.tbl .mkt .nm{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:12px}}
@media (max-width:767px){.tbl--fixed tbody tr{height:86px}.tbl--fixed td{padding-block:16px}}
/* lists that stay two lines at every width (rail activity, preset matches): 82 px rows */
#actList tbody tr,#prLive tbody tr{height:82px}
#actList td,#prLive td{padding-block:16px}
.tbl .nm .row.nm__l2{flex-wrap:nowrap;align-items:center}
.tbl .nm__l2 .legs{column-gap:8px}
.tbl .nm__l2 .legs .vm{width:16px;height:16px}
.tbl .nm__l2 .legs__t{display:none}
/* $ / h and % / h on one line, both right-aligned (the % muted); a value too long for the cell wraps the % under the $ */
.fig--l{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;column-gap:8px;row-gap:8px}
/* same side: the 24-hour bar and «20 of 24 h» on one line */
.stcell{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:8px}
.stcell > .steady{width:48px}
.tnum{font-variant-numeric:tabular-nums}
/* the Free-view delay badge: «−30 min», the full sentence in its tip */
.dly{display:inline-flex;align-items:center;flex:none;padding:0 4px;border-radius:2px;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--t-2);white-space:nowrap;font-variant-numeric:tabular-nums;cursor:help}
.dly:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.tbl .w-fig{width:176px}.tbl .w-pb{width:124px}.tbl .w-st{width:140px}.tbl .w-lev{width:64px}
@media (max-width:767px){.tbl .w-fig{width:112px}}
/* side menu: 36 px items (mouse only: the menu exists from 1024), tighter groups and tier card */
.side{gap:24px}
.sgrp > .t-label{margin-bottom:4px}
@media (min-width:1024px){.side .sitem{min-height:36px;padding-block:8px}}
.tcard{gap:12px;padding-top:16px}
.tcard__h{gap:8px}
/* right rail: lower blocks, key–value rows on one line */
.rail{gap:24px}
.rblock{gap:12px;padding:16px 24px}
@media (max-width:767px){.rblock{padding:16px}}
.rblock__h{gap:12px}
.vrow{padding-block:8px}
.vrow > .stack{gap:8px;min-height:0}
.tk{gap:16px;padding:16px 24px}
@media (max-width:767px){.tk{padding:16px}}
.tk__well{padding:16px}
.tk__leg{padding-block:8px}
.tk__levh{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:16px;row-gap:8px}
.tk__kv{row-gap:8px}
.tk__gate{padding:12px 16px}
/* «Get set up»: lower strip */
.strip{min-height:56px;padding-block:12px}
@media (min-width:1024px){.gs__i{min-height:32px}}
/* one exact page of rows under the 48 px head: the box never moves the page */
@media (min-width:768px){.tbl col.w-fig:last-child{width:184px}}
.board--al,.board--o{height:376px}
@media (min-width:1440px){.board--al{height:600px}}
@media (max-width:767px){.board--al,.board--o{height:532px}}
.board--p{height:608px}
@media (max-width:767px){.board--p{height:860px}}
.rbox--4{height:368px}
/* ≥ 1440 the board takes 7 columns and the rail 3: the one-line market cell (ticker, chip, legs, delay) needs the room */
@media (min-width:1440px){.amain{grid-column:3 / 10}.rail{grid-column:10 / 13}}
/* «Get set up» is one line at every width (label · the next step · Hide), the phone pattern: the board starts higher */
.strip--gs{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:0}
.strip--gs > .strip__h{display:contents}
.strip--gs > .strip__h > .t-label{grid-column:1;grid-row:1;width:auto}
.strip--gs > .strip__h > [data-gshide]{grid-column:3;grid-row:1}
.strip--gs > .gs{grid-column:2;grid-row:1;display:block}
.strip--gs .gs__i:not(.next){display:none}
@media (min-width:768px){.tbl .mkt{gap:8px}.tbl .mkt .nm{column-gap:8px}}
/* 768–1023: the same-side cell keeps the bar (its words are the bar's accessible name), the market cell keeps one line */
@media (min-width:768px) and (max-width:1023px){.tbl .w-st{width:104px}.stcell > .t-small{display:none}}
@media (min-width:768px) and (max-width:1023px){.tbl--fixed th:first-child,.tbl--fixed td:first-child{padding-left:12px}}
/* exact pages: 56 px rows draw a 1 px rule under them (57 a row), phone cards 82 + 1 */
.board--al,.board--o{height:392px}
@media (min-width:1440px){.board--al{height:504px}}
@media (max-width:767px){.board--al,.board--o{height:570px}}
.board--p{height:624px}
@media (max-width:767px){.board--p{height:920px}}
.rbox--4{height:392px}
.tk > .btn--primary{margin-top:8px}
/* a gap figure longer than its cell breaks inside the cell (never runs into the market column) */
.fig--l > span{min-width:0;overflow-wrap:anywhere}
@media (max-width:767px){.tbl .w-fig{width:128px}}
@media (min-width:768px){.tbl col.w-pb:last-child{width:136px}}
.tk > .tk__collect{margin-top:8px}
/* Open · Ended keeps its room before the alerts land (the pager under it never moves) */
.boardp__f > .seg{min-height:var(--h-seg)}
/* the rail is the ticket alone; activity and exchanges follow the detail in the main column */
.amore{display:contents}
.tk__mbtn{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0;text-align:left;color:var(--t-1);box-shadow:inset 0 1px 0 var(--line-1)}
.tk__mbtn::after{content:"+";color:var(--t-2)}
.tk__mbtn[aria-expanded="true"]::after{content:"−"}
.tk__morein{padding-top:16px}
/* phones, signed out: the board has one list, so no tab row and no unit line above it (the trade bar carries the size) */
@media (max-width:767px){.al--solo > .boardp__h{display:none}.ashell{padding-top:16px}}
/* ticket: «Size per leg» and the size on one line; the venue links of the Whale gate side by side */
.tk__well{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:16px;row-gap:16px}
.tk__well > .seg,.tk__well > .grp{grid-column:1 / -1}
.tk__manual{grid-template-columns:repeat(2,minmax(0,1fr))}
.tk__manual > .btn{min-width:0}
.tk__morein{display:flex;flex-direction:column;gap:16px}
/* phones: tighter head of the page; the delay badge in the label role (one 17 px line: 82 px cards) */
@media (max-width:767px){
  .amain,.aview{gap:16px}
  .dly{font-family:var(--mono);font-weight:500;font-size:var(--fs-label);line-height:1.3;letter-spacing:.08em;text-transform:uppercase}
  .tbl--fixed tbody tr{height:82px}
  .board--al,.board--o{height:546px}
  .board--p{height:880px}
}
.tk__morein[hidden]{display:none}
/* Details is the last part of the ticket: opening it pushes nothing; 16 px from the text above it */
.tk__more{margin-top:8px}
.tk__well{row-gap:24px}
/* ≤ 1023 on Live gaps / All markets the ticket and the detail live in the sheet a row opens — not inline under the board too */
@media (max-width:1439px){#main[data-v="alerts"] #detail,#main[data-v="pairs"] #detail{display:none}.ashell__g:not(.norail) > .rail{display:none}}
/* phones / tablets: Liquid only and the search share one line under the class chips */
@media (max-width:1023px){.filters > .grp{width:auto;flex:1 1 120px;min-width:0}.filters > .liq{margin-right:0}}
/* /app/pairs phones: search + «Filters» in one row; the classes wrap inside the Filters sheet */
.filters--ph{flex-wrap:nowrap;column-gap:8px}
.filters--ph > .grp{flex:1 1 auto;width:auto;min-width:0}
.filters--ph .field{height:44px}
.pfbtn{flex:none;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;height:44px;padding-block:0}
.filters__cls--wrap{flex-direction:column;flex-wrap:nowrap;gap:16px;overflow:visible;-webkit-mask-image:none;mask-image:none}
.filters__cls--wrap > button{justify-content:flex-start;padding-inline:16px}
#sub[hidden]{display:none}
/* page head: the freshness line only on the boards (Live gaps, All markets) */
#vs[hidden]{display:none}
/* /app/telegram: the preview is the bot's own message, at a message's width; long names wrap inside their column */
.tgmsg{display:flex;flex-direction:column;gap:12px}
.tgmsg > .btn{align-self:flex-start;margin-top:8px}
@media (min-width:768px){.tgprev{max-width:480px}}
.tstep > .t-ui,.tgl-row > .t-body{overflow-wrap:anywhere;min-width:0}
@media (max-width:767px){.tsteps{gap:12px}.tstep{gap:8px;padding-top:12px}}
/* /app/settings: statuses and buttons on the right edge (one axis for keys and funds), one row height, no empty message gap */
.kv--mid{align-items:center}
.kv--mid > dd{display:flex;justify-content:flex-end;align-items:center;gap:8px}
#keys .kv--mid > dt,#keys .kv--mid > dd{min-height:var(--h-row)}
#kMsg:empty{display:none}
@media (max-width:767px){.panelx__h > .tier{align-self:flex-start}}
/* hotfix 3 (owner 28.11): the gap figure stays on one line at ≥ 768: «$ / h» and «% / h» side by side, the column sized for the widest
   figure the formatter makes («−$99.99 / h −0.9999%», 20 mono characters = 175 px). The gap and fees cells drop their left
   padding (both are right-aligned; the 8 px right padding of the cell before them is the gap between columns), the gap column takes
   8 px more, the fees column (or the two rate columns on All markets) gives them back: the market column keeps its exact room.
   Only a figure no formatter makes still wraps inside its cell (never runs into the next column).
   Phones keep the two-line figure in every row (always stacked, so no row differs from the next) */
@media (min-width:768px){
  :is(#alT,#pT) :is(td,th):is([data-col="g"],[data-col="p"]){padding-left:0}
  :is(#alT,#pT) col.w-fig{width:184px}
  :is(#alT,#pT) col.w-fig:last-child{width:192px}
  #alT col.w-pb{width:116px}
  #pT col.w-rate{width:108px}
}
@media (min-width:1440px){#pT col.w-rate{width:116px}}
@media (max-width:767px){.fig--l{flex-direction:column;align-items:flex-end;flex-wrap:nowrap}}
/* «over 48 h» / «under 0.1 h» stay one line; the word is a tight prefix, the number and «h» keep the column's right edge */
.tbl td[data-col="p"]{white-space:nowrap}
/* the Whale gate's venue links: icon and name always inside the button. Side by side while both fit at their natural width,
   one under the other (full width) when they do not */
.tk__manual{display:flex;flex-wrap:wrap}
.tk__manual > .btn{flex:1 1 0;width:auto;min-width:max-content}
/* 1024–1439: the ticket is not next to the board (the rail would stand under the whole column), so the trade bar carries the selected
   market at the bottom of the window (no tab bar here) and opens the sheet; the page keeps the bar's 80 px free at its end */
@media (min-width:1024px) and (max-width:1439px){
  body[data-page="app"] .tbar{display:block;bottom:env(safe-area-inset-bottom)}
  body[data-page="app"].has-tb{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
}
/* the market cell never breaks a word: «Ended · gap faded» stays whole */
.tbl .nm__l2 > .t-small{overflow-wrap:normal;white-space:nowrap}
/* side menu: every item keeps the dot's slot, so the current page's label does not move 8 px right of the others */
.sitem > .lidot{width:8px}
/* board footer ≥ 1024: Open / Ended and the pager share one line (both fit; the pager used to drop to a second line) */
@media (min-width:1024px){.boardp__f > .seg + .row{flex-basis:auto}}
/* the detail's links: one per line wherever the detail lives in the sheet (≤ 1439), side by side next to the board from 1440 */
@media (max-width:1439px){.dlinks > .btn{flex:1 1 100%}}
/* presets: the Whale badge of Auto-close sits after the words, and under them without an indent when it wraps */
.tgl__t{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:8px}
.tgl__b{margin-left:0}
/* board rows keep one height: the hot dot is as tall as the name line; Same side is the bar (its words are the tip / accessible name),
   so the column is the bar's width at every width; the row's delay badge shows from 1024 (768–1023: the banner and the row's name say it) */
.tbl .nm .row > .lidot{height:auto;align-self:center}
@media (min-width:768px){.tbl .w-st{width:104px}.stcell > .t-small{display:none}}
@media (min-width:768px) and (max-width:1023px){.tbl .nm .dly{display:none}}
/* Alert activity: «over 59 min ago» stays one line */
#actList td[data-col="w"]{white-space:nowrap}
#actList col.w-pb{width:136px}
/* ⌘K on phones: the legs are marks only (arrows + exchange marks), so a long name and its legs stay inside the row */
@media (max-width:767px){.ck__it .legs__t{display:none}}
/* All markets ≥ 768: the five class chips fit the row (12 px side padding), no sideways scroll at 1440–2560 */
@media (min-width:768px){.filters__cls:not(.filters__cls--wrap) > button{padding-inline:12px}}
/* hints and step lines: no one-word last line */
.hint,.tstep > .t-ui{text-wrap:pretty}
/* boards ≥ 1024: the first column starts on the block's 24 px text edge (tabs, filters and footer start there too) */
@media (min-width:1024px){.boardp .tbl--fixed th:first-child,.boardp .tbl--fixed td:first-child{padding-left:24px}}
/* side menu tier card: no one-word last line at 1024 */
#side .tcard .t-small{text-wrap:pretty}
/* «Get set up» steps: a wrapped step name never leaves one short word on its own line */
.gs__i > span{text-wrap:balance}
/* ---------- r5 (29.11): four board cards above the trade bar on phones (360–414), signed in and out ---------- */
@media (max-width:767px){
  .ashell{padding-top:12px}
  /* the boards' head is one line: the title and the freshness line beside it (a long venue warning drops under the title) */
  #main:is([data-v="alerts"],[data-v="pairs"]) .ahead{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:16px;row-gap:12px}
  #vs{min-height:max(20px, calc(var(--fs-small) * 1.45))}
  /* sign in on phones: the title and the button on one line (the reassurance stays for screen readers) */
  .banner--line[data-ban="signin"] .banner__t > .t-small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  /* the cards' column heads: one 44 px line (the label and the sort arrow keep 12 px from both rules) */
  .boardp .tbl--fixed thead th{height:44px;padding-block:12px}
  /* signed in, the tabs sit right above the heads: 48 px heads keep the tab's 16 px to the head text; 16 + 4 px under the page title */
  #alBoard:not(.al--solo) .tbl--fixed thead th{height:48px;padding-block:16px 12px}
  #alBoard:not(.al--solo){margin-top:4px}
  /* the cards: 12 px from the rules to the lines (name 20.8 + 12 + second line 18.2 = 51, + 24 = 75, + the 1 px rule = 76) */
  .tbl--fixed tbody tr{height:76px}
  /* the second line is the legs' height in every card: an ended card's «Ended · gap faded» (20.3 px line box, the same ink) keeps the
     open cards' 76 px, so Open and Ended fill one exact box */
  :is(#alT,#pT) .nm__l2{height:calc(var(--fs-label) * 1.3);align-items:center}
  .tbl--fixed td{padding-block:12px}
  /* the unit line under the tabs goes: the size is in the ticket, the trade bar and each card's accessible name */
  #alUnit{display:none}
  .filters--ph{padding-block:12px}
  /* signed in: «Get set up» / the main preset follow the board (the board starts right under the head) */
  #view > #strips{order:1}
  #view > .amore > *,#view > #detail{order:2}
  /* exact pages under the 44 px head (48 signed in): 6 / 10 cards of 76 (the last one draws no rule) — no scroll inside the box */
  .board--al,.board--o{height:500px}
  #alBoard:not(.al--solo) .board--al{height:504px}
  .board--p{height:804px}
}
/* r5: Same side — a 71 px bar (24 hours as 2 px ticks drawn 1:1, was 1 px in 48); its words «23/24 h» next to it wherever the board has the room (≥ 900);
   Fees covered keeps 24 px from Gap / h (the column takes 20 px from the market column) */
.boardp{container-type:inline-size}
.stcell > .stw{display:none}
@media (min-width:768px){
  .stcell > .steady{width:71px}
  #alT col.w-pb{width:136px}
}
@container (min-width:900px){
  #alT col.w-st{width:200px}
  .stcell{flex-wrap:nowrap}
  .stcell > .stw{white-space:nowrap}
  .stcell > .stw{display:inline}
}
/* 320–359: the tab bar sizes each item to its label (five labels never touch); the delay badge leaves the cards (the banner and the
   card's accessible name say it) */
@media (max-width:359px){
  .tabbar__in{grid-template-columns:repeat(5,minmax(max-content,1fr));padding-inline:8px}
  .tbl .nm .dly{display:none}
  /* the gap column gives the market 16 px: a name and its deployer chip stay on one line (the chip wrapped alone: 110 px cards next to 83) */
  .tbl .w-fig,:is(#alT,#pT) col.w-fig{width:112px}
}
/* r5: the sheet — the market is named in the sheet's head (name · coin · chip, as on /pair), so the ticket's own market line goes */
#tkSheet .tk > .tk__mk{display:none}
.pager[hidden]{display:none}
/* positions on phones: «Result so far» fits its column head */
@media (max-width:767px){#poT col.w-fig{width:144px}}
/* Telegram linked on phones: the name takes the full width, the Unlink button its own line */
@media (max-width:767px){#tgp .tgl-row{grid-template-columns:minmax(0,1fr)}#tgp .tgl-row > .btn{justify-self:start}}
#tgp .tgl-row > .t-body,.tgname{overflow-wrap:anywhere;min-width:0}
/* preset tabs that don't fit: the side with more fades */
.ptabs[data-more="r"]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
.ptabs[data-more="l"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
.ptabs[data-more="l r"]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
/* ⌘K on phones: the panel ends above the browser's own toolbar */
@media (max-width:767px){.ck__p{height:calc(100dvh - 32px)}}
/* presets ≥ 768: Hold time is a number field, as wide as the fields of the two-column rows above it */
@media (min-width:768px){#prBody .editor > .grp{width:calc(50% - 12px)}}
/* r5: the rail ticket (≥ 1440) fits the window: a tighter rhythm, and the rail stays in view, scrolling
   inside itself when the Whale lock and Ask AI make it taller than the window (the page never moves under it) */
@media (min-width:1440px){
  .rail{position:sticky;top:104px;max-height:calc(100vh - 120px);overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
  .rail .tk{gap:12px}
  .rail .tk__well{row-gap:16px}
  .rail .tk__note{margin-top:4px}
  .rail .tk__gate{gap:12px}
}
/* ---------- r6 (29.11): board boxes, chips, empty search, pager edge ---------- */
/* ≥ 1440: Live gaps is one page of 8 rows (48 + 8 × 57 = 504; 10 left a 178 px empty tail under the usual 7–8 open gaps next to the ticket) */
/* All markets, a search that matches nothing: the box closes around its one line (the input moved it, not the data) */
.board--p.is-empty{height:auto}
/* 768–1023: the five class chips fit their row (8 px sides, 4 px around the middot: 618 px of 656) — «Indices & FX · 3» was cut */
@media (min-width:768px) and (max-width:1023px){.filters__cls:not(.filters__cls--wrap) > button{padding-inline:8px;gap:4px}}
/* the pager keeps the footer's right edge on every board, also when the help line pushes it to its own line */
.boardp__f > .pager{margin-left:auto}
/* ≥ 768 one-line gap figure: the % / h keeps a fixed slot, so «$ / h» ends on one axis in every row (8 characters: every % the formatter makes up to «+9.9999%») */
@media (min-width:768px){.fig--l > .t-nums{min-width:8ch;text-align:right}}
/* phones: a deployer chip and the delay badge never share the name line with a long name — the badge goes (the banner, the tip and the
   card's accessible name say it) */
@media (max-width:767px){.tbl .mkt:has(.dex) .nm__l2 > .dly{display:none}}
/* 320–359: name · deployer chip · hot dot keep one line (4 px apart); «Ended · gap flipped» ends inside the market cell */
@media (max-width:359px){.tbl .nm > .row:first-child{column-gap:4px}.tbl .nm{min-width:0}.tbl .nm__l2{min-width:0;max-width:100%;overflow:hidden}.tbl .nm__l2 > .t-small{overflow:hidden;text-overflow:ellipsis}}
/* the detail's metrics: a lone metric of a pair takes the pair's full width (no half row with a half rule) */
.mpair > .metric:only-child{grid-column:1 / -1}
/* touch tablets: the sheet's ticket buttons keep the phone's 44 px targets */
@media (min-width:768px) and (pointer:coarse){#dlg .tk .seg > button{height:44px;padding-block:12px}}
/* settings: the key names sit on the axis of their mark and status (dt is a flex row: centre it, as in Funds) */
#keys .kv--mid > dt{align-items:center}
/* positions, an open row: the day's total under the last 6 paid hours */
.pexp__tot{padding-top:12px;box-shadow:inset 0 1px 0 var(--line-1)}
/* presets: the live list's pager on the block's right edge, under the box */
.rblock__f{display:flex;justify-content:flex-end}
.rblock__f > .pager[hidden]{display:inline-flex;visibility:hidden}
/* ≥ 1440 the rail scrolls inside itself when the ticket is taller than the window: the side that has more fades (app.js railHint) */
@media (min-width:1440px){
  .rail[data-more="b"]{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 48px),transparent)}
  .rail[data-more="t"]{-webkit-mask-image:linear-gradient(180deg,transparent,#000 48px);mask-image:linear-gradient(180deg,transparent,#000 48px)}
  .rail[data-more="t b"]{-webkit-mask-image:linear-gradient(180deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(180deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
}
/* phones, a leg's result with a reason («Failed · Order refused by the exchange»): the status and the reason take their own line under
   the exchange, at the full width (in the right column the reason ran under «Hyperliquid») */
@media (max-width:767px){.legp > li > .stack:has(> .t-small){grid-column:2 / -1;align-items:flex-start!important}.legp > li > .stack > .t-small{overflow-wrap:anywhere}}
/* positions ≥ 1024: Hedged pairs starts on the same 24 px edge as Other positions and the boards (icon 312, not 304) */
@media (min-width:1024px){#poT tr:not(.xrow) > :first-child{padding-left:24px}}
/* positions on phones, an open row: «Close both legs» comes first, above the figures and the hours */
@media (max-width:767px){.pexp__act{order:-1}}
/* toasts ≥ 1024: in the side menu's column, under the menu (the empty foot of the column) — over the rail they covered the ticket's text.
   Left on the content edge, two columns + one gutter wide (the menu's own width) */
@media (min-width:1024px){
  body[data-page="app"] .toasts{--tw:min(100%, calc(var(--maxw) + 2 * var(--m)));left:calc((100% - var(--tw)) / 2 + var(--m));right:auto;
    width:calc((var(--tw) - 2 * var(--m) - (var(--cols) - 1) * var(--g)) / var(--cols) * 2 + var(--g))}
}
