/* Shared history shell: readable numbers, explicit selection, no live motion. */
#wallet-modal.history-open .asset-row { display: none; }
#wallet-modal.history-open .wallet-heading { margin-bottom: 16px; }
#wallet-modal.history-open .wallet-heading .sheet-title { font-size: 32px; }
#wallet-modal.history-open #wallet-net { margin-bottom: 12px; padding-block: 7px; }
#wallet-modal.history-open .wtabs { margin-bottom: 18px; }
#wallet-modal.hull-history-open #board-you { display: none; }
#wallet-modal.hull-history-open #pane-board .board-periods { grid-column: 1 / -1; margin: 0; }
#wallet-modal.hull-history-open #pane-board #board-summary { margin: 12px 0; font-size: 11px; }
#bets .bets-live-tabs { display: flex; flex: 1 1 0; min-width: 0; }
#bets .bets-live-tabs .bets-tab { flex: 1 1 0; }
#bets-history-open { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #bad2dd; font: inherit; font-size: 10px; letter-spacing: .04em; cursor: pointer; }
#bets-history-open:hover { color: #e6f6ff; background: #a6d9eb13; }
#bets-history-open svg { width: 14px; height: 14px; flex: 0 0 auto; }
#bets-history-open[aria-selected="true"] { color: #e1f0f5; }
#activity-history { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; }
.dock-history-caption { position: sticky; top: -10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -10px 0 8px; background: #061620; color: #9bb5be; font: 10px/1.4 var(--ui); }
#dock-history-more { min-height: 44px; min-width: 80px; padding: 0 4px; border: 0; background: none; color: #c2e0df; font: 500 11px var(--ui); cursor: pointer; }
#dock-history-more:hover { color: #efffff; }
#dock-history-more[aria-disabled="true"] { color: #91a9b2; cursor: default; }
#dock-history-more:focus-visible { outline: 2px solid #b8e7ee; outline-offset: -3px; }
.dock-history-status { margin: 12px 0 4px; color: #b1c9d0; font: 11px/1.5 var(--ui); }
.dock-history-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 12px 6px; list-style: none; margin: 0; padding: 0; }
.dock-history-round { min-width: 0; text-align: center; padding: 0; }
.dock-history-value { display: block; color: #d0e7e8; font: 600 11px/1.4 var(--mono); }
.dock-history-bar-space { display: flex; align-items: flex-end; justify-content: center; height: 32px; margin: 3px 0 4px; border-bottom: 1px solid #9dc4cc19; }
.dock-history-bar { width: 18px; border-radius: 2px 2px 0 0; background: #80b7bc; }
.dock-history-number { display: block; color: #90aab4; font: 9px/1.3 var(--mono); }
.dock-history-scale { margin: 14px 0 2px; color: #90aab4; font: 9px/1.5 var(--ui); }
.dock-history-empty { padding: 16px 0; color: #b1c9d0; font: 12px/1.5 var(--ui); }
#activity-history:focus-visible { outline: 2px solid #b8e7ee; outline-offset: -3px; }
.history-explorer { margin: 18px 0 24px; color: #d7e6ed; min-width: 0; }
.history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.history-heading .history-eyebrow { margin: 0 0 8px; color: #8ed5da; text-transform: uppercase; letter-spacing: .17em; font-size: 10px; font-weight: 700; }
.history-heading h4 { margin: 0; color: #eef5f6; font: 500 clamp(18px, 2.4vw, 25px)/1.2 var(--font-display, sans-serif); letter-spacing: -.025em; }
.history-unit { border: 1px solid #bfd8e12c; padding: 5px 7px; border-radius: 5px; color: #91acbc; font: 10px/1.2 ui-monospace, monospace; }
.history-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #87b3c32a; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg,#183c4b80,#08172488); }
.history-stats > div { padding: 16px 12px; min-width: 0; }
.history-stats > div + div { border-left: 1px solid #87b3c32a; }
.history-stats span { display: block; color: #98b3bf; font-size: 10px; margin-bottom: 8px; }
.history-stats strong { display: block; font: 600 clamp(14px,2.3vw,21px)/1.1 ui-monospace,monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 19px 0 10px; }
.history-tools label { display: grid; gap: 7px; min-width: 0; color: #a7bdc8; font-size: 11px; }
.history-tools input,.history-tools select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #aacad133; border-radius: 7px; background: #06131f; color: #e1eff4; font: 12px/1.2 var(--ui, sans-serif); color-scheme: dark; }
.history-tools input::placeholder { color: #829fad; }
.history-count { color: #9fb6c1; font: 11px/1.6 ui-monospace,monospace; min-height: 18px; margin: 10px 0 13px; }
.history-map { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 6px; }
.history-tile { --outcome: #9cb3c7; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 97px; padding: 9px 2px 7px; border: 1px solid #8cbdce20; border-radius: 7px; background: #112332; color: #e9f2f7; cursor: pointer; }
.history-tile.mid { --outcome: #6cbac9; }
.history-tile.high { --outcome: #85d0c0; }
.history-tile.deep { --outcome: #c9b3ef; }
.history-tile:hover { background: #1c3748; border-color: #b1d9e877; }
.history-tile[aria-pressed="true"] { background: #234656; border-color: #b2e6ea; box-shadow: inset 0 0 0 1px #b2e6ea; }
.history-tile-value { margin-bottom: auto; font: 600 11px/1.2 ui-monospace,monospace; }
.history-bar { width: 16px; max-width: 32%; max-height: 46px; background: linear-gradient(to top,#4b677d,var(--outcome)); border-radius: 3px 3px 0 0; }
.history-distribution { padding: 4px 12px; margin: 10px 0; border: 1px solid #87b3c32a; border-radius: 8px; background: #152d3933; }
.history-distribution > summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 12px; color: #c0d8e2; }
.history-distribution-row { display: grid; grid-template-columns: 86px 1fr 90px; align-items: center; gap: 10px; min-height: 27px; color: #b3cbd7; font: 10px/1.5 ui-monospace,monospace; }
.history-distribution-row > :last-child { text-align: right; }
.history-distribution-track { background: #b5dcea0c; height: 8px; border-radius: 2px; overflow: hidden; }
.history-distribution-bar { display: block; height: 100%; background: #79aebb; }
.history-distribution > p { font-size: 11px; line-height: 1.6; color: #96b0bf; }
.history-tile-no { margin-top: 6px; color: #9ab2c0; font: 8px/1.1 ui-monospace,monospace; }
.history-map-note { margin: 8px 0 15px; font-size: 10px; color: #8ea7b7; line-height: 1.5; }
.history-detail { border: 1px solid #98c5d331; border-radius: 10px; padding: 16px; margin-top: 15px; background: #10263380; min-width: 0; }
.history-detail-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid #99bdcd24; padding-bottom: 13px; }
.history-detail-heading strong { font-size: 13px; }
.history-detail-heading > span { color: #9db6c1; font-size: 10px; }
.history-detail-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 20px; margin: 15px 0 5px; }
.history-detail-values > div { min-width: 0; }
.history-detail-values dt { font-size: 10px; color: #97b2bf; margin-bottom: 6px; }
.history-detail-values dd { margin: 0; color: #deedf2; font: 12px/1.5 ui-monospace,monospace; overflow-wrap: anywhere; }
.history-proof { margin-top: 14px; font-size: 11px; color: #a9c3cd; }
.history-proof summary { cursor: pointer; min-height: 44px; align-content: center; }
.history-proof code { display: block; overflow-wrap: anywhere; line-height: 1.8; color: #bad9e6; }
.history-verify { margin-top: 6px; min-height: 44px; }
.history-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.history-pager button { min-height: 44px; }
.history-pager > span { color: #a1bdca; font: 10px/1.5 ui-monospace,monospace; }
.history-disclosure { margin: 12px 0 0; color: #8da9b8; font-size: 11px; line-height: 1.7; }
.board-row[hidden] { display: none !important; }
.board-row.history-selected { background: #8dcee212; }
.history-row-open { border: 0; background: none; color: #a6cddc; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0; font: inherit; text-align: left; }
.history-row-open[aria-pressed="true"] { color: #e2f8ff; text-decoration: underline; text-underline-offset: 4px; }
.history-explorer :focus-visible,#bets-history-open:focus-visible,.history-row-open:focus-visible { outline: 2px solid #b8e7ee; outline-offset: 3px; }
.ocean-field-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.ocean-field-guide article { border: 1px solid #90bbca28; background: #152b3980; border-radius: 10px; padding: 15px; }
.ocean-field-guide canvas { display: block; width: 90px; height: 90px; margin-bottom: 7px; }
.ocean-field-guide h4 { margin: 5px 0 9px; font-size: 13px; }
.ocean-field-guide p { margin: 0; font-size: 12px; line-height: 1.7; color: #a7c0cc; }
@media(max-width:600px) {
  .dock-history-rounds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .history-map { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
  .history-tile { height: 87px; }
  .history-tile-value { font-size: 10px; }
  .history-heading h4 { font-size: 20px; }
  .history-stats > div { padding: 13px 8px; }
  .history-detail { padding: 12px; }
  .history-tools { gap: 8px; }
}
@media(max-width:360px) {
  .history-map { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .history-stats strong { font-size: 13px; }
  .history-stats span { font-size: 9px; }
  .history-tools { grid-template-columns: 1fr; }
  .ocean-field-guide { grid-template-columns: 1fr; }
}
