/* App (cabinet) — C cabinet + left menu (research/ref-zolva/d1440-sec-02.png) in G «Wide» (design/directions/g-wide/app.html, SPEC §2–4):
   full width, fluid sidebar and content grid, fr table columns with a fixed action column, Mona Sans, proportional figures, numeric columns right-aligned. 375: tab bar. */
:root{--legsw:206px;--side-w:clamp(232px,12vw,280px);--row-h:clamp(62px,3vw,72px);--rows:5;--col2:clamp(320px,23vw,400px);--act:clamp(176px,9vw,210px)}
/* H «Container»: the cabinet keeps its own padding; the main column is capped and stays next to the sidebar */
body.app{--px:clamp(24px,2.2vw,40px)}
body.app .main>*{max-width:1400px;margin-left:auto;margin-right:auto}
/* one-column views: header and panel share one width (their right edges line up) */
/* C6: …and they start on the same left edge as Alerts / Positions / Pairs (the 1400 column's left), not centred (was 264 vs 356 at 1440) */
body.app .main[data-v=presets]>*,body.app .main[data-v=telegram]>*,body.app .main[data-v=settings]>*{max-width:960px;margin-left:max(0px,calc((100% - 1400px) / 2));margin-right:auto}
.main[data-v=presets] .solo,.main[data-v=telegram] .solo,.main[data-v=settings] .solo{max-width:none}
/* numeric table columns keep tabular figures (Switzer's are plain in both modes) */
.row .nu b,.row .m,.row .w,.row .v,.prow .w,.prow .v,.paid b{font-variant-numeric:tabular-nums}
body.app{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);min-height:100vh;background:var(--bg)}
.nu,.m,.paid,.in,.kv b,.seg button{}

/* sidebar */
.side{position:sticky;top:0;height:100vh;padding:clamp(20px,1.5vw,36px) clamp(14px,1vw,24px);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:clamp(20px,1.6vw,36px);background:var(--side);overflow-y:auto}
.side__brand{display:flex;align-items:center;gap:.45em;padding:4px 10px;font:500 clamp(20px,1vw,26px)/1 var(--sans);letter-spacing:-.03em;color:var(--head)}
.side__brand .mark{width:1.15em;height:1.15em}
.sg{display:flex;flex-direction:column;gap:3px}
.sgl{padding:0 12px 8px;font-size:var(--t-small);color:var(--dim)}
.si{height:clamp(42px,2vw,52px);padding:0 12px;border-radius:10px;display:flex;align-items:center;gap:.7em;font:400 var(--t-ui)/1 var(--sans);color:var(--muted);position:relative;transition:color .2s,background .2s}
.si:hover{color:var(--head)}
.si .ic{width:1.1em;height:1.1em;flex:none}
.si b{margin-left:auto;font-weight:500;font-size:14px;color:var(--dim)}
.si.on{background:rgba(255,255,255,.07);color:var(--head)}
.side .si.on::before{content:"";position:absolute;left:calc(-1 * clamp(14px,1vw,24px));top:22%;bottom:22%;width:3px;border-radius:0 3px 3px 0;background:var(--champ)}
.si.on .ic{color:var(--champ)}
.side__foot{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.tier{border:1px solid var(--line);border-radius:var(--r);padding:clamp(14px,1vw,22px)}
.tl{font-size:var(--t-small);color:var(--muted)}
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-top:12px;padding:3px;border-radius:10px;background:rgba(255,255,255,.04)}
.tiers a{height:clamp(32px,2vw,42px);display:grid;place-items:center;border-radius:8px;font:500 var(--t-small)/1 var(--sans);color:var(--dim)}
.tiers .on{background:#fff;color:#111}
.tier p{margin-top:10px;font-size:var(--t-small);color:var(--dim);line-height:1.4;min-height:2.8em}
.wal{display:flex;align-items:center;gap:12px;padding:clamp(12px,.9vw,18px) 14px;border-radius:var(--r);background:rgba(255,255,255,.04);font-size:var(--t-small);color:var(--dim);min-height:clamp(60px,3.8vw,84px);text-align:left;width:100%}
.wal i{width:9px;height:9px;border-radius:50%;background:var(--champ);flex:none}
.wal>span{min-width:0}.wal b{display:block;font-weight:500;font-size:var(--t-ui);color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal--out{flex-direction:column;align-items:stretch;gap:10px}
.wal--out .b1{width:100%;border-radius:10px}
.wal small{display:block;font-size:var(--t-small);line-height:1.4;color:var(--dim)}

/* main */
.main{padding:clamp(24px,2vw,52px) var(--px) clamp(32px,2.4vw,64px);min-width:0}
.top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(20px,1.7vw,40px)}
.top h1{font:500 var(--t-h1)/1.05 var(--font-display);letter-spacing:-.03em;color:var(--head)}
.top p{margin-top:.6em;font-size:var(--t-body);color:var(--muted)}.top p b{font-weight:500;color:var(--head)}
.vs{display:flex;gap:10px}
.vchip{display:flex;align-items:center;gap:.6em;height:clamp(38px,1.9vw,48px);padding:0 1em 0 .6em;border-radius:999px;border:1px solid var(--edge);font-size:var(--t-small);color:var(--muted);white-space:nowrap}
.vchip b{font-weight:500;color:var(--head);min-width:6.5em}
.vchip--down b{color:var(--neg)}
.grid{display:grid;grid-template-columns:minmax(0,1fr) var(--col2);gap:var(--gap);align-items:start}
.col{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.solo{max-width:clamp(720px,52vw,1200px)}

/* tables inside cases: fr columns + a fixed action column keep header and rows on one grid */
.cols,.row{display:grid;align-items:center;column-gap:clamp(12px,1vw,24px);padding:0 clamp(18px,1.4vw,32px)}
.al .cols,.al .row{grid-template-columns:minmax(0,1.6fr) 206px minmax(0,1.1fr) minmax(0,.7fr) minmax(0,.8fr) var(--act)}
.po .cols,.po .row{grid-template-columns:minmax(0,1.7fr) 206px minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.4fr) var(--act)}
.cols{height:clamp(40px,2vw,50px);border-bottom:1px solid var(--line);font-size:var(--t-small);font-weight:500;color:var(--muted)}
.cols span{white-space:nowrap}
.cols>span:nth-child(n+3),.row>span:nth-child(n+3){text-align:right}
.row{height:var(--row-h);border-bottom:1px solid var(--line);font-size:var(--t-num)}
.row:last-child{border-bottom:0}
.al .list{min-height:calc(var(--row-h) * var(--rows));position:relative}
.list__in{will-change:transform}
.row.is-new{animation:newrow 2.6s var(--ease)}
@keyframes newrow{0%{background:var(--new)}100%{background:transparent}}
.list__in.is-shift{animation:slide .6s var(--ease)}@keyframes slide{from{transform:translateY(calc(-1 * var(--row-h)))}}
.row.ended{opacity:.5}
.al--full .list{height:calc(var(--row-h) * 10)}
.mk{display:flex;align-items:center;gap:.7em;min-width:0}.mk b{font-weight:500;color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.mk:hover b{text-decoration:underline;text-decoration-color:var(--line2)}
.nu b{display:block;font-weight:500;color:var(--head);white-space:nowrap}
.hd b{font-weight:400;color:var(--text)}.hd small{white-space:nowrap}
.nu small{display:block;margin-top:.35em;font-size:max(14px,.82em);color:var(--muted);white-space:nowrap}
.hd small.dl{color:var(--hb)}
.m{color:var(--text);white-space:nowrap}
.act{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.endd{font-size:var(--t-small);color:var(--dim);white-space:nowrap}
.paid{display:flex;flex-direction:column;align-items:flex-end;gap:.3em}
.paid b{font-size:1.3em;font-weight:500;letter-spacing:-.02em;background:var(--gold);-webkit-background-clip:text;background-clip:text;color:transparent;white-space:nowrap}
.paid b.neg{background:none;color:var(--neg)}
.paid small{font-size:14px;color:var(--dim);white-space:nowrap}
.case .empty{min-height:clamp(180px,12vw,280px)}
.po--c #poList{height:calc(var(--row-h) * 5);overflow-y:auto;overscroll-behavior:contain}.po--c #poList>.empty{height:calc(var(--row-h) * 5)}
.al .list>.list__in>.empty{height:calc(var(--row-h) * var(--rows))}
.al--full .list>.list__in>.empty{height:calc(var(--row-h) * 10)}
.note{padding:clamp(12px,.9vw,20px) clamp(18px,1.4vw,32px);border-top:1px solid var(--line);font-size:var(--t-small);line-height:1.45;color:var(--dim)}
.note a{color:var(--text);text-decoration:underline;text-decoration-color:var(--line2)}


/* buttons: b1 = primary solid, b2 = secondary outlined pill */
.b1,.b2{height:var(--h-btn);padding:0 clamp(18px,1.3vw,30px);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:.5em;font:500 var(--t-ui)/1 var(--sans);white-space:nowrap;transition:background .2s,border-color .2s,opacity .2s}
.b1{background:#fff;color:#111}.b1:hover{background:#e9e9ec}
.b2{border:1px solid #4a4c56;color:#fff}.b2:hover{border-color:#8a8d99}
.b1[disabled],.b2[disabled]{opacity:.45;cursor:default}
.sm{height:clamp(36px,1.7vw,44px);font-size:var(--t-small);padding:0 clamp(14px,1vw,24px)}
.b1 .hb,.b2 .hb{height:1.6em;font-size:14px;padding:0 .5em}
.b1 .hb{color:#5c4818;border-color:#9a7b3a;background:rgba(174,147,87,.14)}
.b2 .ic,.b1 .ic{width:1em;height:1em}
.lnk{color:var(--text);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}

/* presets */
.ptabs{display:flex;gap:8px;padding:clamp(16px,1.2vw,28px) clamp(18px,1.4vw,32px) 6px;flex-wrap:wrap}
.pt{height:clamp(34px,1.7vw,44px);padding:0 1em;border-radius:999px;border:1px solid var(--edge);display:flex;align-items:center;gap:.5em;font-size:var(--t-small);color:var(--text);max-width:16em}
.pt span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt.on{background:#fff;border-color:#fff;color:#111;font-weight:500}
.pt i.mn{width:7px;height:7px;border-radius:50%;background:var(--champ);flex:none}.pt.on i.mn{background:#ae9357}
.fs{padding:2px clamp(18px,1.4vw,32px) 18px}
.f{min-height:clamp(56px,2.8vw,70px);display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:8px 0}
.f .l{font-size:var(--t-body);color:var(--head);display:flex;flex-direction:column;gap:4px;min-width:0}
.f .l small{font-size:max(14px,.8em);color:var(--dim);line-height:1.4}
.f .l .x{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.in{height:clamp(38px,1.9vw,48px);width:clamp(150px,9vw,200px);padding:0 14px;border-radius:10px;border:1px solid var(--edge);background:rgba(28,29,34,.6);display:flex;align-items:center;justify-content:flex-end;gap:4px;font:500 var(--t-num)/1 var(--sans);color:var(--head);white-space:nowrap;flex:none}
.in input{width:100%;min-width:0;background:none;border:0;outline:0;font:inherit;color:inherit;text-align:right}

.in:focus-within{border-color:#8a8d99}
.in.bad{border-color:var(--neg)}
.in small{color:var(--dim);font-weight:400;font-size:max(14px,.85em)}
.in button{font-size:14px;color:var(--dim);padding:4px 0 4px 6px;white-space:nowrap}
.in button:hover{color:#fff}
.seg{display:flex;padding:3px;border-radius:999px;border:1px solid var(--edge);gap:2px;flex:none}
.seg button{height:clamp(30px,1.5vw,38px);min-width:clamp(40px,2vw,50px);border-radius:999px;display:grid;place-items:center;font-size:var(--t-small);color:var(--muted)}
.seg button.on{background:#fff;color:#111;font-weight:500}
.tgl{width:clamp(44px,2.8vw,60px);height:clamp(24px,1.55vw,32px);border-radius:999px;background:#2e3038;position:relative;flex:none;transition:background .2s}
.tgl::after{content:"";position:absolute;left:3px;top:3px;bottom:3px;aspect-ratio:1;border-radius:50%;background:#fff;transition:transform .2s}
.tgl[aria-checked=true]{background:var(--champ)}.tgl[aria-checked=true]::after{transform:translateX(calc(clamp(44px,2.8vw,60px) - clamp(24px,1.55vw,32px)));background:#111}
.chips{display:flex;gap:6px;flex-wrap:wrap;padding-top:4px}
.chips button{height:clamp(32px,1.6vw,40px);padding:0 1em;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--edge);display:flex;align-items:center;font-size:var(--t-small);color:var(--head)}
.chips button.off{background:transparent;color:var(--dim)}
.f--col{flex-direction:column;align-items:flex-start;justify-content:center;padding:14px 0;gap:8px}
.save{padding:0 clamp(18px,1.4vw,32px) clamp(18px,1.4vw,32px);display:flex;flex-direction:column;gap:10px}.save .b1{width:100%;border-radius:10px}
.save__r{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:1.5em;font-size:var(--t-small);color:var(--dim)}
.save__r button{font-size:var(--t-small);color:var(--muted)}.save__r button:hover{color:#fff}
.msg{min-height:1.5em;font-size:var(--t-small);line-height:1.5;color:var(--dim)}
.msg.ok{color:var(--champ)}.msg.err{color:var(--neg)}
.tgc{display:flex;align-items:center;gap:14px;padding:clamp(16px,1.2vw,28px) clamp(18px,1.4vw,32px)}
.tgi{width:2.4em;height:2.4em;border-radius:50%;border:1px solid var(--edge);display:grid;place-items:center;color:var(--head);flex:none;font-size:var(--t-ui)}.tgi .ic{width:1em;height:1em}
.tgc p{font-size:var(--t-small);color:var(--muted);min-width:0}.tgc p b{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:500;font-size:var(--t-ui);color:var(--head)}
.tgc .b2,.tgc .b1{margin-left:auto}

/* stacked panels (telegram, settings) */
.panel{padding:clamp(20px,1.6vw,36px)}
.panel h3,.panel .h3{font:500 var(--t-h2)/1.2 var(--sans);letter-spacing:-.02em;color:var(--head);display:flex;align-items:center;gap:.5em}
.panel h3 .ic,.panel .h3 .ic{width:.8em;height:.8em;flex:none;color:var(--champ)}
.panel p{margin-top:10px;font-size:var(--t-body);line-height:1.5;color:var(--text);max-width:60ch}
.panel .acts2{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.kv{margin-top:16px;border-top:1px solid var(--line)}
.kv>div{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:clamp(52px,3.4vw,72px);border-bottom:1px solid var(--line);font-size:var(--t-body);color:var(--text)}
.kv>div:last-child{border-bottom:0}
.kv b{font-weight:500;color:var(--head);min-width:5em;text-align:right}

/* pairs view */
.pf{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:clamp(14px,1vw,24px) clamp(18px,1.4vw,32px);border-bottom:1px solid var(--line)}
.pf .chips2{display:flex;gap:8px;flex-wrap:wrap}
.srch{height:clamp(38px,2.4vw,52px);width:clamp(200px,14vw,340px);padding:0 1em;border-radius:999px;border:1px solid var(--edge);background:rgba(28,29,34,.6);font-size:var(--t-small);color:var(--head);outline:0}
.srch:focus{border-color:#8a8d99}
.lq{display:flex;align-items:center;gap:10px;font-size:var(--t-small);color:var(--muted)}
/* C3: the legs column is as wide as the legs (it was 1fr, so the second mark ran into the Hyperliquid rate and hid its sign) */
.pv .cols,.pv .row{grid-template-columns:minmax(0,2.1fr) var(--legsw) repeat(5,minmax(70px,1fr)) 24px}
.pv .row:hover{background:rgba(255,255,255,.025)}
.pv .row{}
.pv .mk b{flex:1}
.slot-hot{width:14px;flex:none;display:flex;justify-content:center}.slot-dex{width:3.6em;flex:none;display:flex}
.limdot{display:inline-block;width:8px;height:8px;margin-left:8px;border-radius:50%;border:1.5px solid var(--hb);vertical-align:1px}
.pv .go{color:var(--dim);display:flex;justify-content:flex-end}.pv .go .ic{width:1em;height:1em}
.pv .gd{font-weight:500}
.pv .w{color:var(--text)}.pv .v{font-weight:500;color:var(--head)}
.dexm{display:none}
.cl-s{display:none;align-items:center;gap:6px}
.row.one .uh{color:var(--hb);font-weight:500}
.hotdot{width:8px;height:8px;border-radius:50%;background:var(--champ);flex:none;box-shadow:0 0 0 3px rgba(255,240,204,.14)}
.more{display:flex;justify-content:center;padding:16px}

/* the open-both / close-both window */
dialog.dlg{margin:auto;width:min(clamp(460px,30vw,640px),calc(100% - 32px));border:0;border-radius:var(--r);background:linear-gradient(201deg,#16171c 13.96%,#0b0c0e);color:var(--text);padding:0;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 40px 120px rgba(0,0,0,.8);font-size:var(--t-body)}
dialog.dlg::backdrop{background:rgba(3,3,4,.78)}
.dlg__h{display:flex;align-items:center;gap:12px;padding:clamp(18px,1.3vw,28px) clamp(20px,1.5vw,32px);border-bottom:1px solid var(--line)}
.dlg__h h2{font:500 var(--t-h2)/1.2 var(--sans);letter-spacing:-.02em;color:var(--head)}
.dlg__h button{margin-left:auto;width:2.2em;height:2.2em;border-radius:50%;display:grid;place-items:center;color:var(--muted)}.dlg__h button:hover{color:#fff;background:rgba(255,255,255,.06)}
.dlg__b{padding:6px clamp(20px,1.5vw,32px) clamp(20px,1.5vw,32px)}
.dlg .kv{margin-top:0;border-top:0}
.dlg .warn{margin-top:14px;font-size:var(--t-small);line-height:1.5;color:var(--dim)}
.dlg .manual{margin-top:14px;font-size:var(--t-body);line-height:1.5;color:var(--text)}
.dlg .acts2{margin-top:18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.dlg .gate{margin-top:14px;display:flex;align-items:center;gap:10px;font-size:var(--t-small);color:var(--hb)}
.kbs{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.kb{border:1px solid var(--edge);border-radius:10px;padding:14px}
.kb__h{display:flex;align-items:center;gap:8px;font-size:var(--t-small)}.kb__h b{font-weight:500;color:var(--head)}
.kb__st{margin-left:auto;font-size:14px;color:var(--champ)}.kb__st.neg{color:var(--neg)}
.kb ul{list-style:none;margin-top:10px;display:flex;flex-direction:column;gap:6px;font-size:var(--t-small);line-height:1.4}
.kb li.ok{color:var(--text)}.kb li.no{color:var(--muted)}
.kb li::before{display:inline-block;width:1.2em;color:var(--champ)}.kb li.ok::before{content:"✓"}.kb li.no::before{content:"✕";color:var(--dim)}
.legp{list-style:none;margin-top:8px;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.legp li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:54px;border-bottom:1px solid var(--line);font-size:var(--t-small);color:var(--text)}
.legp li b{font-weight:500;color:var(--head);text-align:right}
.legp .lg-waiting b{color:var(--dim)}.legp .lg-opening b,.legp .lg-closing b{color:var(--champ)}.legp .lg-failed b{color:var(--neg)}
.rsn{list-style:none;margin-top:14px;display:flex;flex-direction:column;gap:10px}
.rsn li{display:flex;gap:10px;align-items:flex-start;font-size:var(--t-small);line-height:1.45;color:var(--text)}
.rsn.neg li{color:var(--neg)}
.dlg .manual b{font-weight:500}
.openleg{position:sticky;top:0;z-index:20;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-radius:var(--r);background:#2a1110;box-shadow:inset 0 0 0 1px rgba(239,138,127,.55);color:#ffd9d4}
.openleg b{display:block;font-weight:600;font-size:var(--t-body);color:#fff}.openleg span{display:block;margin-top:4px;font-size:var(--t-small)}

/* alerts: selectable rows, skeletons, ended group, detail panel (REVIEW-1 P1-4, P0-9) */
.al .row[data-id]{cursor:pointer;transition:background .2s}
.al .row[data-id]:hover{background:rgba(255,255,255,.025)}
.al .row.sel{background:rgba(255,240,204,.045);box-shadow:inset 3px 0 0 var(--champ)}
.row.sk i{display:block;height:.8em;border-radius:6px;background:rgba(255,255,255,.06)}
.row.sk .mk i{width:6em}.row.sk .coin{box-shadow:none;background:rgba(255,255,255,.06)}
.pdc b{font-weight:500;color:var(--head)}
details.ended{border-top:1px solid var(--line)}
details.ended>summary,details.other>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:clamp(48px,2.6vw,60px);padding:0 clamp(18px,1.4vw,32px);font-size:var(--t-small);color:var(--muted)}
details.ended>summary::-webkit-details-marker,details.other>summary::-webkit-details-marker,.pc>summary::-webkit-details-marker{display:none}
details.ended>summary::before,details.other>summary::before{content:"›";display:inline-block;transition:transform .2s;color:var(--dim)}
details.ended[open]>summary::before,details.other[open]>summary::before{transform:rotate(90deg)}
.detail{position:sticky;top:16px;padding:clamp(18px,1.4vw,32px);display:flex;flex-direction:column;gap:14px;min-height:clamp(420px,26vw,560px)}
.dt__h{display:flex;align-items:center;gap:14px;font-size:var(--t-h2)}
.dt__h>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.dt__h b{font-weight:500;color:var(--head);letter-spacing:-.02em;display:flex;align-items:center;gap:10px}
.dt__h .dex,.acard__h .dex{align-self:flex-start}
.kv .lr{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:10px 0}.kv .lr b{margin-left:0!important;text-align:left}
.dt__h small{font-size:var(--t-small);color:var(--dim)}
.dt__main{display:flex;flex-direction:column;gap:6px;padding-top:6px}
.dt__main .big{font:400 clamp(34px,2.4vw,52px)/1 var(--sans);letter-spacing:-.03em;color:var(--head);font-variant-numeric:proportional-nums}
.dt__main span:last-child{font-size:var(--t-small);color:var(--muted)}
.detail .kv,.dlg .kv{margin-top:0}
.detail .kv>div,.dlg .kv>div{min-height:clamp(46px,2.7vw,58px);font-size:var(--t-small);flex-wrap:wrap;row-gap:2px;padding:6px 0}
.detail .kv b,.dlg .kv b{white-space:nowrap;margin-left:auto}
.detail .kv .vh,.dlg .kv .vh{white-space:nowrap}
.dt__links{display:flex;gap:16px;flex-wrap:wrap;font-size:var(--t-small)}
.dt__go{margin-top:auto;width:100%;border-radius:10px}
.dt__links{margin-bottom:16px}

/* get set up, preset summary, positions strip */
.gs{margin-bottom:var(--gap);padding:clamp(16px,1.2vw,26px) clamp(18px,1.4vw,32px)}
.gs__h{display:flex;justify-content:space-between;align-items:center;font-size:var(--t-body)}.gs__h b{font-weight:500;color:var(--head)}
.gs__h button{font-size:var(--t-small);color:var(--dim)}.gs__h button:hover{color:#fff}
.gs__l{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gs__i{display:flex;align-items:center;gap:10px;min-height:clamp(52px,3vw,64px);padding:0 14px;border-radius:10px;border:1px solid var(--edge);font-size:var(--t-small);color:var(--text)}
.gs__i i{width:22px;height:22px;border-radius:50%;border:1px solid var(--edge);display:grid;place-items:center;font-style:normal;font-size:13px;color:#111;flex:none}
.gs__i.done i{background:var(--champ);border-color:var(--champ)}
.gs__i em{margin-left:auto;font-style:normal;color:var(--dim)}
.gs__i.done{color:var(--dim)}
.psum,.pstrip{margin-bottom:var(--gap);display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:clamp(50px,2.8vw,62px);padding:0 clamp(16px,1.2vw,26px);border-radius:var(--r);border:1px solid var(--edge);font-size:var(--t-small);color:var(--text)}
.psum>span{display:flex;align-items:center;gap:10px;min-width:0}.psum .ic{width:1.1em;height:1.1em;color:var(--champ);flex:none}
.pstrip{background:rgba(255,240,204,.04);border-color:rgba(217,195,143,.35)}
/* positions: hedged pair cards (expand for the breakdown), other legs folded and neutral */
.pc{border-bottom:1px solid var(--line)}.pc:last-child{border-bottom:0}
.pc>summary{list-style:none;cursor:pointer}
.pc[open]>summary{background:rgba(255,255,255,.02)}
.pc__b{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap);padding:clamp(14px,1.1vw,26px) clamp(18px,1.4vw,32px) clamp(18px,1.4vw,32px)}
.pc__b h4{font-size:var(--t-small);font-weight:500;color:var(--muted);margin-bottom:6px}
.pc__b .kv{margin-top:8px}
.pc__b .kv>div{min-height:44px;font-size:var(--t-small)}
.hrs{max-height:clamp(300px,18vw,440px);overflow-y:auto}
.other{margin-top:var(--gap)}
.other .note{border-top:0;padding-top:0}
.olist .cols,.olist .row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.4fr) var(--act)}
.olist .row .nu b{color:var(--text)}
/* tier line with progress */
.tier{display:block}
.tbar{display:block;margin-top:10px;height:4px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden}.tbar i{display:block;height:100%;background:var(--champ)}
/* presets page: explanation lines */
.pexp{padding:0 clamp(18px,1.4vw,32px);display:flex;flex-direction:column;gap:4px;font-size:var(--t-small);color:var(--muted)}
.f .l .x{flex-wrap:nowrap;white-space:nowrap}
.tabbar{display:none}.mtop{display:none}.mob-only{display:none}

@media (max-width:1500px){
  .al .cols,.al .row{grid-template-columns:minmax(0,1.6fr) 206px minmax(0,1.1fr) minmax(0,.7fr) var(--act)}.al .hd{display:none}
}
/* 761–1500: the market cell gets narrow (≈140 px at 1440): the venue tag moves under the name so «UNITREE», «Anthropic» show in full.
   Phones (≤ 760) keep their own row layout. */
@media (min-width:761px) and (max-width:1500px){
  .al .row .mk{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.7em;row-gap:3px;align-items:center}
  .al .row .mk .coin{grid-row:1/3}.al .row .mk b{grid-column:2;grid-row:1;align-self:end}
  .al .row .mk .dex{grid-column:2;grid-row:2;justify-self:start;align-self:start}
  .al .row .mk:not(:has(.dex)) b{grid-row:1/3;align-self:center}
}
@media (max-width:1280px){
  .ph .r{display:none}
  .po .cols,.po .row{grid-template-columns:minmax(0,1.6fr) 206px minmax(0,1.1fr) minmax(0,1.4fr) var(--act)}.po .c-val{display:none}
  .pv .cols,.pv .row{grid-template-columns:minmax(0,2fr) var(--legsw) repeat(3,minmax(70px,1fr)) 20px}.pv .c-back,.pv .c-held{display:none}
}
@media (max-width:1060px){
  .grid{grid-template-columns:minmax(0,1fr)}.detail{display:none}
  .gs__l{grid-template-columns:minmax(0,1fr)}
  .pc__b{grid-template-columns:minmax(0,1fr)}
  .top{flex-direction:column;align-items:flex-start}
  .al .cols,.al .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--act)}
  .al .cols>:nth-child(2),.al .row>:nth-child(2),.al .cols>:nth-child(4),.al .row>:nth-child(4),.al .cols>:nth-child(5),.al .row>:nth-child(5){display:none}
  .olist .cols,.olist .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--act)}.olist .cols>:nth-child(2),.olist .cols>:nth-child(4),.olist .row>:nth-child(2),.olist .row>:nth-child(4){display:none}
  .po .cols,.po .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--act)}
  .po .cols>:nth-child(2),.po .row>:nth-child(2),.po .cols>:nth-child(3),.po .row>:nth-child(3),.po .cols>:nth-child(4),.po .row>:nth-child(4){display:none}
  .pv .cols,.pv .row{grid-template-columns:minmax(0,1fr) 7em 20px}
  .pv .cols>:nth-child(2),.pv .row>:nth-child(2),.pv .c-hl,.pv .c-lt,.pv .c-back,.pv .c-held{display:none}
}
@media (min-width:761px) and (max-width:1060px){
  :root{--side-w:76px}
  .side{padding:20px 10px;align-items:center}
  .side__brand span,.sgl,.si span,.si b,.side__foot{display:none}
  .side__brand{padding:4px}
  .si{width:52px;justify-content:center;padding:0}.si .ic{width:20px;height:20px}
  .side .si.on::before{left:-10px}
}
@media (max-width:760px){
  body.app{display:block;padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .side{display:none}
  .mtop{display:flex;align-items:center;justify-content:space-between;height:52px;margin:-4px 0 14px}.mtop .side__brand{padding:0;font-size:20px}
  .mw{display:flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--edge);font-size:14px;color:var(--muted);white-space:nowrap}.mw i{width:7px;height:7px;border-radius:50%;background:var(--champ)}
  .mw--out{background:#fff;color:#111;border-color:#fff;font-weight:500}
  .main{padding:16px 12px}
  .top{gap:12px;margin-bottom:14px}
  .top h1{font-size:34px}
  .vs{width:100%}.vchip{flex:1;justify-content:center;padding:0 8px}.vchip b{display:none}
  .grid{gap:14px}.side2{display:none}
  .ph{padding:0 14px}
  .cols{display:none}
  .al .row,.po .row,.olist .row{column-gap:0;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;height:74px;padding:0 14px;row-gap:6px;align-content:center;font-size:16px}
  .row .mk{display:contents}.row .mk .coin{grid-row:1/3}.row .mk .dex{display:none}.row .mk b{grid-column:2;grid-row:1;align-self:end}
  .al .row>.legs,.po .row>.legs{display:flex}
  .row .legs{grid-column:2;grid-row:2;gap:10px}.row .legs .leg2{gap:6px}.row .legs .dexm{display:none}.row .nu{grid-column:3;grid-row:1/3}
  .row .m,.al .row .act,.row .hd{display:none}
  .po .row{grid-template-columns:44px minmax(0,1fr) auto auto;height:76px}
  .po .row .nu,.po .row .c-val{display:none}.po .row .paid{grid-column:3;grid-row:1/3}.po .row .paid small{display:none}
  .po .row .act{grid-column:4;grid-row:1/3;padding-left:10px}
  .po .row .act .hb{display:none}
  .cl-l{display:none}.cl-s{display:inline-flex}
  .po--c #poList,.po--c #poList>.empty{height:380px}
  .al .list{min-height:0}
  .list__in.is-shift{animation-name:slide-m}@keyframes slide-m{from{transform:translateY(-74px)}}
  .pf{padding:12px 14px}.srch{width:100%}
  .pv .row{grid-template-columns:44px minmax(0,1fr) auto 16px;grid-template-rows:auto auto;height:72px;padding:0 14px;row-gap:6px;column-gap:0;align-content:center;font-size:16px}
  .pv .row>span:nth-child(2),.pv .c-hl,.pv .c-lt,.pv .c-back,.pv .c-held{display:none}
  .pv .c-net{grid-column:3;grid-row:1/3}.pv .go{grid-column:4;grid-row:1/3}
  .solo{max-width:none}
  .mob-only{display:block}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;height:calc(68px + env(safe-area-inset-bottom));padding:0 2px env(safe-area-inset-bottom);background:var(--side);border-top:1px solid var(--line);z-index:30}
  .tabbar .si{height:68px;flex-direction:column;justify-content:center;gap:6px;font-size:14px;padding:0;border-radius:0;background:transparent;letter-spacing:-.02em}
  .tabbar .si.on{color:var(--head)}.tabbar .si.on::before{content:"";position:absolute;left:30%;right:30%;top:0;height:2px;background:var(--champ)}
  .tabbar .si .ic{width:20px;height:20px}
  .dlg .acts2{grid-template-columns:minmax(0,1fr)}
  .kbs{grid-template-columns:minmax(0,1fr)}
  dialog.dlg.sheet{margin:auto 0 0;width:100%;max-width:100%;border-radius:16px 16px 0 0;max-height:88vh;overflow-y:auto}
  .olist .row,.po .pc>summary.row{grid-template-columns:44px minmax(0,1fr) auto auto;height:76px}
  .olist .row>.legs{display:flex}.olist .row>:nth-child(3){grid-column:3;grid-row:1/3}.olist .row>:nth-child(4){display:none}.olist .row .act{grid-column:4;grid-row:1/3;padding-left:10px}
  .psum{flex-wrap:wrap;padding:10px 14px}
}

/* Long / Short labels in the cabinet (labels SPEC): the progress lines carry the step number before the leg */
.legn{display:inline-block;min-width:1.4em;color:var(--dim);font-variant-numeric:tabular-nums}
.legp .vh{gap:0}
.row .legs .dexm{margin-left:-4px}

/* ============ owner refs 13.11 (borrowings 3–5): grouped menu, overview blocks, ⌘K palette, leg statuses, step card. No blur. ============ */
/* menu: Live / Mine / Help, a search field on top (opens ⌘K); active item = plate + gold bar (kept) */
.nsrch{display:flex;align-items:center;gap:10px;height:40px;margin:0 2px;padding:0 10px 0 12px;border-radius:10px;background:#0e0f12;box-shadow:inset 0 0 0 1px #1d1e24;color:var(--dim);font:400 var(--t-small)/1 var(--sans);text-align:left;transition:box-shadow .2s,color .2s}
.nsrch:hover{color:var(--text);box-shadow:inset 0 0 0 1px #2e3038}
.nsrch .ic{width:15px;height:15px;flex:none}.nsrch span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
kbd{font:500 12px/1 var(--sans);color:var(--muted);padding:4px 6px;border-radius:5px;box-shadow:inset 0 0 0 1px #2e3038;white-space:nowrap}
.sgl{text-transform:uppercase;letter-spacing:.12em;font-size:12px!important;font-weight:600;color:#5e616e!important}
.si b.si__n{min-width:22px;height:22px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;background:var(--champ);color:#0b0c0e!important;font-size:12px;font-weight:600}
/* «Read live · N s ago» */
.rlive{display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px #1d1e24;font-size:var(--t-small);color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.rlive i{width:7px;height:7px;border-radius:50%;background:var(--long)}.rlive--down i{background:var(--neg)}

/* the best open alerts as four cases above the table */
.bcases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:var(--gap)}
.bcases:empty{display:none}
.bc{display:flex;flex-direction:column;gap:0;padding:16px 18px 18px;text-align:left;cursor:pointer;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.bc:hover{transform:translateY(-2px)}
.bc>*{position:relative;z-index:1}
.bc__h{display:flex;align-items:center;gap:10px;min-width:0}.bc__h .coin{--cs:34px}
.bc__n{display:flex;flex-direction:column;gap:3px;min-width:0}.bc__n b{font-weight:500;font-size:16px;color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bc__n small{font-size:14px;color:var(--dim)}
.bc__st{margin-left:auto;font-size:14px;color:var(--dim);white-space:nowrap;font-variant-numeric:tabular-nums;align-self:flex-start}
.bc__v{margin-top:16px;height:34px;font:500 32px/1 var(--sans);letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.bc__v .u{font-size:15px;letter-spacing:0;color:#777a88}
.bc__k{margin-top:8px;min-height:2.9em;font-size:14px;line-height:1.45;color:var(--muted)}
.bc__l{margin-top:14px;display:flex;gap:14px}

/* «Alert activity» + «Exchanges» */
.two{margin-top:var(--gap);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--gap);align-items:start}
.box{padding:clamp(18px,1.4vw,26px)}
.box>*{position:relative;z-index:1}
.box h2{font:500 var(--t-h2)/1.2 var(--sans);letter-spacing:-.02em;color:var(--head)}
.box p.d{margin-top:6px;font-size:var(--t-small);color:var(--dim)}
.feed{margin-top:14px;min-height:calc(7 * 64px)}
.fr{height:64px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:center;border-top:1px solid var(--line);font-size:var(--t-small);color:var(--text)}
.fr .coin{--cs:30px}
.fr__t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fr__t b{font-weight:500;color:var(--head)}.fr__t small{display:block;margin-top:3px;font-size:14px;color:var(--dim)}
.fr__r{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-variant-numeric:tabular-nums}.fr__r small{font-size:14px;color:var(--dim)}
.exg{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exc{min-height:150px;border-radius:10px;padding:14px 16px;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px #1d1e24;display:flex;flex-direction:column}
.exc.on{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.exc__t{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}.exc__t .coin{--cs:28px}
.exc__m{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#0b0c0e;box-shadow:inset 0 0 0 1px #2e3038}.exc__m .xm--hl{width:18px;height:13px}.exc__m .xm--lt{width:8px;height:15px;margin:0}
.exc__lb{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exc__nm{margin-top:auto;padding-top:12px;font-size:var(--t-small);color:var(--muted)}
.exc__bg{margin-top:4px;font:500 26px/1.1 var(--sans);letter-spacing:-.02em;color:var(--head);font-variant-numeric:tabular-nums}
.exc__sm{margin-top:6px;font-size:14px;color:var(--dim)}

/* status chips in the shape of the Long/Short labels */
.lst{display:inline-flex;align-items:center;justify-content:center;height:22px;min-width:70px;padding:0 8px;border-radius:6px;font:600 11px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;
  --c:#9194a1;--bg:rgba(255,255,255,.03);--edge:#2e3038;color:var(--c);background:var(--bg);box-shadow:inset 0 0 0 1px var(--edge),inset 0 1px 0 rgba(255,255,255,.05)}
.lst--ok{--c:var(--long);--bg:var(--long-bg);--edge:var(--long-edge)}
.lst--fail{--c:var(--short);--bg:var(--short-bg);--edge:var(--short-edge)}
.lst--run{--c:var(--champ);--bg:rgba(255,240,204,.06);--edge:rgba(255,240,204,.3)}
.legst{display:inline-flex;align-items:center;gap:10px;min-width:0}.legst b{font-weight:500;color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* «Open both legs» step card: Alert → Size set → Both legs open; gold edge on the active step */
.stc{margin-top:auto;border-radius:12px;padding:14px;background:linear-gradient(201deg,#16171b 13.96%,#0d0e11);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),inset 0 1px 0 rgba(255,255,255,.06)}
.dlg .stc{margin:6px 0 4px}
.stc__h{font:500 var(--t-ui)/1.2 var(--sans);color:var(--head)}
.stc__s{list-style:none;margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
@media (min-width:761px){.dlg:not(.sheet) .stc__s{grid-template-columns:repeat(3,minmax(0,1fr))}}
.stc__s li{display:flex;align-items:center;gap:7px;height:34px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px #1d1e24;font-size:14px;color:var(--dim);min-width:0}
.stc__s li span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stc__s li i{flex:none;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font:600 11px/1 var(--sans);font-style:normal;color:var(--dim);box-shadow:inset 0 0 0 1px #2e3038}
.stc__s li.done{color:var(--text)}.stc__s li.done i{color:#0b0c0e;background:var(--long);box-shadow:none}
.stc__s li.on{color:var(--head);background:linear-gradient(180deg,rgba(255,240,204,.07),rgba(255,240,204,.02));box-shadow:inset 0 0 0 1px rgba(217,195,143,.55)}
.stc__s li.on i{color:var(--champ);box-shadow:inset 0 0 0 1px rgba(255,240,204,.6)}
.stc__p{margin-top:10px;font-size:var(--t-small);color:var(--muted)}
.stc .dt__go{margin-top:12px}

/* mobile header: search button next to the wallet pill */
.mtop__r{display:flex;align-items:center;gap:8px}
.msrch{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;color:var(--text);box-shadow:inset 0 0 0 1px var(--edge)}.msrch .ic{width:18px;height:18px}

/* ⌘K palette: panel #0f1013, radius 14, 1 px white 10 % rim; a dark scrim underneath (no blur) */
.ck{position:fixed;inset:0;z-index:90}
.ck[hidden]{display:none}
.ck__scrim{position:absolute;inset:0;background:rgba(4,4,6,.62)}
.ck__p{position:absolute;left:50%;top:max(56px,12vh);width:min(640px,calc(100vw - 24px));transform:translateX(-50%);border-radius:14px;background:#0f1013;overflow:hidden;
  box-shadow:0 40px 80px -20px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.1),inset 0 1px 0 rgba(255,255,255,.06);animation:ckin .28s cubic-bezier(.16,1,.3,1)}
@keyframes ckin{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
.ck__in{display:flex;align-items:center;gap:12px;height:56px;padding:0 16px 0 18px;border-bottom:1px solid #1d1e24}
.ck__in .ic{width:17px;height:17px;color:var(--muted);flex:none}
.ck__in input{flex:1;min-width:0;height:100%;background:none;border:0;outline:0;font-size:16px;color:#fff}
.ck__in input::placeholder{color:var(--dim)}
.ck__cnt{font-size:14px;color:var(--muted);white-space:nowrap}
.ck__l{max-height:min(60vh,460px);overflow-y:auto;padding-bottom:6px}
.ck__sec{display:flex;justify-content:space-between;padding:12px 18px 6px;font:600 12px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#5e616e}
.ck__it{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:58px;padding:8px 18px;cursor:pointer;color:var(--text)}
.ck__it.sel{background:rgba(255,255,255,.05)}
.ck__it .coin{--cs:28px}
.ck__tx{min-width:0}.ck__tx b{display:block;font-weight:500;font-size:15px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ck__tx small{display:block;margin-top:3px;font-size:14px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ck__tx mark{background:none;color:#fff;font-weight:600;box-shadow:inset 0 -2px 0 rgba(255,240,204,.45)}
.ck__r{display:flex;align-items:center;gap:12px}.ck__tag{font-size:14px;color:var(--muted);white-space:nowrap}
.ck__pg{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.05)}.ck__pg .ic{width:15px;height:15px;color:var(--label)}
.ck__empty{padding:28px 18px;text-align:center;font-size:var(--t-small);color:var(--muted)}
.ck__f{display:flex;align-items:center;gap:16px;padding:10px 18px;border-top:1px solid #1d1e24;font-size:14px;color:var(--muted)}
.ck__f span{display:inline-flex;align-items:center;gap:6px}.ck__any{margin-left:auto}
html.ck-on{overflow:hidden}

@media (max-width:1279px){.bcases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1060px){.two{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .bcases{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:82%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}.bcases::-webkit-scrollbar{display:none}.bc{scroll-snap-align:start}
  .bc__v{font-size:28px;height:30px}
  .exg{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .exc{min-height:136px;padding:12px}
  .exc__bg{font-size:22px}
  .ck__p{top:10px}.ck__f .ck__any{display:none}
  .ck__it .ck__r.legs2{display:none}
}
@media (prefers-reduced-motion:reduce){.ck__p{animation:none}.bc:hover{transform:none}}

/* ---- audit v5 fixes ---- */
/* S1: the 76 px rail (761–1060): search as a 52×40 icon, the open-alerts counter as a dot in the bell's corner */
@media (min-width:761px) and (max-width:1060px){
  .nsrch{width:52px;height:40px;margin:0;padding:0;justify-content:center}.nsrch span,.nsrch kbd{display:none}.nsrch .ic{width:18px;height:18px}
  .si b.si__n{display:block;position:absolute;top:9px;right:11px;min-width:0;width:8px;height:8px;padding:0;font-size:0;box-shadow:0 0 0 2px var(--side)}
}
/* S4: equal bottoms — the table case and the alert panel, «Alert activity» and «Exchanges» */
.main[data-v=alerts] .grid{align-items:stretch}
.main[data-v=alerts] .al{display:flex;flex-direction:column}
.two{align-items:stretch}
.box{display:flex;flex-direction:column}
.exg{flex:1;align-content:start}
/* minor 1: the «Read live» pill keeps its width while the seconds tick */
.rlive{min-width:13.2em;justify-content:flex-start}
/* minor 4: number + unit never break; the fee line balances */
.exc__sm{text-wrap:balance}
/* minor 8: the active item's gold bar is 2 px */
.side .si.on::before{width:2px}
@media (max-width:760px){
  /* minor 5: the feed line wraps instead of cutting the reason */
  .fr{height:auto;min-height:64px;padding:10px 0}.fr__t{white-space:normal}
  /* minor 7: the palette keeps the Long/Short labels on phones, on a second line; pair lines wrap */
  .ck__it{grid-template-columns:30px minmax(0,1fr)}
  .ck__it .ck__r{grid-column:2}
  .ck__it .ck__r.legs2{display:flex}
  .ck__tx small{white-space:normal}
}

/* placeholder cases while the alerts load (same box as a real case) */
.bc--sk{cursor:default}.bc--sk>*{visibility:hidden}
/* the alert panel reserves its full height from the first paint, so the blocks below never move when it fills (CLS 0) */
@media (min-width:1061px){.main[data-v=alerts] .detail{min-height:800px}}
#alOpen{display:inline-block;min-width:5.6em}

/* the venue tag sits beside the name and never gets cut (audit v5 S3) */
.bc__n b,.ck__tx b{display:flex;align-items:center;gap:8px;min-width:0}
.nm1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bc__n b .dex,.ck__tx b .dex{flex:none;font-weight:400}
@media (max-width:760px){.ck__it .ck__tag{display:none}}

/* ---- audit v6 PLAN A5/A6/C4/C8 (point fixes) ------------------------------------------------------------------------------------
   Tier card with its own button (owner ref research/refs-owner-13-11/3-orbian-wallet-cabinet.webp; Linear free plan ca358a82),
   phone tier chip beside Sign in, the tier line on an alert, error blocks (Cofounder 63c14841, Wynde 6f4d3d78), auto-close row
   (Kraken settings b7ae7d3a: label left, switch right). No blur. */
.detail .lc{--side-slot:98px;column-gap:10px}
.dlg .lc{--side-slot:116px}.dlg .lc>b{white-space:normal;max-width:9.5em}
.detail .kv>div:not(.lc) b{font-variant-numeric:tabular-nums}
/* panel links: two equal buttons + the market page full width under them (labels-v2 SPEC; Reown 1135f42e equal buttons under the card) */
.detail .dt__links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 4px}
.detail .dt__links .lnk:last-child{grid-column:1/-1}
.detail .dt__links .lnk{display:flex;align-items:center;justify-content:center;height:38px;padding:0 8px;border-radius:10px;text-decoration:none;font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;
  background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.05)}
.detail .dt__links .lnk:hover{color:#fff}
@media (max-width:760px){
  .lc{--side-slot:98px!important;column-gap:10px}.dlg .lc>b{max-width:7em}
  .dlg .dt__links{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-top:6px}
  .dlg .dt__links .lnk{display:flex;align-items:center;height:48px;border-bottom:1px solid var(--line);font-size:var(--t-small)}
  .dlg .dt__links .lnk::after{content:"↗";margin-left:auto;color:var(--dim)}
}
.tier__b{margin-top:12px;width:100%;gap:8px}.tier__b .ic{color:var(--hb)}
.tier p{min-height:0}
.tchip{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-radius:999px;font-size:13px;color:#e8dcc0;white-space:nowrap;
  box-shadow:inset 0 0 0 1px rgba(217,195,143,.4)}
.tchip .ic{width:14px;height:14px;color:var(--hb);flex:none}
@media (min-width:761px){.tchip{display:none}}
.dt__tier{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;margin-top:4px;border-radius:10px;font-size:var(--t-small);line-height:1.35;color:#e8dcc0;
  background:linear-gradient(135deg,rgba(255,240,204,.07),rgba(255,240,204,.012));box-shadow:inset 0 0 0 1px rgba(217,195,143,.24)}
.dt__tier .ic{width:15px;height:15px;color:var(--hb);flex:none}.dt__tier span:nth-child(2){flex:1;min-width:0}.dt__tier .ar{color:var(--dim)}
.err{display:flex;align-items:center;gap:14px;padding:18px clamp(18px,1.4vw,32px);color:var(--text);font-size:var(--t-small)}
.err__d{width:8px;height:8px;border-radius:50%;flex:none;background:var(--neg)}
.err__t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.err__t b{font-weight:500;color:var(--head);font-size:var(--t-body);line-height:1.4}.err__t small{color:var(--dim)}
.err .b2{flex:none}
.bc--err{grid-column:1/-1;display:flex;align-items:center;padding:0}.bc--err .err{width:100%}
.po--stale .row{opacity:.6}
.auto{padding:clamp(16px,1.2vw,26px) clamp(18px,1.4vw,32px)}
.auto__h{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.auto__t{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.auto__t b{font-weight:500;color:var(--head);font-size:var(--t-body)}
.auto__s{margin-top:6px;font-size:var(--t-small);color:var(--text)}
.auto__n{margin-top:6px;font-size:var(--t-small);color:var(--dim);line-height:1.45}
/* fixed-height log and note: a close that happens later (no input) never pushes the positions down (CLS 0) */
.auto__log{list-style:none;margin-top:12px;border-top:1px solid var(--line);height:111px;overflow-y:auto;overscroll-behavior:contain}
.auto__log .mute{color:var(--dim)}
.auto__n{min-height:2.9em}
.auto__log li{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:var(--t-small);color:var(--text)}
.auto__log li:last-child{border-bottom:0}.auto__log time{flex:none;width:3.4em;color:var(--dim);font-variant-numeric:tabular-nums}
.auto__log .ok{color:var(--long)}.auto__log .neg{color:var(--neg)}
.tgl[disabled]{opacity:.45;cursor:default}
.auto__r{margin-top:10px;padding-left:18px;font-size:var(--t-small);color:var(--text);line-height:1.6}
@media (max-width:760px){.err{flex-wrap:wrap}.err .b2{margin-left:22px}}
.al .cols .c-act{display:flex;justify-content:flex-end;align-items:center}
@media (max-width:760px){
  /* 375: [mark] [tier chip] [search] [wallet dot | Sign in] — the wordmark and the address step aside for the chip (A5) */
  .mtop .side__brand span{display:none}
  .mw--in{width:38px;padding:0;justify-content:center}.mw--in span{display:none}
}
/* C6: ≥ 44 px tap height for the small controls on phones — a transparent ::before around each, the layout does not move */
@media (max-width:760px){
  .b2.sm,.chip,.pt,.seg button,.tgl,[data-gshide],.psum .lnk,.msrch,.mw,.tchip,.side__brand,.lnk-u,[data-unit],.ended>summary,.lq{position:relative}
  .b2.sm::before,.chip::before,.pt::before,.seg button::before,.tgl::before,[data-gshide]::before,.psum .lnk::before,.msrch::before,.mw::before,.tchip::before,
  .mtop .side__brand::before,.lnk-u::before,[data-unit]::before,.main .lnk:not(.dt__links .lnk)::before{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:44px;transform:translateY(-50%)}
  .main .lnk{position:relative}
  .srch{height:44px}
}
/* C6: presets under 420 px — the label and its hint over the field, full width (REVIEW-2 p.1; was 15 characters a line beside the field) */
@media (max-width:420px){
  .pr .f:not(.f--col){flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;padding:14px 0}
  .pr .f .l .x{flex-wrap:wrap;white-space:normal}
  .pr .f>.in{width:100%;height:44px}.pr .f>.seg,.pr .f>.tgl{align-self:flex-start}
}

/* ================================ audit v7 round 1 (frontend) ================================ */
/* a11y S6: each alert row has a real button (stretched over the row, so nothing moves); the pair and the row's own button stay on top */
.al .row[data-id]{position:relative}
.row__sel{position:absolute;inset:0;z-index:0;width:100%;height:100%;border-radius:0;background:none;cursor:pointer}
.row__sel:focus-visible{outline:2px solid var(--champ);outline-offset:-3px;border-radius:6px}
.al .row[data-id]>.act,.al .row[data-id] .scp{position:relative;z-index:1}
/* geometry S-r2-2: the over-limit mark stays in its own slot right of the number (absolute), above the row button */
.al .row[data-id] .limdot{position:absolute;z-index:1}
/* a11y S1: an ended row is quieter by colour, never by opacity (every text ≥ 4.5:1) */
.row.ended{opacity:1}
.row.ended .mk b,.row.ended .nu b{color:var(--muted)}
.row.ended .nu small,.row.ended .m,.row.ended .endd,.row.ended .dex{color:#8a8d99}
.row.ended .scp{opacity:.82}
/* a11y S2: group labels in the menu and the palette read (≥ 4.5:1) */
.sgl{color:#8a8d99!important}.ck__sec{color:#8a8d99}
/* a11y M8: the palette's sub-lines */
.ck__tx small{color:#8a8d99}
/* a11y S5: input edges are visible (≥ 3:1) */
.in,.srch{border-color:#5e616e}
.in.bad{border-color:var(--neg)}
/* a11y M16: the disclosure arrow is decoration */
details.ended>summary::before,details.other>summary::before{content:"›" / ""}
/* ⌘K close button — phones only (a11y M13) */
.ck__x{display:none;width:44px;height:44px;margin-right:-10px;align-items:center;justify-content:center;border-radius:10px;color:var(--muted)}
.ck__x svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round}
@media (max-width:760px){.ck__x{display:inline-flex}.ck__in kbd{display:none}}
/* geometry S2 / S8: the venue tag sits on the name's line in every row (no 12 px jump); the name gets its room, the tag shrinks first */
@media (min-width:761px) and (max-width:1500px){
  .al .row .mk{display:flex;align-items:center}
  .al .row .mk b{grid-row:auto;align-self:auto}
}
.al .row .mk b{flex:0 1 auto;min-width:min(5.5em,100%)}
.al .row .mk .dex{flex:0 1 auto;min-width:0;overflow:hidden}
.al .cols,.al .row{grid-template-columns:minmax(11em,1.6fr) 206px minmax(0,1.1fr) minmax(0,.7fr) minmax(0,.8fr) var(--act)}
@media (max-width:1500px){.al .cols,.al .row{grid-template-columns:minmax(11em,1.6fr) 206px minmax(0,1.1fr) minmax(0,.7fr) var(--act)}}
@media (max-width:1060px){.al .cols,.al .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--act)}}
@media (max-width:760px){.al .row,.po .row,.olist .row{grid-template-columns:44px minmax(0,1fr) auto}}
/* geometry S3: payback numbers on one right edge; the over-limit mark has its own slot */
.al .row>.m,.al .cols>span:nth-child(4),.al .cols>span:nth-child(5){position:relative;padding-right:16px}
.limdot{position:absolute;right:0;top:50%;margin:-4px 0 0;width:8px;height:8px;border-radius:50%;border:1.5px solid var(--hb);display:block}
/* geometry S9: the panel's «Open both legs [Whale | after launch]» never runs out of its button */
.dt__go{flex-wrap:wrap;height:auto;min-height:var(--h-btn);padding:10px 16px;row-gap:6px;justify-content:center}
/* geometry S10: «Get set up» — the label on one line, the badge under it on one x in every card */
.gs__i{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:4px;padding:10px 14px}
.gs__i>i{grid-row:1/3;grid-column:1}.gs__i>span{grid-column:2;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs__i>.hb{grid-column:2;grid-row:2;justify-self:start}.gs__i>em{grid-column:3;grid-row:1/3;margin:0}
.gs__i:not(:has(.hb))>span{grid-row:1/3}
/* geometry S11: one side padding on phones for panel heads, column heads and rows */
@media (max-width:760px){.ph,.cols,.row,.ch .ph{padding-left:16px;padding-right:16px}.al .row,.po .row,.olist .row,.pv .row{padding-left:16px;padding-right:16px}}
/* geometry S12: panel head title and caption on one baseline (the line itself stays centred in the head) */
.al .ph,.po .ph,.pr .ph{flex-wrap:wrap;align-items:baseline;align-content:center}
.al .ph .r,.po .ph .r,.pr .ph .r{flex:1 1 0;text-align:right}
/* geometry S5: in the trade window on phones the amount spans both lines, so the label centres on name + sub-line */
.dlg .lc>b{grid-row:1/3;align-self:center}
/* geometry M2: the search sits on the menu's edges */
.nsrch{margin:0}
/* visual C-12: a chosen market class looks chosen (the same «on» as every other segment) */
.chips button.on{background:#fff;border-color:#fff;color:#111;font-weight:500}
/* visual C-13: the table hugs its rows (no dead field under them); on wide screens the content sits next to the sidebar */
.main[data-v=alerts] .grid{align-items:start}
body.app .main>*{margin-left:0;margin-right:auto}
body.app .main[data-v=presets]>*,body.app .main[data-v=telegram]>*,body.app .main[data-v=settings]>*{margin-left:0}
/* visual M-12: when the feed is down the live dot goes out */
.al--down .ph .dot{background:var(--dim)}.al--down .ph .dot::after{display:none}
/* visual M-14: the market page is an internal link (no external arrow) */
.dt__links .lnk--in::after{content:"→"!important}
.tg__one{margin-top:10px;font-size:var(--t-small);color:var(--dim)}
/* a11y M18: 320 px — the tier chip gives its words up before the header runs past the edge */
@media (max-width:340px){.mtop__r .tchip span{display:none}.mtop__r{min-width:0}}
/* geometry S10 (one line): [✓] label ……… [badge] → — the badges share one right edge in every card, nothing wraps */
.gs__i{grid-template-columns:auto minmax(0,1fr) auto auto;row-gap:0;padding:0 14px}
.gs__i>i,.gs__i>span,.gs__i>.hb,.gs__i>em{grid-row:1}
.gs__i>.hb{grid-column:3;justify-self:end}.gs__i>em{grid-column:4}
/* geometry S9: in the panel's button the badge reads «Whale» alone (the tier line above it says when) — one line, centred */
.dt__go{flex-wrap:nowrap;height:var(--h-btn);padding:0 16px}
.dt__go .hb__l{display:none}.dt__go .hb--pre{gap:0}
/* the unit switch in a field: its text centred in its own box */
.in button[data-unit]{padding:4px 4px 4px 8px}
/* geometry S5: on phones the sub-line stays in the name column, so it never runs under the amount */
@media (max-width:760px){.dlg .lc__n small{grid-column:2;white-space:normal}}
/* name and venue tag on one baseline; the pair (name + tag) centred in the row */
.al .row .mk__n{display:flex;align-items:baseline;gap:.5em;min-width:0}
.al .row .mk__n b{flex:0 1 auto;min-width:min(5.5em,100%);font-weight:500;color:var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){.al .row .mk__n{grid-column:2;grid-row:1;align-self:end}.al .row .mk__n .dex{display:none}}
.row.ended .mk__n b{color:var(--muted)}
/* skeleton rows on phones: the same two lines as a real row */
@media (max-width:760px){.al .row.sk>i{display:none}.al .row.sk>i:nth-child(2){display:block;grid-column:2;grid-row:2;width:40%;justify-self:start}.al .row.sk .mk i{grid-column:2;grid-row:1}}
/* the unit switch: symmetric padding (its text centred) */
.in button[data-unit]{padding:4px 6px}
/* icon-only account links: the icon in the middle of the button */
.kv a.b2.sm:has(> svg):not(:has(span)){width:44px;min-width:44px;padding:0;justify-content:center}   /* icon-only links; a worded link («See tiers») keeps its padding */
/* the market page link's arrow only on phones (where the links are list rows) */
@media (min-width:761px){.dt__links .lnk--in::after{content:none!important}}
.gs__i:not(:has(.hb))>span{grid-row:1}
.gs__i .hb__l{display:none}.gs__i .hb--pre{gap:0}
/* visual C-3 in the best-gap cases: «Steady: 12 of 24 h» sits on the class line, so the market name keeps the full width of its line */
.bc__h .bc__n{flex:1}
.bc__h .bc__n small{display:flex;justify-content:space-between;gap:10px}
.bc__h .bc__n small .bc__st{margin:0;align-self:auto}
/* data S4 / S6: a row whose numbers are the last read (an exchange or its dex is out) is quieter by colour, and says so */
.row--stale .nu b,.row--stale .w,.row--stale .v,.row--stale .m{color:#8a8d99}
.vchip--part b{color:var(--hb)}
/* CLS 0 now that the page shows before the data: the exchanges line keeps its height while it is still empty */
.vs{min-height:38px}
/* perf R-1: the market counts in the /app/pairs chips keep their width before /api/state lands (no re-wrap, CLS 0 on a slow network) */
.pf .chip b[data-pn]{display:inline-block;min-width:1ch;text-align:center}
.pf .chip b[data-pn="all"]{min-width:3ch}.pf .chip b[data-pn="crypto"],.pf .chip b[data-pn="stock"]{min-width:2ch}
.pf .chip b.pn-in{font-weight:inherit;color:inherit}
/* visual Н-С1: the venue tag is never cut — it keeps its width, the name gives way first (ellipsis) */
.al .row .mk .dex,.al .row .mk__n .dex{flex:none;min-width:auto;overflow:visible}
/* visual Н-М2: on very wide screens the cabinet's content takes the room (still next to the sidebar, no empty third on the right) */
@media (min-width:2000px){body.app .main>*{max-width:min(1840px,100%)}}
/* data N2: the first 5 minutes after the hour, said on the open alert */
.dt__settle{margin-top:10px;font-size:var(--t-small);line-height:1.45;color:var(--dim)}
/* shown only when the button has room for its words and the short qualifier (container query on the button's own width) */
.gs__i{container-type:inline-size}
@container (min-width:320px){.gs__i .hb .hb__s{display:inline}}
.dt__go{container-type:inline-size}
@container (min-width:222px){.dt__go .hb .hb__s{display:inline}}
/* geometry M2: the preset tab's badge fits its pill on narrow phones */
@media (max-width:400px){.pt .hb .hb__l{font-size:12px!important}}
/* geometry M1: on phones every block inside a panel starts on the panel head's 16 px line (note, error card, preset tabs) */
@media (max-width:760px){.al>.note,.al .err,.ptabs,#prBody>div{padding-left:16px;padding-right:16px}}
/* visual М-9 */
.fnd{display:flex;flex-direction:column;gap:2px}.fnd small{font-size:14px;line-height:1.35;color:var(--dim)}
/* geometry r3 M1: the over-limit dot hangs off the number itself — one 6 px gap at every width, however long the value */
.al .row .m .mv{position:relative;display:inline-block}
.al .row .m .mv .limdot{left:100%;right:auto;margin:-4px 0 0 6px}
/* geometry r3 M2: the band's numbers on their optical centre (the tracking leaves the ink ~.05em right of the box) */
.band .stat__v>.gold{margin-left:-.05em}
/* visual Н3b-С1: the rail's own foot (761–1060 only): Token and Sign in as icon + word, the same 52 px column as the menu */
.srail{display:none}
@media (min-width:761px) and (max-width:1060px){
  .srail{display:flex;flex-direction:column;gap:6px;padding-top:14px;border-top:1px solid var(--line);width:52px}
  .srail__i{width:52px;min-height:52px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--muted);font:500 11px/1.1 var(--sans);text-align:center;transition:color .2s,background .2s}
  .srail__i .ic{width:18px;height:18px}
  .srail__i:hover{color:var(--head);background:rgba(255,255,255,.04)}
  .srail__in{background:#fff;color:#0b0b0c}.srail__in:hover{background:#e9e9ec;color:#0b0b0c}
}
/* newcomer M5: when the view itself asks to sign in, the menu's Sign in steps aside — one Sign in per screen */
body.app:has(#view [data-signin]) .side .wal--out,body.app:has(#view [data-signin]) .srail__in{display:none}
/* newcomer S4: Telegram unavailable on this server — a calm line, not a dead button */
.tg-off{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px var(--line);font-size:var(--t-small);line-height:1.45;color:var(--text)}
.tg-off .ic{width:16px;height:16px;flex:none;margin-top:2px;color:var(--dim)}
.al--paused .ph .dot{background:var(--dim)}.al--paused .ph .dot::after{display:none}
/* visual Н3b-М3: while the feed is down the chips carry no empty count slot */
.pf--down .chip b[data-pn]{display:none}
/* newcomer M10 */
.mw--in .ic{display:none}
@media (max-width:760px){.mw--in{position:relative}.mw--in .ic{display:block;width:18px;height:18px;color:var(--head)}.mw--in i{display:none}
  .mw--in::after{content:"";position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--champ);box-shadow:0 0 0 2px var(--bg)}}

.top p .nw{white-space:nowrap}
/* visual r3c-М1: on phones too, one Sign in per screen — the view's own card keeps it */
body.app:has(#view [data-signin]) .mtop [data-signin]{display:none}
/* geometry r3d: the payback column always holds its longest value («> 48 h», «< 0.1 h») plus the limit dot's slot — right edges stay level */
.al .cols,.al .row{grid-template-columns:minmax(11em,1.6fr) 206px minmax(max-content,1.1fr) minmax(calc(6.2ch + 16px),.7fr) minmax(0,.8fr) var(--act)}
@media (max-width:1500px){.al .cols,.al .row{grid-template-columns:minmax(11em,1.6fr) 206px minmax(max-content,1.1fr) minmax(calc(6.2ch + 16px),.7fr) var(--act)}}
@media (max-width:1060px){.al .cols,.al .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--act)}}
@media (max-width:760px){.al .row,.po .row,.olist .row{grid-template-columns:44px minmax(0,1fr) auto}}
.al .row>.m{white-space:nowrap}
/* geometry r3d: the two lines of a «$ / h over %» cell share one figure style, so their left edges meet whatever the sign */
.row .nu small{font-variant-numeric:tabular-nums}
/* geometry r3d: the «$ / h over %» cell stays at the column's right, and its two lines start on one left edge (one shrink-to-fit column) */
.row>.nu{display:grid;justify-content:end;grid-template-columns:max-content}.row>.nu>*{text-align:left}
/* geometry r3e: the sign has its own slot (empty for a positive $), so «−$0.22» and «$0.03» put their digits on one axis */
.row>.nu .sg{display:inline-block;width:.6em}
