.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:min(100%,392px);margin-left:auto;margin-right:auto}
.hero-actions .btn{width:100%;white-space:nowrap;padding-left:10px;padding-right:10px}
button.btn{font-family:inherit}
.tr-overlay{position:fixed;inset:0;background:rgba(6,6,9,.72);backdrop-filter:blur(6px);z-index:120;display:none;align-items:center;justify-content:center;padding:16px}
.tr-overlay:target{display:flex}
.tr-sheet{width:100%;max-width:460px;background:#0b0b0d;border:1px solid #2a2a30;border-radius:18px;padding:18px;color:#f5f5f8;box-shadow:0 24px 70px rgba(0,0,0,.6);max-height:90vh;overflow:auto}
.tr-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.tr-ico{width:30px;height:30px;border-radius:9px;background:rgba(139,92,246,.16);color:#a78bfa;display:grid;place-items:center;font-size:15px}
.tr-head h3{margin:0;font-size:16px;font-weight:600}
.tr-x{margin-left:auto;background:none;border:0;color:#a8a8b6;font-size:22px;line-height:1;cursor:pointer;padding:0 2px}
.tr-x:hover{color:#fff}
.tr-note{margin:12px 0 0;font-size:11.5px;color:#8a8a99;line-height:1.45}
body.tr-open{overflow:hidden}
.res-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.res-title{font-size:15px;font-weight:600;line-height:1.3;color:#fff}
.res-date{display:block;margin-top:3px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:#8a8a99}
.res-total{margin-left:auto;font-size:17px;font-weight:700;color:#2fd48a;white-space:nowrap}
.res-total.dn{color:#f2665c}
.res-nav{display:flex;gap:6px;flex:none}
.res-nav button{width:26px;height:26px;border-radius:50%;border:1px solid #2a2a30;background:none;color:#c0c0cc;font-size:13px;cursor:pointer}
.res-nav button:disabled{opacity:.35;cursor:default}
.res-scroll{max-height:46vh;overflow:auto;border:1px solid #232327;border-radius:10px}
table.res{width:100%;border-collapse:collapse;font-family:"Space Mono",monospace;font-size:11px}
table.res th{position:sticky;top:0;background:#0e0e10;color:#8a8a99;font-weight:400;letter-spacing:.08em;text-transform:uppercase;font-size:9px;padding:7px 8px;text-align:right;border-bottom:1px solid #232327}
table.res th:first-child{text-align:left}
table.res td{padding:7px 8px;text-align:right;border-bottom:1px solid #1b1b1f;white-space:nowrap}
table.res td:first-child{text-align:left}
table.res tr:last-child td{border-bottom:0}
table.res .sym{font-weight:700;color:#fff}
.lng{display:block;font-size:8.5px;letter-spacing:.1em;color:#2fd48a;margin-top:2px}
.lng.sht{color:#f2665c}
td.pos{color:#2fd48a}
td.neg{color:#f2665c}
.res-empty{padding:18px 2px;color:#8a8a99;font-size:12.5px}
@media (max-width:520px){.tr-sheet{max-width:100%;border-radius:16px}}
/* hold the sheet at a stable height when a day has no rows */
.tr-sheet{min-height:min(420px,60vh);display:flex;flex-direction:column}
.tr-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.tr-body > .res-scroll{flex:0 0 auto;max-height:none}
.tr-body > .res-empty{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:0;text-align:center}