/* The market ledger leads; controls remain on the same matte surface */
.opening{padding-block:34px 30px}
.opening h1{max-width:none}
.opening h1 br{display:none}
.opening p{max-width:none;display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:15px;font-size:17px}
.opening p span:first-child{color:var(--ink)}
.ledger-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:48px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.ledger-toolbar p{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.ledger-toolbar .ledger-hint{color:var(--faint)}
.ledger-toolbar button{font-size:14px;white-space:nowrap}
.market-name{text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1px;text-underline-offset:5px;transition:text-decoration-color .18s,color .18s}
.market-name:hover,.market-name:focus-visible{text-decoration-color:var(--ink)}
.market-sub{margin-top:7px}
.history-head>div:first-child>span{display:block;margin-top:7px}
.history-window{display:flex;align-items:center;gap:4px}
.history-window button{min-width:48px;min-height:44px;border:1px solid transparent;font-size:14px;color:var(--muted)}
.history-window button:hover{background:var(--surface)}
.history-window button[aria-pressed=true]{border-color:var(--line);background:var(--raised);color:var(--ink)}
.history-window button:disabled{opacity:.45}
.history-window-note{font-size:14px;color:var(--faint);margin-top:13px}
.selection-actions{display:flex;align-items:center;gap:25px}
.selection-actions .text-button{font-size:14px}
@media(max-width:760px){
  .opening{padding-block:28px}
  .opening h1{max-width:340px}
  .opening p{display:block;font-size:17px;line-height:1.8}
  .opening p span{display:block}
  .opening p span+span{margin-top:5px}
  .ledger-toolbar{min-height:52px;align-items:center;gap:12px}
  .ledger-toolbar .ledger-hint{display:none}
  .ledger-toolbar p{gap:0;font-size:14px}
  .ledger-toolbar button{font-size:14px;max-width:115px;white-space:normal;text-align:right;line-height:1.5}
  .markets tbody tr{gap:13px 24px;padding-block:20px}
  .markets td:first-child{min-height:51px}
  .markets td:nth-child(2),.markets td:nth-child(5){grid-row:3}
  .markets td:last-child{top:16px}
  .market-name{font-size:20px}
  .market-sub{margin-top:6px}
  .history-head{display:flex;align-items:start;gap:14px}
  .history-head>div:first-child{max-width:185px}
  .history-window{flex-shrink:0;gap:0}
  .history-window button{min-width:44px}
  .history-window-note{line-height:1.7}
  .selection-bar{align-items:center;gap:12px;padding-block:12px}
  .selection-bar>span{max-width:110px;line-height:1.6}
  .selection-actions{gap:12px}
  .selection-actions .primary{font-size:14px;padding-inline:12px}
  .selection-actions .text-button{font-size:14px}
}

.market-filters{border-top:0}
.market-filters>summary{display:none}
.market-filters>.filter-row{max-width:none}
@media(max-width:760px){.market-filters>summary{display:flex;min-height:62px;font-size:15px;gap:12px;padding-block:12px}.market-filters>summary>span:not(.plus){font-size:14px;color:var(--muted);margin-left:auto;text-align:right;max-width:170px;overflow-wrap:anywhere}.market-filters>.filter-row{padding-top:6px;padding-bottom:14px}.data-caption{padding-top:10px}.ledger-toolbar{border-top:0}.market-filters[open]>summary{margin-bottom:12px}.market-filters:focus-within{scroll-margin-top:20px}}
