

.trade { position: relative; padding: calc(7 * var(--u)) calc(2 * var(--u)) calc(6 * var(--u)); border-top: 1px solid var(--rule); overflow-x: clip; color: var(--ink);
  --tr-s: max(10px, calc(0.72 * var(--u))); --tr-sub: color-mix(in srgb, var(--ink) 76%, var(--paper)); --tr-white: var(--paper); --tr-g: var(--ink);
  --tr-note: #F1ECE3; --tr-key: color-mix(in srgb, var(--line) 82%, var(--paper)); } 
:root[data-theme="dark"] .trade { --tr-white: var(--ink); --tr-g: var(--deep); } 
.trade .tr-defs { position: absolute; width: 0; height: 0; }
.trade #trHatch line { stroke: var(--faint); stroke-width: 1; }
.trade #trHatchL line { stroke: var(--mid); }
.trade .tr-lbl { font: 500 var(--tr-s)/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.trade .tr-lbl b { font-weight: 500; color: var(--line); }
.trade .tr-x { display: inline-block; width: 1.3em; height: 0.95em; vertical-align: -0.12em; overflow: visible; }
.trade .tr-x path { fill: none; stroke: currentColor; stroke-width: 1.1; }
.trade .tr-flag { display: inline-block; flex: none; width: 1.5em; height: 1em; vertical-align: -0.16em; margin: 0 0.45em 0 0; overflow: visible; }
.trade .tr-head, .trade .tr-cxh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin-bottom: calc(1.1 * var(--u)); }
.trade .tr-cxh { margin-top: calc(4 * var(--u)); }

.trade .tr-sheet { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); border: 1px solid var(--rule); }
.trade .tr-map { position: relative; margin: 0; min-height: min(86vh, 50vw); border-right: 1px solid var(--rule); overflow: hidden; }
.trade .tr-base, .trade .tr-mid, .trade .tr-svg, .trade .tr-fl, .trade .tr-top { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trade .tr-base { pointer-events: none; }
.trade .tr-fl { pointer-events: none; will-change: transform; } 
.trade .tr-top { pointer-events: none; } 
.trade .tr-top .tr-ig { pointer-events: auto; }
.trade .tr-mid { pointer-events: none; }
.trade .tr-svg { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.trade .tr-grat { fill: none; stroke: var(--faint); stroke-width: 1; }
.trade .tr-land { fill: var(--cargo); }
.trade .tr-land .tr-coast { fill: none; stroke: var(--line); stroke-opacity: 0.6; stroke-linejoin: round; }
.trade .tr-land .tr-bord { fill: none; stroke: var(--mid); stroke-opacity: 0.85; }
.trade .tr-land .main { fill: color-mix(in srgb, var(--mid) 34%, var(--paper)); } 
.trade .tr-word { font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em; fill: var(--line); text-anchor: middle; dominant-baseline: central; }

.trade .tr-lift .sh { fill: url(#trHatchL); }
.trade .tr-lift .wl { fill: color-mix(in srgb, var(--deep) 58%, var(--cargo)); }
.trade .tr-lift .fc { fill: color-mix(in srgb, var(--mid) 30%, var(--paper)); stroke: var(--line); stroke-linejoin: round; }
:root[data-theme="dark"] .trade .tr-lift .wl { fill: color-mix(in srgb, var(--deep) 65%, var(--paper)); }
:root[data-theme="dark"] .trade .tr-lift .fc { fill: color-mix(in srgb, var(--mid) 45%, var(--paper)); }

.trade .tr-lanes, .trade .tr-lsel { fill: none; stroke: var(--mid); stroke-width: 1; stroke-dasharray: 2 5; }
.trade .tr-fl .tr-mk { stroke-dasharray: none; }
.trade .tr-ln { transition: opacity 0.4s, stroke 0.4s; }
.trade .tr-lk { fill: none; }
.trade .tr-lk .k { display: none; stroke: var(--paper); stroke-width: 5.5; stroke-linecap: round; opacity: 0.92; }
.trade .tr-lk .k.on { display: inline; }
.trade .tr-ln.on .f, .trade .tr-ln.on .b { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.trade .tr-sel .tr-ln:not(.on) { opacity: 0.5; }
.trade .tr-lane .tr-ln:not(.on) { opacity: 0.18; }
.trade .tr-pv .tr-ln:not(.pv) { opacity: 0.12; }
.trade .tr-pv .tr-ln.pv { opacity: 1; }
.trade .tr-pv .tr-ln.pv .f, .trade .tr-pv .tr-ln.pv .b { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.trade .tr-nms { transition: opacity 0.3s; pointer-events: none; }
.trade .tr-nms text { font: 500 10px var(--mono); letter-spacing: 0.03em; fill: var(--line); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.trade .tr-mk { fill: var(--line); stroke: var(--paper); stroke-width: 1.5; display: none; } 
.trade .tr-lane .tr-mk { display: inline; }

.trade .tr-cl { cursor: pointer; outline: none; }
.trade .tr-cl text { font-family: var(--sans); font-weight: 600; letter-spacing: 0.26em; text-anchor: middle; fill: color-mix(in srgb, var(--ink) 72%, var(--paper)); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; transition: fill 0.3s; }
.trade .tr-cl .ld { fill: none; stroke: var(--mid); stroke-width: 1; }
.trade .tr-cl .pt { fill: var(--mid); }
.trade .tr-cl .tab { fill: var(--accent); display: none; }
.trade .tr-cl.up .tab, .trade .tr-cl:focus-visible .tab { display: inline; }
.trade .tr-cl.up text { fill: var(--line); font-weight: 700; }
.trade .tr-cl.main text { fill: var(--line); font-weight: 700; }

.trade .tr-ig { cursor: pointer; outline: none; }
.trade .tr-ig text { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; fill: var(--line); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
.trade .tr-ig text tspan + tspan { font-weight: 500; fill: color-mix(in srgb, var(--ink) 78%, var(--paper)); }
.trade .tr-ig .ld { fill: none; stroke: var(--mid); stroke-width: 1; }
.trade .tr-ig:focus-visible text { fill: var(--accent); }

.trade .tr-nd { cursor: pointer; outline: none; }
.trade .tr-nd .sq { fill: var(--line); stroke: var(--paper); stroke-width: 1.5; transition: fill 0.25s, opacity 0.3s; }
.trade .tr-nd .lab text { font: 500 10px var(--mono); letter-spacing: 0.04em; fill: color-mix(in srgb, var(--ink) 82%, var(--paper)); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.trade .tr-nd .lab .bx { fill: var(--paper); stroke: var(--line); stroke-width: 1; display: none; }
.trade .tr-nd .lab .ld { fill: none; stroke: var(--mid); stroke-width: 1; }
.trade .tr-nd.nolab .lab { display: none; }
.trade .tr-nd.on .lab, .trade .tr-nd.near .lab { display: inline; }
.trade .tr-nd.near .lab text { fill: var(--line); }
.trade .tr-nd.on .lab .bx { display: inline; }
.trade .tr-nd.on .lab text { font-weight: 600; fill: var(--line); stroke: none; }
.trade .tr-sel .tr-nd:not(.on):not(.near) .sq { opacity: 0.45; }
.trade .tr-sel .tr-nd:not(.on):not(.near) .lab text { fill: color-mix(in srgb, var(--ink) 64%, var(--paper)); }
.trade .tr-small .tr-nd.near:not(.on) .lab, .trade .tr-small .tr-nms { display: none; }
.trade .tr-nd.on .sq { fill: var(--accent); }
.trade .tr-nd:focus-visible .sq { stroke: var(--accent); stroke-width: 2.5; }
.trade .tr-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.trade .tr-nd.on .tr-ring { animation: trPing 1.8s cubic-bezier(0.2, 0.6, 0.3, 1) 3; } 
.trade .tr-map.tr-idle .tr-nd.on .tr-ring { animation: none; } 

.trade .tr-nd .sq { transform-box: fill-box; transform-origin: center; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), fill 0.25s, opacity 0.3s; }
.trade .tr-nd.big .sq { transform: scale(2.3); fill: var(--accent); }
.trade .tr-nd.big .lab { display: none; }
.trade .tr-pc { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px 11px 11px; background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--faint); pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.trade .tr-pc.on { opacity: 1; }
.trade .tr-pc-f { display: block; flex: none; width: 42px; height: 28px; overflow: visible; }
.trade .tr-pc-t { display: grid; gap: 2px; }
.trade .tr-pc-t em { font: 500 10px/1.3 var(--mono); font-style: normal; letter-spacing: 0.06em; color: var(--mid); white-space: nowrap; }
.trade .tr-pc-t b { font: 700 24px/1.05 var(--sans); letter-spacing: -0.02em; color: var(--line); white-space: nowrap; }
.trade .tr-pc-t span { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; color: var(--line); white-space: nowrap; }
@keyframes trPing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
.trade .tr-refs text { font: 500 9px var(--mono); fill: var(--mid); text-anchor: middle; dominant-baseline: central; }
.trade .tr-refs path { fill: none; stroke: var(--rule); stroke-width: 1; }
.trade .tr-tb { position: absolute; right: 22px; bottom: 22px; min-width: 230px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 90%, transparent); font: 500 max(9.5px, calc(0.64 * var(--u)))/1.45 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); pointer-events: none; }
.trade .tr-tb div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 9px; border-top: 1px solid var(--rule); }
.trade .tr-tb div:first-child { border-top: 0; color: var(--line); }

.trade .tr-side { display: flex; flex-direction: column; min-width: 0; contain: size; overflow: hidden; }
.trade .tr-dos { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; padding: calc(1.3 * var(--u)) calc(1.4 * var(--u)) calc(1 * var(--u)); }
.trade .tr-clocks { flex: none; }
.trade .tr-d-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trade .tr-d-n { margin: calc(1.2 * var(--u)) 0 calc(0.8 * var(--u)); font: 700 max(26px, calc(2.2 * var(--u)))/1.02 var(--sans); letter-spacing: -0.03em; color: var(--line); text-transform: uppercase; overflow-wrap: anywhere; }
.trade .tr-d-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.trade .tr-d-f + .tr-d-f { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.trade .tr-d-f div { padding: 7px 8px 7px 0; min-width: 0; }
.trade .tr-d-f dt { font: 500 9.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.trade .tr-d-f dd { margin: 2px 0 0; font: 500 max(10.5px, calc(0.74 * var(--u)))/1.45 var(--mono); color: var(--line); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trade .tr-d-f dd s { text-decoration: none; color: var(--mid); }
.trade .tr-d-s { display: flex; justify-content: space-between; gap: 10px; margin-top: calc(1.1 * var(--u)); padding-bottom: 5px; border-bottom: 1px solid var(--line); font: 500 9.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.trade .tr-d-s span:first-child { color: var(--line); }
.trade .tr-d-l, .trade .tr-d-t { list-style: none; margin: 0; padding: 0; }
.trade .tr-d-l li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px; align-items: baseline; padding: 6px 4px 7px 0; border-bottom: 1px solid var(--rule); font: 500 max(10px, calc(0.7 * var(--u))) var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); cursor: pointer; outline: none; animation: trIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.trade .tr-d-l li:hover, .trade .tr-d-l li:focus-visible { background: color-mix(in srgb, var(--line) 6%, transparent); }
.trade .tr-d-l li:focus-visible { box-shadow: inset 2px 0 0 var(--accent); }
.trade .tr-d-l .tr-flag { margin: 0; }
.trade .tr-d-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade .tr-d-l b { font: 600 max(12.5px, calc(0.9 * var(--u))) var(--sans); font-variant-numeric: tabular-nums; color: var(--line); }
.trade .tr-d-l small { margin-left: 4px; font: 500 9px var(--mono); color: var(--mid); }
.trade .tr-d-l em { font-style: normal; color: var(--tr-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trade .tr-d-l i { position: absolute; left: 0; bottom: -1px; width: calc(var(--w) * 100%); height: 1px; background: var(--line); }
.trade .tr-d-t li { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; column-gap: 5px; row-gap: 2px; align-items: center; padding: 7px 0 8px; border-bottom: 1px solid var(--rule); font: 500 max(10px, calc(0.7 * var(--u))) var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); animation: trIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.trade .tr-d-t .tr-flag { margin: 0; }
.trade .tr-d-t .tr-x { color: var(--mid); }
.trade .tr-d-t span { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade .tr-d-t b { font: 700 max(13px, calc(0.98 * var(--u))) var(--sans); font-variant-numeric: tabular-nums; color: var(--line); text-align: right; }
.trade .tr-d-t small { margin-left: 3px; font: 500 9px var(--mono); color: var(--mid); }
.trade .tr-d-t em { font: 500 9.5px/1.4 var(--mono); font-style: normal; color: var(--tr-sub); font-variant-numeric: tabular-nums; }
.trade .tr-d-t em:first-of-type { grid-column: 1 / 5; }
.trade .tr-d-t em:last-of-type { grid-column: 5 / 6; text-align: right; color: var(--mid); white-space: nowrap; }
@keyframes trIn { from { opacity: 0; transform: translateY(5px); } }
.trade .tr-clocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.trade .tr-clocks li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'd c' 'd t'; column-gap: 8px; align-items: center; padding: 8px 10px; background: var(--paper); }
.trade .tr-dial { grid-area: d; width: 22px; height: 22px; display: block; overflow: visible; }
.trade .tr-dial .o { fill: none; stroke: var(--line); stroke-width: 1.4; }
.trade .tr-dial .k { stroke: var(--mid); stroke-width: 1.4; }
.trade .tr-dial .h, .trade .tr-dial .m { stroke: var(--line); stroke-linecap: round; }
.trade .tr-dial .h { stroke-width: 2.6; }
.trade .tr-dial .m { stroke-width: 1.8; }
.trade .tr-dial .s { stroke: var(--accent); stroke-width: 1.3; }
.trade .tr-clocks li > span { grid-area: c; font: 500 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .tr-clocks b { grid-area: t; font: 600 15px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--line); white-space: nowrap; }
.trade .tr-clocks b em { margin-left: 5px; font: 500 9px var(--mono); font-style: normal; letter-spacing: 0.04em; color: var(--mid); }

.trade .tr-cx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); border: 1px solid var(--rule); }
.trade .tr-tray { --rx: 0deg; --ry: 0deg; display: grid; grid-template-rows: 1fr auto auto auto; min-width: 0; border-right: 1px solid var(--rule); perspective: 900px; touch-action: pan-y; }
.trade .tr-note { display: grid; place-items: center; min-height: 280px; padding: 30px 14px 12px; }

.trade .tr-stk { grid-area: 1 / 1; position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.trade .tr-cell { position: absolute; top: 0; }
.trade .tr-cell-l { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 600 10px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--line); white-space: nowrap; }
.trade .tr-it { position: absolute; }
.trade .tr-pl { height: auto; user-select: none; -webkit-user-drag: none; }
.trade .tr-bnw { position: absolute; inset: 0; background: var(--tr-note); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 0 rgba(17, 19, 22, 0.2), 0 9px 16px -10px rgba(17, 19, 22, 0.6); }
.trade .tr-bnw img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.trade .tr-bnw.sk { --paper: var(--tr-note); --line: #20272E; --mid: #80878F; } 
.trade .tr-fan { transform-origin: 50% 220%; rotate: var(--a); } 
.trade .tr-fan.part { opacity: 0.5; }
.trade .tr-fan.part .tr-bnw { outline: 1px dashed var(--line); outline-offset: 2px; }
.trade .tr-stack .tr-bnw { inset: 0 0 var(--th) 0; }
.trade .tr-edge { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--th) + 2px); border: 1px solid #20272E; border-top: 0; border-radius: 0 0 3px 3px; background: repeating-linear-gradient(to bottom, var(--tr-note) 0 1.1px, #A39E93 1.1px 1.65px); box-shadow: 0 8px 14px -9px rgba(17, 19, 22, 0.6); } 
.trade .tr-obj > .tr-nt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trade .tr-cnt { position: absolute; z-index: 2; translate: -100% -100%; padding: 3px 8px 4px; background: var(--line); color: var(--paper); font: 600 13px/1.2 var(--mono); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; } 
.trade .tr-nt .nb { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.trade .tr-nt .nl { fill: none; stroke: var(--line); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.trade .tr-nt .gw, .trade .tr-nt .gl { fill: none; stroke: var(--mid); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.trade .tr-nt .gr { fill: none; stroke: var(--mid); stroke-width: 0.55; vector-effect: non-scaling-stroke; }
.trade .tr-nt .dn { font-family: var(--sans); font-weight: 700; fill: none; stroke: var(--line); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.trade .tr-nt .d1 { font: 700 7px var(--sans); fill: var(--line); }
.trade .tr-nt .d2 { font: 600 5px var(--mono); fill: var(--line); letter-spacing: 0.04em; }
.trade .tr-nt .cs { font: 700 11px var(--sans); fill: var(--line); text-anchor: middle; }
.trade .tr-nt .cc { font: 600 4px var(--mono); fill: var(--line); text-anchor: middle; letter-spacing: 0.08em; }
.trade .tr-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 14px 2px; border-top: 1px solid var(--rule); font: 500 var(--tr-s)/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); font-variant-numeric: tabular-nums; }
.trade .tr-cap span:last-child { color: var(--line); }
.trade .tr-units { min-height: 1.45em; padding: 2px 14px 4px; font: 700 max(12px, calc(0.82 * var(--u)))/1.45 var(--mono); letter-spacing: 0.03em; color: var(--line); font-variant-numeric: tabular-nums; } 
.trade .tr-units:empty { display: none; }
.trade .tr-cred { min-height: 1.4em; padding: 0 14px 9px; font: 500 9px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--mid); }
.trade .tr-cxm { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; min-width: 0; }
.trade .tr-bases { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.trade .tr-bases button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 13px 8px; background: var(--paper); border: 0; font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--mid); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trade .tr-bases button b { margin-right: 5px; font: 700 15px var(--sans); color: var(--line); }
.trade .tr-bases button.on { color: var(--line); background: color-mix(in srgb, var(--line) 7%, var(--paper)); box-shadow: inset 0 -2px 0 var(--line); }
.trade .tr-bases button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.trade .tr-amt { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(0.8 * var(--u)); padding: calc(1.1 * var(--u)) calc(1.3 * var(--u)) calc(1.3 * var(--u)); border-bottom: 1px solid var(--rule); }
.trade .tr-amt-h { display: flex; align-items: center; gap: 12px; }
.trade .tr-amt-f .tr-flag { width: 36px; height: 24px; margin: 0; vertical-align: middle; }
.trade .tr-amt-n { display: grid; gap: 1px; }
.trade .tr-amt-n b { font: 600 max(12px, calc(0.82 * var(--u)))/1.25 var(--mono); letter-spacing: 0.06em; color: var(--line); }
.trade .tr-amt-n em { font: 500 var(--tr-s)/1.3 var(--mono); font-style: normal; letter-spacing: 0.06em; color: var(--mid); }
.trade .tr-amt-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 8px; border: 1px solid var(--accent); font: 600 max(10px, calc(0.68 * var(--u)))/1 var(--mono); letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; }
.trade .tr-amt-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.trade .tr-amt-v { position: relative; display: flex; align-items: baseline; gap: 0.22em; padding: 4px 6px 10px; border-bottom: 2px dashed var(--line); font: 700 max(42px, calc(4 * var(--u)))/1.05 var(--sans); letter-spacing: -0.025em; color: var(--line); cursor: text; transition: border-color 0.2s, background-color 0.2s; }
.trade .tr-amt-v:hover { background: color-mix(in srgb, var(--line) 4%, transparent); }
.trade .tr-amt-v.edit { border-bottom: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.trade .tr-amt-v.after .tr-amt-s { order: 2; }
.trade .tr-amt-s { color: var(--mid); font-weight: 600; }
.trade .tr-amt-w { position: relative; display: inline-flex; align-items: baseline; min-width: 0; max-width: 100%; }
.trade .tr-amt-v input { width: 4ch; min-width: 1ch; max-width: 100%; padding: 0; border: 0; outline: none; background: none; font: inherit; letter-spacing: inherit; color: inherit; font-variant-numeric: tabular-nums; caret-color: var(--accent); }
.trade .tr-amt-v input::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.trade .tr-amt-m { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; pointer-events: none; }
.trade .tr-caret { flex: none; align-self: center; width: 3px; height: 0.82em; margin-left: 3px; background: var(--accent); animation: trBlink 1.06s steps(1) infinite; }
.trade .tr-amt-v.edit .tr-caret, .trade .tr-cx.tr-idle .tr-caret { animation: none; }
.trade .tr-amt-v.edit .tr-caret { visibility: hidden; }
@keyframes trBlink { 50% { opacity: 0; } }

.trade .tr-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px 8px; }
.trade .tr-chips button { position: relative; padding: 0 0 5px; border: 1.4px solid var(--line); border-radius: 9px; background: repeating-linear-gradient(-55deg, var(--line) 0 1px, transparent 1px 3.4px) var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trade .tr-chips button span { position: relative; display: block; margin: -1.4px -1.4px 0; padding: 10px 8px 9px; border: 1.4px solid var(--line); border-radius: 8px; background: var(--paper); font: 600 13px/1.2 var(--mono); letter-spacing: 0.02em; color: var(--line); font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--mid) 16%, transparent); transition: transform 0.12s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.15s, color 0.15s; }
.trade .tr-chips button:hover span { transform: translateY(-1px); }
.trade .tr-chips button:active span, .trade .tr-chips button.on span { transform: translateY(4px); box-shadow: none; }
.trade .tr-chips button.on span { background: var(--line); color: var(--paper); }
.trade .tr-chips button.on span::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent); }
.trade .tr-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.trade .tr-outs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.trade .tr-o { container-type: inline-size; display: grid; align-content: start; gap: 5px; min-width: 0; padding: 11px 13px 9px; border: 0; background: var(--paper); color: inherit; font: inherit; text-align: left; cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.trade .tr-o[hidden] { display: none; }
.trade .tr-o:hover, .trade .tr-o:focus-visible { background: color-mix(in srgb, var(--line) 4%, var(--paper)); }
.trade .tr-o:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.trade .tr-o-h { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 var(--tr-s)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.trade .tr-o-h .tr-flag { margin: 0; }
.trade .tr-o-h b { font-weight: 500; color: var(--line); }
.trade .tr-o-h em { margin-left: auto; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .tr-coin { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--line); border-radius: 50%; font: 700 9px/1 var(--sans); font-style: normal; color: var(--line); }
.trade .tr-o-v { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; font: 700 max(19px, calc(1.5 * var(--u)))/1.1 var(--sans); font-size: min(max(19px, calc(1.5 * var(--u))), calc(100cqw / (var(--n, 8) * 0.6))); letter-spacing: -0.02em; color: var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; } 
.trade .tr-o-v s { text-decoration: none; font-weight: 600; font-size: 0.78em; color: var(--mid); }
.trade .tr-odo { display: inline-flex; }
.trade .tr-d { display: inline-block; height: 1.1em; overflow: hidden; }
.trade .tr-d > span { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.16, 0.84, 0.28, 1); }
.trade .tr-d i { font-style: normal; height: 1.1em; }
.trade .tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trade .tr-o-c { display: flex; align-items: baseline; gap: 6px; font: 500 max(10px, calc(0.7 * var(--u))) var(--mono); color: var(--ink); white-space: nowrap; }
.trade .tr-o-c b { font: 400 0.82em var(--sans); }
.trade .tr-o-c em { font-style: normal; color: var(--mid); }
.trade .tr-spark { display: block; width: 100%; height: 30px; margin: 4px 0 2px; overflow: visible; }
.trade .tr-spark .ar { fill: url(#trHatch); }
.trade .tr-spark .bl { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.trade .tr-spark .ln { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
.trade .tr-spark .hr { stroke: var(--line); stroke-width: 1; opacity: 0; }
.trade .tr-spark .dt { fill: var(--accent); }
.trade .tr-spark .sd { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; opacity: 0; }
.trade .tr-o.scrub .hr, .trade .tr-o.scrub .sd { opacity: 1; }
.trade .tr-o-f { display: flex; justify-content: space-between; gap: 6px; font: 500 9.5px/1.3 var(--mono); color: var(--mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trade .tr-o.scrub .tr-o-f { color: var(--line); }

.trade .tr-coins { display: grid; align-content: start; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--line) 4%, var(--paper)); }
.trade .tr-coins-h { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px 7px; }
.trade .tr-o.tr-cn { grid-template-columns: 32px minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, 1.55fr) minmax(0, 0.95fr) minmax(0, 1.3fr); grid-template-areas: 'tk h v u c sp' 'tk h v u c f'; align-items: center; gap: 0 14px; padding: 8px 14px; background: none; border-top: 1px solid var(--rule); }
.trade .tr-o.tr-cn:hover, .trade .tr-o.tr-cn:focus-visible { background: color-mix(in srgb, var(--line) 5%, transparent); }
.trade .tr-cn .tr-tok { grid-area: tk; display: grid; place-items: center; }
.trade .tr-cn .tr-coin { width: 26px; height: 26px; border-width: 1.4px; font-size: 13px; box-shadow: inset 0 0 0 2.5px var(--paper), inset 0 0 0 3.5px var(--line); }
.trade .tr-ingot { display: grid; place-items: center; width: 30px; height: 18px; font: 700 9px/1 var(--sans); font-style: normal; color: var(--line); background: var(--paper); border: 1.4px solid var(--line); clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%); }
.trade .tr-cn .tr-o-h { grid-area: h; display: grid; gap: 2px; }
.trade .tr-cn .tr-o-h b { font: 700 max(12px, calc(0.84 * var(--u))) var(--mono); letter-spacing: 0.04em; }
.trade .tr-cn .tr-o-h em { margin: 0; font-size: 9.5px; }
.trade .tr-cn .tr-o-v { grid-area: v; margin: 0; font-size: max(17px, calc(1.25 * var(--u))); }
.trade .tr-o.tr-cn { container-type: normal; }
.trade .tr-cn .tr-o-v s { font: 600 0.62em var(--mono); letter-spacing: 0.04em; }
.trade .tr-o-u { grid-area: u; font: 500 max(10px, calc(0.7 * var(--u)))/1.3 var(--mono); color: var(--mid); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .tr-o-u i { font-style: normal; }
.trade .tr-o-u b { font-weight: 600; color: var(--line); }
.trade .tr-cn .tr-o-c { grid-area: c; }
.trade .tr-cn .tr-spark { grid-area: sp; height: 22px; margin: 0; }
.trade .tr-cn .tr-o-f { grid-area: f; font-size: 9px; }

@media (max-width: 1000px) {
  .trade .tr-sheet { grid-template-columns: minmax(0, 1fr); }
  .trade .tr-map { min-height: 0; aspect-ratio: var(--tr-ar, 13 / 10); border-right: 0; border-bottom: 1px solid var(--rule); } 
  .trade .tr-side { contain: none; }
  .trade .tr-dos { overflow: visible; }
  .trade .tr-cx { grid-template-columns: minmax(0, 1fr); }
  .trade .tr-tray { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .trade { padding: 72px 16px 56px; }
  .trade .tr-map { aspect-ratio: var(--tr-ar, 1 / 1); }
  .trade .tr-tb { display: none; }
  .trade .tr-pc { gap: 8px; padding: 6px 10px 7px 7px; box-shadow: 2px 2px 0 var(--faint); } 
  .trade .tr-bnw { box-shadow: 0 1px 0 rgba(17, 19, 22, 0.25); } 
  .trade .tr-edge { box-shadow: none; }
  .trade .tr-pc-f { width: 27px; height: 18px; }
  .trade .tr-pc-t b { font-size: 16px; }
  .trade .tr-pc-t em, .trade .tr-pc-t span { font-size: 9px; }
  .trade .tr-dos { padding: 18px 16px 14px; }
  .trade .tr-d-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade .tr-d-l li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .trade .tr-d-l em:last-of-type { display: none; }
  .trade .tr-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade .tr-note { min-height: 240px; padding: 28px 10px 10px; }
  .trade .tr-bases button { flex: 1 1 30%; padding: 12px 6px; }
  .trade .tr-amt { padding: 14px 14px 16px; gap: 12px; }
  .trade .tr-amt-h { flex-wrap: wrap; }
  .trade .tr-amt-v { font-size: 38px; }
  .trade .tr-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 7px; }
  .trade .tr-chips button span { padding: 9px 4px 8px; font-size: 11.5px; }
  .trade .tr-chips button.on span::before { left: 5px; width: 5px; height: 5px; margin-top: -2.5px; }
  .trade .tr-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade .tr-o.wide { grid-column: span 2; }
  .trade .tr-o-h em { display: none; }
  .trade .tr-o-v { font-size: min(19px, calc(100cqw / (var(--n, 8) * 0.6))); }
  .trade .tr-o.tr-cn { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'tk h v' 'tk u c'; gap: 3px 10px; padding: 10px 14px; }
  .trade .tr-cn .tr-o-h em { display: block; }
  .trade .tr-cn .tr-spark, .trade .tr-cn .tr-o-f { display: none; }
  .trade .tr-cn .tr-o-v { justify-self: end; font-size: 17px; }
  .trade .tr-cn .tr-o-c { justify-self: end; }
}
.nojs .trade { display: none; }
@media print { .trade .tr-note, .trade .tr-cred { visibility: hidden; } }  
@media (prefers-reduced-motion: reduce) {
  .trade .tr-nd.on .tr-ring, .trade .tr-d-l li, .trade .tr-d-t li, .trade .tr-caret { animation: none; }
  .trade .tr-d > span, .trade .tr-stk, .trade .tr-chips button span { transition: none; }
}
