.trade-history-switch { grid-template-columns: max-content max-content max-content minmax(0, 1fr); }
.trade-history-switch > label:nth-of-type(3) { margin-left: 3px; }
.trade-history-panels { grid-column: 1 / -1; width: auto; min-width: 0; }
#trade-goods:checked ~ label[for="trade-goods"] { position: relative; z-index: 1; color: var(--tr-navy); background: transparent; border-bottom: 2px solid var(--rule-strong); }
#trade-goods:checked ~ .trade-history-panels .trade-goods-panel { display: block; }
@media (max-width: 760px) {
  .trade-history-switch { grid-template-columns: 1fr; }
  .trade-history-switch > label:nth-of-type(2),.trade-history-switch > label:nth-of-type(3) { margin-left: 0; }
  .trade-history-panels { grid-column: 1; }
}
