/* The same keyed row becomes a desktop table row or a mobile position card. */
.paper-positions{overflow-anchor:none}.paper-table{font-variant-numeric:tabular-nums}.paper-table [hidden]{display:none!important}.paper-table .position-identity{display:flex;align-items:center;gap:6px;white-space:nowrap}.position-identity img{border-radius:50%;flex-shrink:0}.position-identity strong{font-size:13px;color:#eaecef}.position-perpetual{font-size:9px;color:#848e9c}.position-badges{display:flex;align-items:center;gap:6px;margin-top:8px}.position-badges b{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:3px;background:#0ecb8124;color:#0ecb81;font-size:10px}.paper-table tr[data-side=short] .position-badges b{background:#f6465d24;color:#f6465d}.position-badges>span{font-size:10px;color:#aab4c2;background:#252b35;border-radius:3px;padding:2px 5px}.position-badges>span:last-child{background:none;color:#848e9c;font-size:9px;padding:0}.paper-table .position-pnl strong{font-family:var(--mono);font-weight:600;display:block;white-space:nowrap}.paper-table .position-pnl>div{display:inline-flex;flex-direction:column;gap:4px}.paper-table .position-pnl>div+div{margin-top:6px}.paper-table td>span{font-family:var(--mono)}.paper-table td>small{font-size:10px;color:#848e9c;margin-top:5px;line-height:1.5}.paper-table [data-field=freshness]:empty,.paper-table [data-field=reason]:empty{display:none}.paper-table [data-field=freshness]{color:#dfad4a;font-size:9px;margin-top:6px}.paper-panel .paper-table .position-action button{border:1px solid #424b59;background:#252c37;color:#eaecef;font-size:12px;padding:7px 12px;border-radius:5px}.paper-panel .paper-table .position-action button:hover{border-color:#f0b90b;color:#f0b90b}.paper-table .position-protection>span,.paper-table .position-protection>small{font:11px/1.6 var(--mono)}
@media(min-width:701px){
 .paper-table{table-layout:fixed;min-width:1190px;width:100%;font-size:12px}.paper-table th:nth-child(1){width:155px}.paper-table th:nth-child(2){width:155px}.paper-table th:nth-child(3){width:140px}.paper-table th:nth-child(4){width:125px}.paper-table th:nth-child(5),.paper-table th:nth-child(6){width:115px}.paper-table th:nth-child(7){width:120px}.paper-table th:nth-child(8){width:135px}.paper-table th:nth-child(9){width:125px}.paper-table th{height:38px;padding:8px;color:#848e9c;font-size:11px}.paper-table td{padding:16px 8px;vertical-align:middle;height:96px;border-bottom:1px solid #262c36}.paper-table .position-pnl>div{display:block}.paper-table .position-pnl>div>small{display:none}.paper-table .position-pnl strong{font-size:16px}.paper-table .position-pnl>div+div strong{font-size:12px;font-weight:400}.paper-table .position-identity strong{font-size:12px}.paper-table .position-size>span{font-size:12px}.paper-table .position-action small{white-space:normal;max-width:120px}.paper-scroll{scrollbar-gutter:stable;min-height:120px}.terminal-position-empty{min-height:160px}
}
@media(max-width:700px){
 .paper-table,.paper-table tbody{width:100%;display:block;min-width:0}.paper-table thead{display:none}.paper-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'contract contract' 'pnl pnl' 'size margin' 'entry mark' 'liquidation protection' 'action action';gap:14px 16px;margin:0;padding:18px 0;border:0;border-bottom:6px solid #181d25;border-radius:0;background:transparent}.paper-table td{min-width:0;display:block;padding:0;border:0;font-size:13px;overflow:hidden}.paper-table td:before{font-size:10px;color:#848e9c;margin-bottom:6px}.paper-table .position-contract{grid-area:contract}.paper-table .position-pnl{grid-area:pnl;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.paper-table .position-size{grid-area:size}.paper-table .position-margin{grid-area:margin}.paper-table .position-entry{grid-area:entry}.paper-table .position-mark{grid-area:mark}.paper-table .position-liquidation{grid-area:liquidation}.paper-table .position-protection{grid-area:protection}.paper-table .position-action{grid-area:action}.paper-table .position-contract:before,.paper-table .position-pnl:before,.paper-table .position-action:before{display:none}.paper-table .position-identity{gap:6px}.paper-table .position-identity strong{font-size:16px}.paper-table .position-identity img{width:22px;height:22px}.paper-table .position-perpetual{font-size:10px}.paper-table .position-badges{margin-top:8px;gap:6px}.paper-table .position-badges>span{font-size:10px}.paper-table .position-pnl>div{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}.paper-table .position-pnl>div small{font-size:10px;color:#a0aaba}.paper-table .position-pnl strong{font-size:21px;line-height:1.25;letter-spacing:-.4px;overflow:hidden;text-overflow:ellipsis}.paper-table td>span{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.paper-table td>small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.paper-table .position-protection>span,.paper-table .position-protection>small{font-size:11px;line-height:1.5}.paper-panel .paper-table .position-action button{width:100%;min-height:37px;font-size:13px;background:#232b36;border:0;color:#dce3ec}.paper-table .position-action small{white-space:normal;margin-top:5px}.paper-table tr[data-terminal-group=history]{grid-template-areas:'contract contract' 'pnl pnl' 'size margin' 'entry protection' 'action action'}.paper-table tr[data-terminal-group=history] .position-mark,.paper-table tr[data-terminal-group=history] .position-liquidation{display:none}.paper-table tr[data-terminal-group=history] .position-action:has(button[hidden]):not(:has(small:not(:empty))){display:none}.paper-positions .paper-scroll{overflow:visible}.terminal-position-tabs{gap:18px}.paper-panel .terminal-position-tabs button{font-size:12px}
}
@media(max-width:700px){.paper-table .position-pnl>div+div{margin-top:0}}
.paper-table [data-field=freshness]{color:#848e9c}.paper-table tr[data-stale=true] [data-field=freshness]{color:#dfad4a}
.paper-table .position-contract>small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
