/* A single public archive surface; the compact in-game history is independent. */
#wallet-modal.hull-history-open .wallet-sheet { width: min(1000px, 100%); background: #10232d; }
#wallet-modal.hull-history-open .wallet-heading { margin: 0 52px 14px 0; min-height: 0; }
#wallet-modal.hull-history-open .wallet-heading-mark,
#wallet-modal.hull-history-open .wtabs,
#wallet-modal.hull-history-open #board-summary { display: none; }
#wallet-modal.hull-history-open .wallet-heading .sheet-title { font-size: 36px; letter-spacing: -.04em; }
#wallet-modal.hull-history-open .wallet-eyebrow { font-size: 9px; letter-spacing: .12em; }
#wallet-modal.hull-history-open #pane-board { display: flex; flex-direction: column; }
#wallet-modal.hull-history-open #pane-board.hidden { display: none; }
#wallet-modal.hull-history-open #pane-board .board-periods { margin: 6px 0 14px; align-self: flex-start; padding: 3px; gap: 3px; background: #0b1b25; border: 1px solid #36505c; border-radius: 7px; }
#wallet-modal.hull-history-open .board-periods button { min-height: 44px; min-width: 72px; padding: 8px 12px; white-space: nowrap; border: 0; border-radius: 4px; background: none; color: #aac0c9; font: 500 12px var(--ui); }
#wallet-modal.hull-history-open .board-periods button[aria-pressed="true"] { color: #e4eee7; background: #284139; box-shadow: none; }
#wallet-modal.hull-history-open .board-views { order: 2; margin: 25px 0 0; padding: 13px 0 0; border-top: 1px solid #304954; justify-content: flex-start; gap: 20px; }
#wallet-modal.hull-history-open .board-views button { flex: none; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #b1c6d0; font: 12px var(--ui); }
#wallet-modal.hull-history-open .board-views [data-board-view="rounds"] { display: none; }
#wallet-modal.hull-history-open #board-rounds-note,
#wallet-modal.hull-history-open #board-rounds-more { display: none; }
.round-archive { margin: 0; }
.round-archive .archive-intro { margin: 0 0 20px; color: #b7cbd1; font: 14px/1.65 var(--ui); }
.archive-toolbar { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(135px, .65fr); gap: 12px; align-items: center; }
.archive-view { display: flex; padding: 3px; border: 1px solid #3b535d; border-radius: 7px; background: #0a1a24; }
.archive-view button { min-height: 44px; padding: 8px 19px; border: 0; border-radius: 4px; background: none; color: #a8c0ca; font: 500 12px var(--ui); cursor: pointer; }
.archive-view button[aria-pressed="true"] { background: #2a454f; color: #e6eeee; }
.archive-toolbar label { min-width: 0; margin: 0; display: block; }
.archive-toolbar input, .archive-toolbar select { box-sizing: border-box; width: 100%; min-width: 0; height: 46px; padding: 11px 13px; border: 1px solid #3b535d; border-radius: 7px; background: #0a1a24; color: #dbe7e7; font: 13px var(--ui); color-scheme: dark; }
.archive-toolbar input::placeholder { color: #9eb6c1; }
.archive-scope { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 49px; }
.round-archive .history-count { margin: 12px 0; font: 12px/1.5 var(--ui); color: #aac0c9; }
.archive-reset { min-height: 44px; border: 0; background: none; padding: 0; color: #cee4db; font: 12px var(--ui); cursor: pointer; }
.archive-chart { border: 1px solid #38525e; border-radius: 9px; background: #0b1c27; padding: 16px 12px 11px; }
.archive-chart-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; padding: 0 5px 13px; color: #acbfca; font: 11px/1.5 var(--ui); }
.round-archive .history-map { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 13px 5px; }
.round-archive .history-tile { --outcome: #a7bbc8; height: 115px; padding: 8px 3px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; box-shadow: none; }
.round-archive .history-tile.mid { --outcome: #8dbbc2; }
.round-archive .history-tile.high { --outcome: #a8d5c7; }
.round-archive .history-tile.deep { --outcome: #d7c48f; }
.round-archive .history-tile-value { margin: 0 0 9px; color: #e2e9e7; font: 500 12px/1.25 var(--ui); font-variant-numeric: tabular-nums; }
.archive-bar-track { display: flex; align-items: flex-end; justify-content: center; height: 60px; width: 100%; border-bottom: 1px solid #3d5360; }
.round-archive .history-bar { display: block; width: 18px; max-width: 65%; max-height: none; background: var(--outcome); opacity: .84; border-radius: 3px 3px 0 0; }
.round-archive .history-tile-no { margin-top: 9px; color: #a7bfca; font: 10px/1 var(--ui); }
.round-archive .history-tile:hover { background: #203843; }
.round-archive .history-tile[aria-pressed="true"] { border-color: #badacb; background: #253e40; }
.round-archive .history-tile[aria-pressed="true"] .history-bar { opacity: 1; }
.round-archive .history-map-note { margin: 15px 5px 0; font: 11px/1.6 var(--ui); color: #a2bac7; }
.archive-list-heading { display: flex; justify-content: space-between; padding: 12px 4px; color: #a4bdc8; font: 11px var(--ui); border-bottom: 1px solid #3b535e; }
#pane-board .round-archive #board-round-rows { margin: 0; }
#pane-board .round-archive .board-row.round { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 1px; padding: 9px 4px; margin: 0; border: 0; border-bottom: 1px solid #2c4652; border-radius: 0; background: none; }
#pane-board .round-archive .board-row.round[hidden] { display: none; }
#pane-board .round-archive .board-over, #pane-board .round-archive .board-seed { display: none; }
#pane-board .round-archive .history-row-open { grid-column: 1; min-height: 44px; color: #d2e2e7; font: 13px var(--ui); width: fit-content; }
#pane-board .round-archive .board-mult { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #d7e7e2; font: 500 18px var(--ui); }
.archive-time { grid-column: 1; font: 11px/1.5 var(--ui); color: #9db7c3; }
#pane-board .round-archive .board-row.history-selected { background: #233c412e; }
.round-archive .history-detail { position: relative; padding: 19px; margin: 16px 0 0; border: 1px solid #557974; border-radius: 8px; background: #162d36; }
.round-archive .history-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px; padding: 0 0 14px; gap: 5px 12px; }
.round-archive .history-detail-heading > strong, .round-archive .history-detail-heading > span { grid-column: 1; }
.round-archive .history-detail-heading strong { font: 600 15px var(--ui); color: #e3ede8; }
.round-archive .history-detail-heading > span { font: 12px/1.5 var(--ui); }
.archive-detail-close { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 44px; height: 44px; border: 0; background: none; color: #bcd2d7; font: 24px var(--ui); cursor: pointer; }
.round-archive .history-detail-values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.round-archive .history-detail-values dt { font: 11px/1.5 var(--ui); color: #adc4cd; }
.round-archive .history-detail-values dd { font: 500 20px/1.4 var(--ui); color: #e2ebe5; }
.round-archive .history-detail-values > :first-child dd { color: #b8dfcd; }
.round-archive .history-proof { margin: 16px 0 0; border-top: 1px solid #3f585e; }
.round-archive .history-proof summary { color: #b9cfd7; font: 12px var(--ui); }
.round-archive .history-proof code { padding-top: 8px; }
.round-archive .archive-record-note { color: #b7c9cd; font-size: 12px; margin-bottom: 0; }
.round-archive .history-pager { margin: 17px 0 0; }
.round-archive .history-pager button { min-width: 95px; padding: 10px 14px; min-height: 44px; border-radius: 6px; font: 12px var(--ui); background: #19323e; border: 1px solid #45606b; color: #dae7e5; }
.round-archive .history-pager button:disabled { opacity: .4; }
.round-archive .history-pager > span { font: 12px var(--ui); }
.round-archive .archive-scope-note { color: #a5bdc7; font: 11px/1.6 var(--ui); margin: 12px 0 18px; }
.round-archive .history-distribution { margin: 0; border: 0; border-top: 1px solid #344f5b; border-radius: 0; background: none; padding: 5px 0; }
.round-archive .history-distribution summary { min-height: 44px; color: #c7d8db; font: 13px var(--ui); }
.round-archive .history-distribution-row { font-family: var(--ui); font-size: 11px; min-height: 35px; grid-template-columns: 90px minmax(0, 1fr) 110px; }
.round-archive .history-distribution-bar { background: #aacac5; }
.round-archive .history-disclosure { margin: 13px 0 0; color: #a8bec8; font: 12px/1.6 var(--ui); }
.archive-empty, .archive-error { margin: 16px 0; padding: 17px; border: 1px solid #4a6571; border-radius: 8px; color: #c2d4dc; font: 13px/1.65 var(--ui); }
.round-archive :is(button, input, select, summary):focus-visible { outline: 2px solid #bee5db; outline-offset: 2px; }
@media(max-width: 700px) {
  #wallet-modal.hull-history-open .wallet-sheet { padding: 24px 18px; }
  #wallet-modal.hull-history-open .wallet-heading .sheet-title { font-size: 30px; }
  .round-archive .archive-intro { font-size: 13px; margin-bottom: 15px; }
  .archive-toolbar { grid-template-columns: 1fr 1fr; gap: 9px; }
  .archive-view { grid-column: 1 / -1; justify-self: start; }
  .archive-view button { padding-inline: 24px; }
  .archive-toolbar input, .archive-toolbar select { font-size: 16px; padding: 10px; }
  .archive-scope { gap: 6px; }
  .round-archive .history-count { font-size: 11px; }
  .archive-chart { padding: 12px 6px; }
  .round-archive .history-map { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px 2px; }
  .round-archive .history-tile { height: 94px; padding-inline: 1px; }
  .round-archive .history-tile-value { font-size: 11px; }
  .archive-bar-track { height: 44px; }
  .round-archive .history-tile-no { font-size: 10px; }
  .round-archive .history-detail { padding: 15px; }
  .round-archive .history-detail-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .round-archive .history-detail-values dd { font-size: 18px; }
  .round-archive .history-pager { gap: 7px; }
  .round-archive .history-pager button { min-width: 82px; padding-inline: 9px; }
  .round-archive .history-pager > span { font-size: 10px; text-align: center; }
  .round-archive .history-distribution-row { grid-template-columns: 82px minmax(0, 1fr) 94px; font-size: 10px; gap: 7px; }
}
@media(max-width: 360px) {
  .round-archive .history-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archive-toolbar { grid-template-columns: minmax(0, 1fr); }
  .archive-scope { flex-wrap: wrap; gap: 0; }
  .round-archive .history-tile-value { font-size: 12px; }
}

#wallet-modal.hull-history-open #wallet-net { margin: 0 0 15px; padding: 0; border: 0; background: none; color: #b3c8cd; font: 11px/1.5 var(--ui); }
