/* terminal.css - the web terminal replica (design canvas 1440 x 900), drawn from the product's own V2 tokens.
 * Measured against real logged-in screenshots of app.poly-terminal.com (2026-10-18). */

.t, .ph { color: var(--tx-1); font: 400 12px/16px Inter, system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; }
.t *, .ph * { box-sizing: border-box; margin: 0; }
:where(.t, .ph) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.t button:focus-visible, .ph button:focus-visible { outline: none; box-shadow: var(--focus); }
:where(.t, .ph) :is(i, em, s, u) { font-style: normal; text-decoration: none; }
:where(.t, .ph) [hidden] { display: none !important; }
.t .up, .ph .up { color: var(--long); } .t .dn, .ph .dn { color: var(--short-text); }
.t .dim, .ph .dim { color: var(--tx-3); } .t .warn, .ph .warn { color: var(--warn); }
.t .g, .ph .g { color: var(--long); } .t .r.red, .t .xp .r { color: var(--short-text); }
.t .sp { flex: 1; }
.t .dimt, .ph .dimt { color: var(--tx-2); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.coin { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-3); }
.coin.xs { width: 14px; height: 14px; } .coin.sm { width: 18px; height: 18px; } .coin.md { width: 24px; height: 24px; } .coin.lg { width: 24px; height: 24px; }
.tri { width: 7px; height: 7px; fill: currentColor; display: inline-block; vertical-align: 1px; } .tri.dn { transform: rotate(180deg); }
.ic { width: 16px; height: 16px; flex: none; }

.t { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; background: #000; overflow: hidden; }

/* ---- shared widgets ---- */
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-2); border-radius: 9px; }
.seg button { height: 26px; padding: 0 11px; border-radius: 7px; font-weight: 600; font-size: 12px; color: var(--tx-2); transition: background .16s var(--ease), color .16s; white-space: nowrap; }
.seg button:hover { color: var(--tx-1); }
.seg button.on { background: #000; color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.seg.sm button { height: 22px; padding: 0 9px; font-size: 11px; }
.t-switch { padding: 3px; border-radius: 10px; } .t-switch button { height: 24px; padding: 0 10px; font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--tx-2); background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--hair-2); white-space: nowrap; transition: background .14s, color .14s; }
.chip .ic { width: 12px; height: 12px; } .chip i { color: var(--tx-3); font-weight: 500; }
.chip:hover { color: var(--tx-1); }
.chip.on { background: var(--accent-wash); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-b); } .chip.on i { color: var(--accent-text); opacity: .8; }
.chip .cg { font-size: 12px; font-weight: 600; line-height: 1; }
.pillchg { display: inline-block; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.pillchg.up { background: var(--long-wash); color: var(--long); } .pillchg.dn { background: var(--short-wash); color: var(--short-text); }
.tagpill { display: inline-block; height: 16px; padding: 0 6px; border-radius: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 16px; }
.tagpill.up { background: var(--long-wash); color: var(--long); box-shadow: inset 0 0 0 1px var(--long-b); } .tagpill.dn { background: var(--short-wash); color: var(--short-text); box-shadow: inset 0 0 0 1px var(--short-b); }
.btn-out { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); text-align: center !important; transition: background .16s, transform .1s var(--ease); white-space: nowrap; }
.btn-out:hover { background: rgba(255,255,255,.06); } .btn-out:active { transform: scale(.97); }
.btn-out.dn { color: var(--short-text); box-shadow: inset 0 0 0 1px rgba(246,70,93,.34); background: rgba(246,70,93,.05); }
.btn-out.acc { color: var(--accent-text); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); }
.btn-out.acc u { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: box-shadow .3s; }
.btn-out.acc.armed u { background: var(--long); box-shadow: 0 0 0 3px var(--long-wash); }
.btn-ico { width: 24px; height: 24px; border-radius: 7px; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); display: inline-flex; align-items: center; justify-content: center; color: var(--tx-1); transition: background .16s; } .btn-ico:hover { background: rgba(255,255,255,.07); } .btn-ico .ic { width: 12px; height: 12px; }
.btn-fill { height: 26px; padding: 0 12px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff !important; text-align: center !important; }
.btn-fill.dn { background: var(--short); color: #fff !important; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--tx-3); letter-spacing: .05em; text-transform: uppercase; }
.live u, .live2 u { width: 5px; height: 5px; border-radius: 50%; background: var(--tx-2); } .live i { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: 2px; }
.live2 { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--tx-3); white-space: nowrap; flex: none; } .live2 u { background: var(--long); animation: pulse 2s infinite; } .live2 i { font-weight: 500; }
.search { display: flex; align-items: center; gap: 8px; height: 30px; width: 216px; padding: 0 10px; border-radius: 9px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--tx-3); font-size: 12px; flex: none; } .search kbd { margin-left: auto; font: 600 9.5px Inter, sans-serif; padding: 2px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair-2); } .search .ic { width: 13px; height: 13px; }
.sortdd { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 26px; width: 104px; padding: 0 9px; border-radius: 8px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 11.5px; font-weight: 600; flex: none; } .sortdd .ic { width: 12px; height: 12px; color: var(--tx-2); }
.viewsw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-2); flex: none; } .viewsw button { width: 24px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--tx-2); } .viewsw button.on { background: var(--accent-wash); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-b); } .viewsw .ic { width: 12px; height: 12px; }

/* ---- slider ---- */
.slider { position: relative; height: 22px; margin: 2px 8px 0; cursor: pointer; touch-action: none; }
.sl-track { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: var(--bg-3); }
.sl-fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 2px; background: var(--accent); width: 0; transition: width .16s var(--ease); }
.sl-stop { position: absolute; top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); cursor: pointer; }
.sl-thumb { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 2.5px #000, 0 0 0 4.5px rgba(139,92,246,.6); transition: left .16s var(--ease); pointer-events: none; }
.sl-thumb b { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 5px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); color: #cdbcff; font-size: 9.5px; font-weight: 600; opacity: 0; transition: opacity .16s; }
.sl-thumb.bub b { opacity: 1; }
.sl-lbls { display: flex; justify-content: space-between; margin: -2px 6px 0; font-size: 10.5px; color: var(--tx-3); } .sl-lbls .on { color: var(--accent-text); font-weight: 700; }
.cta { height: 38px; border-radius: 9px; font-size: 14px !important; font-weight: 650 !important; text-align: center !important; transition: filter .16s, transform .09s var(--ease); width: 100%; }
.cta.long { background: var(--long); color: var(--long-ink) !important; } .cta.short { background: var(--short); color: #fff !important; }
.cta.off { background: var(--bg-2); color: var(--tx-3) !important; cursor: default; }
.cta:not(.off):hover { filter: brightness(1.08); } .cta:not(.off):active { transform: scale(.985); }
.hint { text-align: center; font-size: 11px; color: var(--tx-3); }
.dd { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 12px; font-weight: 600; } .dd .ic { width: 12px; height: 12px; color: var(--tx-2); } .dd .lk .ic { color: var(--tx-3); }
.dd.wide { width: 100%; height: 34px; padding: 0 14px; font-size: 12.5px; letter-spacing: .02em; }

/* ---- top bar ---- */
.t-top { position: relative; height: 36px; display: flex; align-items: center; gap: 16px; padding: 0 14px 0 14px; border-bottom: 1px solid var(--hair); z-index: 20; }
.t-logo { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; letter-spacing: -.01em; } .t-logo img { height: 17px; width: auto; display: block; }
.t-nav { display: flex; gap: 16px; color: var(--tx-2); font-weight: 500; font-size: 12px; }
.t-top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.t-acc { display: flex; gap: 12px; text-align: right; } .t-acc > div { display: flex; flex-direction: column; } .t-acc i { font-size: 9px; line-height: 11px; color: var(--tx-3); } .t-acc b { font-size: 11px; line-height: 14px; font-weight: 650; }
.t-ico { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--tx-2); } .t-ico .ic { width: 14px; height: 14px; } .t-ico.on { color: var(--accent-text); background: var(--accent-wash); border-radius: 6px; }
.t-wallet { height: 24px; padding: 0 10px; border-radius: 7px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); color: #c0a9ff; font-weight: 650; font-size: 11px; cursor: default !important; }

.t-body { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; }
.page { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; }
.page.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ================= PERPS: markets list ================= */
.pl { position: absolute; left: 98px; right: 98px; top: 0; bottom: 0; padding-top: 18px; display: flex; flex-direction: column; }
.pl h2, .pd h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 24px; }
.pl .sub, .pd .sub { font-size: 11.5px; color: var(--tx-3); margin-top: 2px; line-height: 16px; }
.pl-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; }
.pl-bar .chips { display: flex; gap: 8px; }
.pl-bar .live { margin-left: 6px; }
.pl-head, .pl-row { display: grid; grid-template-columns: 380px 110px 64px 141px 195px 194px 157px; align-items: center; }
.pl-head { height: 30px; font-size: 10.5px; color: var(--tx-3); border-bottom: 1px solid var(--hair); font-weight: 500; }
.pl-head .r, .pl-row .r { text-align: right; }
.pl-head span:nth-child(3) { padding-left: 12px; }
.pl-rows { position: relative; flex: 1; min-height: 0; overflow-y: hidden; scrollbar-width: none; } .pl-rows::-webkit-scrollbar, .pd-table::-webkit-scrollbar { display: none; }
.frame.manual .pl-rows, .frame.manual .pd-table { overflow-y: auto; }
.pl-row { width: 100%; height: 45px; border-bottom: 1px solid var(--hair); font-size: 12.5px; transition: background .14s; }
.pl-row:hover { background: rgba(255,255,255,.03); }
.pl-row .c-mk { display: flex; align-items: center; gap: 9px; } .pl-row .c-mk b { font-size: 12.5px; font-weight: 650; }
.pl-row .px { text-align: right; font-weight: 600; font-size: 13px; }
.pl-row .spark { margin-left: 12px; width: 52px; height: 20px; display: block; }
.pl-row .ch { font-weight: 650; }
.spark path { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; } .spark path.up { stroke: var(--long); } .spark path.dn { stroke: var(--short); }

/* ================= PERPS: terminal ================= */
.pv { position: absolute; inset: 0; display: grid; grid-template-columns: 930px 240px 270px; grid-template-rows: 40px 574px 250px; }
.pv-stats { grid-column: 1 / 4; position: relative; display: flex; align-items: center; padding: 0 0 0 10px; border-bottom: 1px solid var(--hair); z-index: 15; }
.mk { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 8px; margin-right: 14px; transition: background .16s; }
.mk:hover { background: var(--bg-2); }
.mk b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.mk > span:first-child { display: inline-flex; }
.tag { height: 20px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 600; line-height: 20px; background: rgba(245,158,11,.12); color: #F2A93B; box-shadow: inset 0 0 0 1px rgba(245,158,11,.3); white-space: nowrap; }
.stat { display: flex; flex-direction: column; gap: 0; padding: 0 20px 0 14px; border-left: 1px solid var(--hair); min-width: 86px; }
.stat i { font-size: 9.5px; color: var(--tx-3); line-height: 12px; }
.stat b { font-size: 12.5px; font-weight: 500; line-height: 17px; transition: color .25s; }
.stat b[data-dir=up] { color: var(--long); } .stat b[data-dir=dn] { color: var(--short-text); }
.stat em { color: var(--tx-3); margin-left: 4px; font-weight: 500; }
.stat .pillchg { height: 17px; line-height: 17px; font-size: 11.5px; margin-top: 0; }

.menu { position: absolute; left: 8px; top: 36px; width: 392px; border-radius: 12px; background: #0A0A0E; box-shadow: inset 0 0 0 1px var(--hair-2), 0 24px 60px rgba(0,0,0,.8); z-index: 40; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.menu.on { opacity: 1; transform: none; pointer-events: auto; }
.mn-chips { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.mn-list { max-height: 330px; overflow: hidden; padding: 6px; }
.mn-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 8px; border-radius: 8px; transition: background .12s; }
.mn-row:hover, .mn-row.sel { background: var(--bg-2); }
.mn-row b { width: 62px; font-size: 12.5px; } .mn-row .nm { flex: 1; color: var(--tx-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-row .px { width: 80px; text-align: right; font-weight: 600; } .mn-row .ch { width: 56px; text-align: right; font-size: 11.5px; font-weight: 600; }

.pv-chart { grid-column: 1; grid-row: 2; position: relative; border-right: 1px solid var(--hair); }
.ct-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--hair); }
.ct-bar .tf button { height: 24px; padding: 0 9px; font-size: 11.5px; }
.ct-bar .sp { flex: 1; }
.chipdot { display: inline-flex; align-items: center; flex: none; white-space: nowrap; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 600; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); color: #d8ccff; }
.chipdot u { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ct-area { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; }
.chart { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.draw { position: absolute; left: 8px; top: 10px; z-index: 2; width: 30px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; border-radius: 9px; background: rgba(8,8,12,.92); box-shadow: inset 0 0 0 1px var(--hair-2); }
.draw i { width: 26px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--tx-2); }
.draw i.on { color: var(--accent-text); background: var(--accent-wash); border-radius: 6px; } .draw .ic { width: 14px; height: 14px; }
.chart .gl { stroke: rgba(255,255,255,.05); stroke-width: 1; } .chart .gv { stroke: rgba(255,255,255,.035); stroke-width: 1; }
.chart .al, .chart .tl { fill: var(--tx-3); font: 500 10px Inter, sans-serif; } .chart .tl.bd { fill: var(--tx-2); font-weight: 600; }
.chart .w.u { stroke: var(--long); } .chart .w.d { stroke: var(--short); } .chart .w { stroke-width: 1; }
.chart .b.u { fill: var(--long); } .chart .b.d { fill: var(--short); }
.chart .vb.u { fill: rgba(14,203,129,.24); } .chart .vb.d { fill: rgba(246,70,93,.24); }
.chart .ln { stroke-width: 1; fill: none; }
.chart .ln.last { stroke-dasharray: 1.5 2.5; } .chart .ln.last.u { stroke: var(--long); } .chart .ln.last.d { stroke: var(--short); } .chart .ln.last.pu { stroke: var(--accent); }
.chart .ln.en { stroke: rgba(255,255,255,.65); stroke-dasharray: 5 4; }
.chart .ln.tp { stroke: var(--long); stroke-dasharray: 5 4; } .chart .ln.sl { stroke: var(--short); stroke-dasharray: 5 4; } .chart .ln.lq { stroke: var(--warn); stroke-dasharray: 2 3; }
.chart .ln.tg { stroke: var(--accent); stroke-width: 1.6; }
.chart .ex { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.chart .pl text { font: 600 10px Inter, sans-serif; fill: #fff; }
.chart .pl.last.u rect { fill: var(--long); } .chart .pl.last.d rect { fill: var(--short); } .chart .pl.last.pu rect { fill: var(--accent-fill); }
.chart .pl.last.u text { fill: var(--long-ink); } .chart .pl.last.d text, .chart .pl.last.pu text { fill: #fff; }
.chart .pl.tg rect { fill: var(--accent-fill); } .chart .pl.tg text { fill: #fff; }
.chart .pl.en rect { fill: #14141a; stroke: rgba(255,255,255,.22); } .chart .pl.en.up text { fill: var(--long); } .chart .pl.en.dn text { fill: var(--short-text); }
.chart .pl.tp rect { fill: #0a2a20; stroke: var(--long-b); } .chart .pl.tp text { fill: var(--long); }
.chart .pl.sl rect { fill: #2c0f15; stroke: var(--short-b); } .chart .pl.sl text { fill: var(--short-text); }
.chart .pl.lq rect { fill: #2a1d07; stroke: rgba(245,158,11,.4); } .chart .pl.lq text { fill: var(--warn); }
.chart .xp-pill rect { fill: rgba(20,16,40,.94); stroke: var(--accent-b); } .chart .xp-pill circle { fill: var(--accent); } .chart .xp-pill text { font: 600 11px "JetBrains Mono", monospace; fill: #e6dcff; letter-spacing: .01em; }
.chart .mk.bm rect { fill: #D2EE3A; } .chart .mk.bm text { fill: #1B2305; font: 700 9.5px Inter, sans-serif; }
.chart .mk.sm rect { fill: #FF8A9B; } .chart .mk.sm text { fill: #2A0A10; font: 700 9.5px Inter, sans-serif; }

/* ---- book ---- */
.pv-book { grid-column: 2; grid-row: 2; position: relative; border-right: 1px solid var(--hair); display: flex; flex-direction: column; overflow: hidden; }
.bk-tabs, .tk-tabs, .bt-tabs { display: flex; gap: 16px; align-items: center; padding: 0 14px; height: 36px; border-bottom: 1px solid var(--hair); flex: none; }
.bk-tabs button, .tk-tabs button, .bt-tabs button { position: relative; height: 36px; font-size: 12.5px; font-weight: 600; color: var(--tx-3); white-space: nowrap; }
.bk-tabs .on, .tk-tabs .on, .bt-tabs .on { color: var(--tx-1); }
.bk-tabs .on::after, .tk-tabs .on::after, .bt-tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.bt-tabs i { color: var(--tx-3); margin-left: 4px; font-weight: 500; }
.bk-sub { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 12px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: var(--tx-3); text-transform: uppercase; flex: none; }
.bk-sub .seg button { letter-spacing: 0; text-transform: none; font-size: 10.5px; height: 20px; padding: 0 8px; }
.bk-head, .bk-row { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; padding: 0 10px 0 12px; font-size: 11px; flex: none; }
.bk-head { height: 22px; align-items: center; color: var(--tx-3); font-size: 10px; }
.bk-head span:nth-child(n+2), .bk-row span:nth-child(n+2) { text-align: right; }
.bk-row { height: 17.4px; align-items: center; font-weight: 500; position: relative; }
.bk-row span { position: relative; }
.bk-row.ask { color: var(--short-text); background: linear-gradient(270deg, rgba(246,70,93,.17) var(--d, 0%), transparent var(--d, 0%)); }
.bk-row.bid { color: var(--long); background: linear-gradient(270deg, rgba(14,203,129,.15) var(--d, 0%), transparent var(--d, 0%)); }
.bk-row span:nth-child(2) { color: var(--tx-1); } .bk-row span:nth-child(3) { color: var(--tx-3); }
.bk-mid { height: 28px; margin: 3px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 14px; font-weight: 700; flex: none; }
.bk-mid.up { background: rgba(14,203,129,.07); color: var(--long); box-shadow: inset 0 0 0 1px rgba(14,203,129,.22); }
.bk-mid.dn { background: rgba(246,70,93,.07); color: var(--short-text); box-shadow: inset 0 0 0 1px rgba(246,70,93,.22); }
.bk-mid b { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; } .bk-mid span { font-size: 10px; font-weight: 500; color: var(--tx-2); }
.bk-bs { margin: 5px 0 0; height: 20px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 10.5px; font-weight: 600; background: linear-gradient(90deg, rgba(14,203,129,.16) var(--b, 50%), rgba(246,70,93,.16) var(--b, 50%)); flex: none; }
.bk-bs span:first-child { color: var(--long); } .bk-bs span:last-child { color: var(--short-text); }
.bk-bs u { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; border-radius: 3px; box-shadow: inset 0 0 0 1px currentColor; font-size: 8.5px; font-weight: 700; margin: 0 2px; }
.bk-grp { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; font-size: 10.5px; color: var(--tx-3); flex: none; }
.bk-grp .seg button { height: 20px; padding: 0 8px; font-size: 10.5px; }
.bk-grp i { width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--tx-2); } .bk-grp i .ic { width: 12px; height: 12px; }
.bk-grp .sp { flex: 1; }

/* ---- ticket ---- */
.pv-ticket { grid-column: 3; grid-row: 2 / 4; display: flex; flex-direction: column; min-width: 0; }
.tk-body { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tk-dd { display: flex; gap: 8px; } .tk-dd .dd { flex: 1; } .tk-dd .dd:first-child { justify-content: center; position: relative; } .tk-dd .dd:first-child .lk { position: absolute; left: 10px; }
.seg.side { display: flex; padding: 3px; border-radius: 10px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair); }
.seg.side button { flex: 1; height: 28px; border-radius: 7px; font-size: 12.5px; text-align: center; }
.seg.side button.on { background: rgba(14,203,129,.12); color: var(--long); box-shadow: inset 0 0 0 1px var(--long-b); }
.seg.side button.short.on { background: var(--short-wash); color: var(--short-text); box-shadow: inset 0 0 0 1px var(--short-b); }
.amt-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--tx-2); margin-bottom: -3px; } .amt-h .avail b { color: var(--tx-1); font-weight: 650; }
.amt-in { height: 40px; border-radius: 10px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 12px; font-size: 16px; font-weight: 500; }
.amt-in .seg { background: #101015; } .amt-in .seg button { height: 26px; padding: 0 9px; font-size: 11px; }
.tk-tpsl { display: none; }
.sum-card { border-radius: 10px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair); padding: 10px 12px 0; }
.sum-card.pos { display: none; } .pv-ticket.has-pos .sum-card.pos { display: block; } .pv-ticket.has-pos .sum-card.flat { display: none; }
.sm-t { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 7px; }
.sm-l { font-size: 10.5px; color: var(--tx-2); }
.sm-big { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 28px; } .sm-big small { font-size: 11px; font-weight: 500; color: var(--tx-2); margin-left: 3px; } .sm-big em { color: var(--tx-3); font-weight: 400; margin: 0 2px; }
.sm-est { font-size: 10px; color: var(--tx-3); text-align: right; margin: -2px 0 2px; }
.sm-cols { display: grid; grid-template-columns: 1fr 70px 70px; font-size: 9.5px; color: var(--tx-3); text-align: right; margin-top: 6px; }
.sm-r, .sm-r3 { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 11px; } .sm-r span, .sm-r3 span { color: var(--tx-2); } .sm-r b, .sm-r3 b { font-weight: 600; font-size: 11.5px; } .sm-r b i, .sm-r3 b i { color: var(--tx-3); font-weight: 500; font-size: 10px; margin-left: 2px; }
.sm-r3 { display: grid; grid-template-columns: 1fr 70px 70px; } .sm-r3 b { text-align: right; }
.sm-note { font-size: 10px; color: var(--tx-3); text-align: right; margin: -3px 0 3px; }
.sm-r:nth-last-of-type(1), .sm-r:nth-last-of-type(2) { border-top: 1px solid var(--hair); }
.sm-det { display: flex; justify-content: space-between; align-items: center; height: 30px; margin: 4px -12px 0; padding: 0 12px; border-top: 1px solid var(--hair); font-size: 11px; font-weight: 600; } .sm-det .ic { width: 12px; height: 12px; color: var(--tx-2); }

/* ---- bottom panel ---- */
.pv-bottom { grid-column: 1 / 3; grid-row: 3; border-top: 1px solid var(--hair); border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-width: 0; position: relative; }
.bt-tabs { gap: 20px; padding: 0 16px; height: 34px; } .bt-tabs button { height: 34px; font-size: 12.5px; }
.bt-pane { display: none; flex-direction: column; flex: 1; min-height: 0; }
.bt-pane.on { display: flex; }
.bt-bar { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 11px; color: var(--tx-2); flex: none; } .bt-bar .sum { display: inline-flex; align-items: center; gap: 8px; } .bt-bar .sum b { font-weight: 650; } .bt-bar .vr { width: 1px; height: 12px; background: var(--hair-2); }
.bt-bar .seg { background: #07070a; box-shadow: inset 0 0 0 1px var(--hair); }
.bt-head, .br { display: grid; grid-template-columns: 158px 86px 64px 64px 70px 64px 82px 92px 68px 118px 1fr; padding: 0 10px 0 14px; align-items: center; column-gap: 0; }
.bt-head { height: 26px; font-size: 10px; color: var(--tx-3); border-top: 1px solid var(--hair); } .bt-head .r, .br .r { text-align: right; } .bt-head span { white-space: nowrap; } .bt-head span:nth-child(10), .bt-head span:nth-child(11) { padding-left: 12px; }
.bt-rows { flex: 1; min-height: 0; overflow: hidden; }
.br { position: relative; height: 56px; border-top: 1px solid var(--hair); }
.br.lg::before, .br.st::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; } .br.lg::before { background: var(--long); } .br.st::before { background: var(--short); }
.br.fresh { animation: rowIn .7s var(--ease); }
.br .c-ct .l1 { display: flex; align-items: center; gap: 6px; } .br .c-ct .l1 b { font-size: 13px; font-weight: 700; } .br .c-ct .inf { color: var(--tx-3); display: inline-flex; } .br .c-ct .inf .ic { width: 11px; height: 11px; }
.br .c-ct .l2 { display: flex; align-items: center; gap: 4px; color: var(--tx-2); font-size: 11px; margin-top: 1px; } .br .c-ct .l2 .ic { width: 11px; height: 11px; }
.br .c-ct .l3 { color: var(--tx-3); font-size: 10px; margin-top: 1px; white-space: nowrap; }
.br .r b { display: block; font-size: 12px; font-weight: 600; line-height: 16px; } .br .r em { display: block; font-size: 10px; color: var(--tx-3); line-height: 13px; } .br .r small { font-size: 10px; color: var(--tx-3); font-weight: 500; }
.br .r b.up, .br .r b.dn, .br .r em.up, .br .r em.dn { }
.br .tpsl { text-align: left; padding-left: 12px; } .br .tpsl span { display: block; font-size: 11px; font-weight: 600; line-height: 15px; white-space: nowrap; } .br .tpsl i { font-size: 9px; font-weight: 700; margin-right: 4px; color: var(--long); } .br .tpsl i.dn { color: var(--short-text); } .br .tpsl small { font-weight: 500; color: var(--tx-3); } .br .tpsl .amb { color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 4px; } .br .tpsl .amb u { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.br .acts { display: flex; gap: 4px; justify-content: flex-start; align-items: center; padding-left: 8px; }
.br .acts .btn-out { height: 24px; padding: 0 8px; font-size: 11px; }
.br.hist { grid-template-columns: 176px 90px 90px 110px 110px 80px 110px 1fr; height: 38px; } .bt-head.hist { grid-template-columns: 176px 90px 90px 110px 110px 80px 110px 1fr; }
.t .bt-empty { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; height: auto; padding-top: 14px; color: var(--tx-3); font-size: 11px; } .t .bt-empty b { color: var(--tx-2); font-size: 12px; }
.px-rows .bt-empty b { color: var(--tx-3); font-weight: 500; }
.pn-bar { height: 38px; display: flex; align-items: center; padding: 0 12px; flex: none; }
.pn-rows { flex: 1; min-height: 0; overflow: hidden; padding: 0 12px; }
.pn-row { display: flex; align-items: center; gap: 12px; height: 42px; margin-bottom: 7px; padding: 0 12px 0 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair); background: rgba(255,255,255,.012); font-size: 11.5px; color: var(--tx-1); white-space: nowrap; overflow: hidden; }
.pn-row .nm { display: flex; align-items: center; gap: 7px; min-width: 156px; } .pn-row .nm b { font-size: 12.5px; font-weight: 700; }
.pn-row .q { color: var(--tx-1); } .pn-row .q i { color: var(--tx-3); margin: 0 6px; } .pn-row .e { color: var(--tx-1); } .pn-row .e em { color: var(--tx-3); margin: 0 4px; }
.pn-row .tm { color: var(--tx-3); } .pn-row .vt { color: var(--tx-3); text-decoration: underline; text-decoration-color: rgba(255,255,255,.18); text-underline-offset: 2px; } .pn-row .fe { color: var(--tx-3); opacity: .7; }
.pn-row .sp { flex: 1; } .pn-row .btn-ico { background: none; box-shadow: none; color: var(--tx-2); } .pn-row .pv2 { text-align: right; min-width: 84px; } .pn-row .pv2 b { font-size: 13px; font-weight: 700; margin-right: 8px; }
.pn-row.fresh { animation: rowIn .7s var(--ease); }
.pn-row.old { opacity: .9; }

/* ================= PREDICT: list ================= */
.pd { position: absolute; left: 98px; right: 98px; top: 0; bottom: 0; padding-top: 18px; display: flex; flex-direction: column; }
.pd .sub { display: flex; align-items: center; gap: 8px; } .pd .sub u.g { width: 5px; height: 5px; border-radius: 50%; background: var(--long); } .pd .sub .live { margin-left: 4px; }
.pd .pl-bar { margin: 12px 0 10px; gap: 6px; } .pd .pl-bar .chip { height: 28px; } .pd .pl-bar .live2 { margin-left: 6px; }
.pd .pl-bar .search { width: 216px; }
.pd-seg { display: flex; gap: 8px; margin-bottom: 12px; }
.pd-seg .seg { padding: 3px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair); border-radius: 9px; }
.pd-seg .seg button { height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 500; color: var(--tx-3); }
.pd-seg .seg button.on { background: var(--accent-wash); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-b); font-weight: 600; }
.pd-seg .per .ic { width: 12px; height: 12px; margin: 5px 6px 0 6px; color: var(--tx-3); }
.pd-head, .pr { display: grid; grid-template-columns: 330px 154px 136px 102px 135px 92px 111px 70px 1fr; padding: 0; align-items: center; }
.pd-head { height: 28px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); border-bottom: 1px solid var(--hair); }
.pd-head .r, .pr .r { text-align: right; } .pd-head .c, .pr .c { display: flex; justify-content: center; } .pd-head span:first-child { padding-left: 14px; } .pd-head .r:last-child, .pr .r:last-child { padding-right: 10px; }
.pd-head span.c:nth-child(5) { justify-content: flex-end; padding-right: 6px; } .pd-head span:nth-child(8) { text-align: left; padding-left: 13px; }
.pd-table { position: relative; flex: 1; min-height: 0; overflow-y: hidden; scrollbar-width: none; }
.pg-h { position: relative; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; background: rgba(255,255,255,.025); font-size: 11px; color: var(--tx-3); border-bottom: 1px solid var(--hair); }
.pg-h b:first-child { color: var(--tx-1); font-size: 11.5px; font-weight: 650; } .pg-h .clock { color: var(--tx-1); font-size: 12px; font-weight: 700; }
.pg-h .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; } .pg-h .bar u { display: block; height: 100%; background: rgba(255,255,255,.2); transition: width .45s linear; }
.pr { position: relative; height: 32px; width: 100%; font-size: 12px; transition: background .14s; cursor: pointer; }
.pr:hover { background: rgba(255,255,255,.035); }
.pr .c-mk { display: flex; align-items: center; gap: 9px; padding-left: 12px; } .pr .c-mk > div { display: flex; flex-direction: column; line-height: 12px; } .pr .c-mk b { font-size: 11.5px; font-weight: 650; line-height: 13px; } .pr .c-mk span { font-size: 10px; color: var(--tx-3); }
.pr .bet { color: var(--tx-1); } .pr .bet i { color: var(--tx-2); font-size: 11.5px; margin-right: 4px; font-weight: 400; } .pr .bet b { font-weight: 500; }
.pr .r > b, .pr .r > span { font-size: 11.5px; font-weight: 500; }
.capsule { display: inline-flex; height: 26px; width: 122px; border-radius: 6px; overflow: hidden; margin-left: 13px; box-shadow: inset 0 0 0 1px var(--hair-2); background: linear-gradient(90deg, rgba(14,203,129,.15) calc(var(--c, 50) * 1%), rgba(246,70,93,.15) calc(var(--c, 50) * 1%)); transition: background .4s; }
.capsule span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 11px; } .capsule i { font-size: 9px; font-weight: 500; opacity: .85; } .capsule b { font-size: 11.5px; font-weight: 700; }
.capsule .u { color: #19d88f; } .capsule .d { color: #f7627a; }
.pr .c .spark { width: 56px; height: 16px; margin-left: 13px; } .pr .c:nth-child(5) { justify-content: flex-start; }
.pr .c:nth-child(8) { justify-content: flex-start; }

/* ================= PREDICT: terminal ================= */
.pxt { position: absolute; inset: 0; display: grid; grid-template-columns: 36px 1134px 270px; grid-template-rows: 38px 26px 470px 28px 18px 284px; }
.px-rail { grid-column: 1; grid-row: 1 / 7; border-right: 1px solid var(--hair); display: flex; justify-content: center; padding-top: 44px; color: var(--tx-3); font-size: 13px; }
.px-head { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; border-bottom: 1px solid var(--hair); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; }
.px-head > span:first-child .coin { border-radius: 6px; } .px-head .dn { color: var(--tx-3); display: inline-flex; margin-left: -4px; } .px-head .dn .ic { width: 10px; height: 10px; }
.px-st { display: flex; flex-direction: column; align-items: flex-end; padding: 0 12px; line-height: 13px; } .px-st + .px-st { border-left: 1px solid var(--hair); padding-left: 14px; } .px-st i { font-size: 9px; color: var(--tx-3); } .px-st b { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; } .px-st .pillchg { height: 14px; line-height: 14px; font-size: 9.5px; padding: 0 5px; border-radius: 4px; } .px-st b.r { color: #ff5a6d; }
.px-chart { grid-column: 2; grid-row: 2 / 4; position: relative; border-right: 1px solid var(--hair); }
.px-chart .ct-bar { height: 26px; padding: 0 12px; gap: 6px; border-bottom: 0; }
.px-chart .tf { background: none; padding: 0; gap: 0; } .px-chart .tf button { height: 22px; padding: 0 8px; font-size: 10.5px; font-weight: 500; color: var(--tx-3); border-radius: 0; position: relative; } .px-chart .tf button.on { background: none; box-shadow: none; color: var(--accent-text); font-weight: 650; } .px-chart .tf button.on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.px-chart .sepv { width: 1px; height: 14px; background: var(--hair-2); margin: 0 4px; }
.px-chart .t-ico { width: 22px; height: 22px; }
.px-chart svg.chart { position: absolute; left: 0; top: 26px; width: 1134px; height: 470px; }
.px-slots { grid-column: 2; grid-row: 4; display: flex; align-items: center; gap: 0; padding: 0 8px; font: 500 10.5px "JetBrains Mono", monospace; color: var(--tx-3); border-right: 1px solid var(--hair); border-top: 1px solid var(--hair); background: rgba(255,255,255,.012); overflow: hidden; white-space: nowrap; }
.px-slots span { flex: 1; text-align: center; position: relative; height: 28px; line-height: 27px; } .px-slots .lbl { flex: none; width: 72px; font-family: Inter, sans-serif; font-size: 10.5px; display: flex; align-items: center; justify-content: center; gap: 4px; } .px-slots .lbl .ic { width: 10px; height: 10px; }
.px-slots .vr { width: 1px; height: 12px; background: var(--hair-2); flex: none; }
.px-slots .cur { color: var(--tx-1); font-weight: 650; } .px-slots .cur::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); } .px-slots .cur u { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 2px; }
.px-slots .past { opacity: .6; }
.px-twap { grid-column: 2; grid-row: 5; padding: 0 12px; font-size: 10px; color: var(--tx-3); display: flex; align-items: center; border-right: 1px solid var(--hair); }
.px-bottom { grid-column: 2; grid-row: 6; border-top: 1px solid var(--hair); border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-width: 0; }
.px-bottom .bt-tabs { height: 32px; gap: 18px; } .px-bottom .bt-tabs button { height: 32px; font-size: 12px; font-weight: 500; } .px-bottom .bt-tabs .on { font-weight: 600; }
.px-bottom .bt-tabs i:empty { display: none; } .px-bottom .bt-tabs i { display: inline-flex; width: 13px; height: 13px; align-items: center; justify-content: center; border-radius: 4px; background: rgba(255,255,255,.12); color: var(--tx-1); font-size: 9px; margin-left: 4px; font-weight: 700; }
.px-th, .pxr { display: grid; grid-template-columns: 1fr 90px 100px 170px 150px 130px; align-items: center; padding: 0 12px 0 12px; }
.px-th { height: 28px; font-size: 10px; color: var(--tx-3); background: rgba(255,255,255,.025); } .px-th .r, .pxr .r { text-align: right; } .px-th span:first-child { padding-left: 4px; }
.px-rows { flex: 1; min-height: 0; padding: 6px 8px; }
.pxr { height: 44px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair); background: rgba(255,255,255,.015); padding: 0 10px 0 12px; animation: rowIn .6s var(--ease); font-size: 11.5px; }
.pxr .m { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; min-width: 0; } .pxr .m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pxr .m i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #04130c; background: var(--long); } .pxr .m i.dn { background: var(--short); color: #fff; }
.pxr .r small { font-size: 9.5px; color: var(--tx-3); display: block; margin-top: -1px; text-align: right; } .pxr .arr { color: var(--tx-3); margin: 0 3px; }
.pxr .pnlbox { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; height: 34px; min-width: 94px; padding: 0 10px; border-radius: 8px; line-height: 14px; } .pxr .pnlbox.up { background: rgba(14,203,129,.07); box-shadow: inset 0 0 0 1px rgba(14,203,129,.3); } .pxr .pnlbox.dn { background: rgba(246,70,93,.07); box-shadow: inset 0 0 0 1px rgba(246,70,93,.3); } .pxr .pnlbox b { font-size: 13px; font-weight: 700; } .pxr .pnlbox em { font-size: 10px; font-weight: 500; opacity: .85; }
.pxr .acts { display: flex; justify-content: flex-end; gap: 8px; align-items: center; } .pxr .acts .btn-ico { width: 30px; height: 28px; font-size: 12px; } .pxr .acts .btn-fill { height: 28px; padding: 0 14px; background: #F5475D; letter-spacing: .04em; }
.px-side { grid-column: 3; grid-row: 1 / 7; display: flex; flex-direction: column; min-width: 0; }
.px-side .bk-tabs { gap: 14px; padding: 0 10px 0 12px; } .px-side .bk-tabs .sel { height: 22px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; color: var(--tx-1); background: #07070a; box-shadow: inset 0 0 0 1px var(--hair-2); display: inline-flex; align-items: center; gap: 4px; } .px-side .bk-tabs .sel::after { display: none; } .px-side .bk-tabs .sel .ic { width: 10px; height: 10px; }
.pb-head, .pb-row { display: grid; grid-template-columns: 1fr 1fr; padding: 0 8px 0 12px; flex: none; }
.pb-head { height: 30px; align-items: center; font-size: 9px; color: var(--tx-3); line-height: 10px; } .pb-head span:last-child, .pb-row span:last-child { text-align: right; }
.pb-row { height: 17.4px; align-items: center; font: 500 10.5px "JetBrains Mono", monospace; position: relative; letter-spacing: -.03em; }
.pb-row.ask { color: #ff5a6d; background: linear-gradient(270deg, rgba(246,70,93,.18) var(--d, 0%), transparent var(--d, 0%)); } .pb-row.bid { color: #14d68f; background: linear-gradient(270deg, rgba(14,203,129,.17) var(--d, 0%), transparent var(--d, 0%)); } .pb-row span:last-child { color: var(--tx-1); }
.pb-mid { height: 28px; margin: 4px 8px; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: rgba(14,203,129,.06); box-shadow: inset 0 0 0 1px rgba(14,203,129,.24); flex: none; } .pb-mid b { font-size: 14px; font-weight: 600; color: var(--long); display: inline-flex; align-items: center; gap: 6px; } .pb-mid span { font-size: 9.5px; color: var(--tx-3); }
.px-side .bk-bs { margin-top: 4px; }
.px-tk { padding: 8px 8px 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ud { display: flex; gap: 7px; } .ud button { flex: 1; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 11.5px; font-weight: 600; color: var(--tx-3); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair); transition: background .16s, color .16s; } .ud button b { font-size: 11.5px; font-weight: 600; } .ud .arr { letter-spacing: .03em; }
.ud button.on.up { background: rgba(14,203,129,.1); box-shadow: inset 0 0 0 1px var(--long-b); color: var(--long); } .ud button.on.dn { background: rgba(246,70,93,.1); box-shadow: inset 0 0 0 1px var(--short-b); color: var(--short-text); }
.ud button.dn:not(.on) b { color: #ff5a6d; } .ud button.up:not(.on) b { color: var(--long); }
.px-in { height: 36px; border-radius: 8px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; font-weight: 500; } .px-in u { color: var(--tx-3); font-size: 10.5px; }
.px-av { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: var(--tx-3); margin-top: -1px; } .px-av span { display: inline-flex; align-items: center; gap: 4px; } .px-av .ic { width: 10px; height: 10px; } .px-av b { color: var(--tx-1); font-size: 10px; font-weight: 500; }
.px-sm { border-radius: 9px; background: rgba(255,255,255,.03); padding: 4px 12px; margin-top: 3px; } .px-sm > div { display: flex; justify-content: space-between; align-items: center; height: 24px; font-size: 10.5px; color: var(--tx-3); } .px-sm > div + div { border-top: 1px solid rgba(255,255,255,.035); } .px-sm b { font-size: 11px; font-weight: 600; color: var(--tx-1); } .px-sm b.g { color: var(--long); } .px-sm b.warn { color: var(--warn); }
.px-tk .cta { height: 42px; margin-top: 2px; font-size: 13px !important; letter-spacing: .03em; }

/* ================= dialogs ================= */
.t-dlg { position: absolute; inset: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease); }
.t-dlg.on { opacity: 1; pointer-events: auto; }
.t-dlg .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.66); }
.dlg { position: absolute; left: 50%; top: 50%; background: #0C0C10; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hair-2), 0 40px 100px rgba(0,0,0,.8); transform: translate(-50%, -47%) scale(.975); transition: transform .26s var(--ease); }
.t-dlg.on .dlg { transform: translate(-50%, -50%); }
.xp { width: 386px; padding: 0; }
.xp-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 0; }
.xp-h h4 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 20px; } .xp-h p { font-size: 11px; color: var(--tx-2); margin-top: 2px; } .xp-h p b { color: var(--tx-1); font-weight: 650; } .xp-h p i { margin: 0 4px; color: var(--tx-3); }
.xp-x { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair-2); display: inline-flex; align-items: center; justify-content: center; color: var(--tx-1); flex: none; transition: background .16s; } .xp-x:hover { background: rgba(255,255,255,.07); } .xp-x .ic { width: 12px; height: 12px; }
.xp-sec { padding: 12px 16px 0; }
.xp-lbl { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-2); height: 26px; }
.xp-lbl label { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tx-2); } .xp-lbl em { font-size: 9px; letter-spacing: .1em; color: var(--tx-3); }
.xp-i { display: inline-flex; color: var(--tx-3); } .xp-i .ic { width: 11px; height: 11px; }
.xp-sp { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--hair-2); background: #050508; } .xp-sp input { width: 22px; background: none; border: 0; outline: 0; color: var(--tx-1); font: 600 12px Inter, sans-serif; text-align: right; user-select: text; -webkit-user-select: text; } .xp-sp u { font-size: 10px; color: var(--tx-3); margin-left: 3px; }
.xp-tpl { display: flex; padding: 3px; margin-top: 4px; border-radius: 10px; background: #101015; box-shadow: inset 0 0 0 1px var(--hair); } .xp-tpl button { flex: 1; height: 28px; border-radius: 7px; text-align: center; font-size: 11px; font-weight: 600; color: var(--tx-2); transition: background .16s, color .16s; } .xp-tpl button:hover { color: var(--tx-1); } .xp-tpl button.on { background: #000; color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.xp-th { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; padding: 0 6px; margin-top: 10px; font-size: 10px; color: var(--tx-3); text-align: center; height: 18px; align-items: center; }
.xp-rows { min-height: 30px; }
.xp-row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; align-items: center; gap: 6px; padding: 3px 0; animation: rowIn .45s var(--ease) both; font-size: 11.5px; text-align: center; font-weight: 600; }
.xp-in { display: flex; align-items: center; height: 36px; padding: 0 8px 0 12px; border-radius: 9px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair-2); } .xp-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--tx-3); font: 500 12.5px Inter, sans-serif; user-select: text; -webkit-user-select: text; } .xp-in input:focus { color: var(--tx-1); } .xp-in u { font-size: 10px; color: var(--tx-3); font-weight: 600; }
.xp-in.sm { height: 28px; padding: 0 7px; border-radius: 7px; } .xp-in.sm input { color: var(--tx-1); font-size: 11.5px; font-weight: 600; width: 64px; } .xp-in.sm u { font-size: 9px; }
.xp-empty { font-size: 12px; color: var(--tx-1); padding: 2px 0 0; }
.xp-add { display: flex; justify-content: space-between; align-items: center; height: 28px; margin-top: 4px; font-size: 11px; color: var(--tx-2); } .xp-add button { color: var(--accent-text); font-weight: 600; font-size: 11.5px; }
.xp-seg { display: flex; gap: 6px; margin-top: 4px; } .xp-seg i { flex: 1; height: 3px; border-radius: 2px; background: var(--bg-3); transition: background .3s; } .xp-seg i.on { background: var(--long); } .xp-seg i.idle { background: rgba(14,203,129,.55); }
.xp-slrow { display: grid; grid-template-columns: 1fr 70px; gap: 8px; align-items: center; margin-top: 4px; } .xp-slrow .xp-in { height: 34px; } .xp-slrow .xp-in input { color: var(--tx-1); }
.xp-loss { display: flex; flex-direction: column; align-items: flex-end; font-size: 10.5px; color: var(--tx-2); line-height: 13px; } .xp-loss b { font-size: 12px; font-weight: 650; color: var(--tx-3); } .xp-loss b.g { color: var(--long); } .xp-loss b.r { color: var(--short-text); }
.xp-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--warn); transition: opacity .2s; } .xp-warn.off { opacity: 0; } .xp-warn .ic { width: 12px; height: 12px; }
.xp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 12px 16px 0; padding: 10px 14px; border-radius: 10px; background: #070709; box-shadow: inset 0 0 0 1px var(--hair); } .xp-stats > div { display: flex; justify-content: space-between; font-size: 11px; color: var(--tx-2); } .xp-stats b { font-weight: 600; color: var(--tx-1); } .xp-stats b.g { color: var(--long); } .xp-stats b i { color: var(--tx-3); font-weight: 400; font-size: 10px; }
.xp-adv { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 32px); height: 32px; margin: 12px 16px 0; padding: 0 12px; border-radius: 9px; background: #070709; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 11px; font-weight: 600; } .xp-adv .ic { width: 12px; height: 12px; color: var(--tx-2); transition: transform .2s; } .xp-adv.on .ic { transform: rotate(180deg); }
.xp-f { display: flex; gap: 8px; padding: 14px 16px 16px; margin-top: 12px; border-top: 1px solid var(--hair); }
.xp-reset { height: 36px; padding: 0 16px; border-radius: 9px; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 12px; font-weight: 600; text-align: center; } .xp-reset:hover { background: rgba(255,255,255,.06); }
.xp-apply { flex: 1; height: 36px; border-radius: 9px; background: var(--accent-fill); color: #fff !important; font-size: 13px; font-weight: 650; text-align: center !important; transition: filter .16s, transform .1s var(--ease); } .xp-apply:hover { filter: brightness(1.1); } .xp-apply:active { transform: scale(.985); }

/* ---- Share PnL ---- */
.sh { width: 364px; padding: 16px 16px 14px; }
.sh-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .sh-h h4 { font-size: 14px; font-weight: 700; }
.sh-m { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .sh-m span { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-2); } .sh-m button { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--hair-2); display: inline-flex; align-items: center; justify-content: center; color: var(--tx-1); } .sh-m .ic { width: 11px; height: 11px; }
.sh-fmt, .sh-mode { display: flex; padding: 3px; border-radius: 10px; background: #17171c; } .sh-fmt { margin-bottom: 11px; }
.sh-fmt button, .sh-mode button { flex: 1; height: 26px; border-radius: 7px; text-align: center; font-size: 11px; font-weight: 700; color: var(--tx-2); transition: background .16s, color .16s; } .sh-fmt button.on, .sh-mode button.on { background: linear-gradient(180deg, #8456f5, #7143ee); color: #fff; box-shadow: 0 2px 10px rgba(124,77,240,.35); }
.sh-card { container-type: inline-size; --u: 1cqw; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 100% 100%, #0f1311 0%, #0a0a0d 55%, #09090c 100%); box-shadow: inset 0 0 0 1px var(--hair-2); }
.sh-card.tall { aspect-ratio: 9 / 16; width: 62%; margin: 0 auto; }
.sh-card.win .sh-glow { background: radial-gradient(closest-side, rgba(14,203,129,.22), transparent 70%); } .sh-card.loss .sh-glow { background: radial-gradient(closest-side, rgba(246,70,93,.2), transparent 70%); }
.sh-glow { position: absolute; right: -12%; bottom: -10%; width: 80%; height: 80%; pointer-events: none; }
.sh-top { position: absolute; left: calc(var(--u) * 6); right: calc(var(--u) * 6); top: calc(var(--u) * 7); display: flex; justify-content: space-between; align-items: flex-start; }
.sh-brand { display: flex; align-items: center; gap: calc(var(--u) * 2); } .sh-brand img { height: calc(var(--u) * 4.4); width: auto; display: block; } .sh-brand b { display: block; font-size: calc(var(--u) * 3); font-weight: 800; letter-spacing: .13em; line-height: 1.1; } .sh-brand i { display: block; font-size: calc(var(--u) * 1.8); color: var(--tx-3); letter-spacing: .02em; margin-top: calc(var(--u) * .4); }
.sh-tag { height: calc(var(--u) * 4); line-height: calc(var(--u) * 4); padding: 0 calc(var(--u) * 2); border-radius: 999px; font-size: calc(var(--u) * 1.7); font-weight: 800; letter-spacing: .1em; color: var(--long); box-shadow: inset 0 0 0 1px var(--long-b); background: rgba(14,203,129,.08); }
.sh-card.loss .sh-tag { color: var(--short-text); box-shadow: inset 0 0 0 1px var(--short-b); background: rgba(246,70,93,.08); }
.sh-mkt { position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 20.5); font-size: calc(var(--u) * 5.2); font-weight: 700; letter-spacing: -.01em; }
.sh-big { position: absolute; left: calc(var(--u) * 5.2); top: calc(var(--u) * 26.5); font-size: calc(var(--u) * 14); line-height: 1; font-weight: 800; letter-spacing: -.045em; cursor: pointer; text-align: left; white-space: nowrap; transition: transform .2s var(--ease); } .sh-big:active { transform: scale(.98); } .sh-big.g { color: #19d88f; text-shadow: 0 0 calc(var(--u) * 10) rgba(25,216,143,.35); } .sh-big.r { color: #f7566d; text-shadow: 0 0 calc(var(--u) * 10) rgba(247,86,109,.3); }
.sh-sub { position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 44); font-size: calc(var(--u) * 2.05); line-height: 1.55; color: var(--tx-2); white-space: nowrap; }
.sh-spark { position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 57); width: calc(var(--u) * 54); height: calc(var(--u) * 26); overflow: visible; } .sh-spark path { fill: none; stroke: #8f63ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; } .sh-spark circle { stroke: #0a0a0d; stroke-width: 1.5; } .sh-spark circle.g { fill: #19d88f; } .sh-spark circle.r { fill: #f7566d; }
.sh-mascot { position: absolute; right: calc(var(--u) * 3); bottom: calc(var(--u) * 21.5); width: calc(var(--u) * 42); height: calc(var(--u) * 42); object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 2) calc(var(--u) * 4) rgba(0,0,0,.55)); }
.sh-foot { position: absolute; left: calc(var(--u) * 6); right: calc(var(--u) * 6); bottom: calc(var(--u) * 5.5); display: flex; justify-content: space-between; align-items: flex-end; }
.sh-foot > div { display: flex; flex-direction: column; gap: calc(var(--u) * .7); font-size: calc(var(--u) * 1.85); } .sh-foot .v { display: inline-flex; align-items: center; gap: calc(var(--u) * 1.2); color: var(--tx-2); } .sh-foot .v i { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: var(--accent); }
.sh-qr { width: calc(var(--u) * 16); height: calc(var(--u) * 16); border-radius: calc(var(--u) * 1.4); background: #fff; display: block; }
.sh-card.tall .sh-mascot { bottom: calc(var(--u) * 24); width: calc(var(--u) * 40); } .sh-card.tall .sh-big { font-size: calc(var(--u) * 11.5); } .sh-card.tall .sh-spark { width: calc(var(--u) * 38); }
.sh-hint { text-align: center; font-size: 11px; color: var(--tx-2); margin: 12px 0 10px; }
.sh-dots { display: flex; justify-content: center; gap: 7px; margin: 12px 0; } .sh-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .2s; } .sh-dots i.on { background: #fff; }
.sh-mascot { transition: opacity .2s; }
.sh-acts { display: grid; grid-template-columns: 1fr 1fr 1.18fr; gap: 8px; margin-bottom: 8px; } .sh-acts.two { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.sh-acts button, .sh-acts a { height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 650; color: var(--tx-1); text-decoration: none; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); transition: background .16s, filter .16s; } .sh-acts button:hover, .sh-acts a:hover { background: rgba(255,255,255,.07); }
.sh-acts .primary { background: linear-gradient(180deg, #8456f5, #7143ee); box-shadow: 0 2px 12px rgba(124,77,240,.35); color: #fff; } .sh-acts .primary:hover { filter: brightness(1.1); background: linear-gradient(180deg, #8456f5, #7143ee); }

/* ---- toast ---- */
.t-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 16px); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 12px; background: #17171d; box-shadow: inset 0 0 0 1px var(--hair-2), 0 14px 40px rgba(0,0,0,.6); font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.t-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.t-toast i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; } .t-toast i.ok { background: var(--long-wash); color: var(--long); } .t-toast i.dn { background: var(--short-wash); color: var(--short-text); } .t-toast .ic { width: 12px; height: 12px; }
.t-toast span { padding-right: 6px; } .t-toast button { height: 24px; padding: 0 10px; border-radius: 7px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); color: #cdbcff; font-size: 11px; font-weight: 650; }
