/* The counter keeps its four-column history table at every viewport width. */
.bgp-profile .bgp-history-table {
  width:100%; border-collapse:collapse; table-layout:auto; margin:6px 0; font:inherit; font-size:12px;
}
.bgp-profile .bgp-history-table :is(th,td) {
  border:0; border-bottom:1px solid var(--bgp-line); background:transparent;
  color:var(--bgp-ink); padding:7px 8px; text-align:left; font:inherit; vertical-align:middle;
}
.bgp-profile .bgp-history-table thead th {
  font-size:10px; font-weight:500; letter-spacing:1px; background:rgba(255,255,255,.02); color:var(--bgp-muted);
}
.bgp-profile .bgp-history-table tbody th {font-weight:normal; white-space:normal;}
.bgp-history-stamp time {white-space:nowrap;}
.bgp-history-stamp .bgp-history-missing {font-size:10px; color:var(--bgp-muted);}
.bgp-history-table .bgp-character-name {white-space:normal;}
.bgp-history-table .bgp-character-name .bgp-role {
  padding:1px 6px; border-radius:3px; font:normal 9px "DotGothic16",monospace; letter-spacing:1px;
}
.bgp-history-table .bgp-character-name .bgp-role-BOM {background:#a8c6ff33;color:#a8c6ff;}
.bgp-history-table .bgp-character-name .bgp-role-ATK {background:#ff8b5a33;color:#ff8b5a;}
.bgp-history-table .bgp-character-name .bgp-role-SHO {background:#8be05a33;color:#8be05a;}
.bgp-history-table .bgp-character-name .bgp-role-BLO {background:#ff7ec833;color:#ff7ec8;}
.bgp-history-platform,.bgp-history-ambiguous {
  display:inline-block; white-space:nowrap; padding:1px 6px; border:1.5px solid currentColor;
  border-radius:3px; font-size:10px; font-weight:700; letter-spacing:.5px;
}
.bgp-history-platform[data-platform="AC"] {color:var(--bgp-cyan);background:rgba(0,209,255,.2);}
.bgp-history-platform[data-platform="KONASTE"] {color:var(--bgp-yellow);background:rgba(255,210,80,.2);}
.bgp-history-platform[data-platform="__none__"] {color:var(--bgp-muted);border:1px dashed currentColor;background:#ffffff0f;}
.bgp-history-ambiguous {color:var(--bgp-pink);background:rgba(255,120,180,.18);border-width:1px;font-size:9px;}
.bgp-history-ambiguous-row {background:rgba(255,120,180,.04);}
.bgp-history-action {width:1%;}
.bgp-profile .bgp-history-action button {font-size:11px;white-space:nowrap;padding:4px 7px;}
.bgp-history-detail dl {
  display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:4px 0;
}
.bgp-history-detail dt {color:var(--bgp-muted);}
.bgp-history-detail dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}
.bgp-profile .bgp-history-navigation {justify-content:center;}
.bgp-history-navigation .bgp-page-count:empty {display:none;}
.bgp-history {font-family:"M PLUS 1 Code","Hiragino Kaku Gothic ProN",sans-serif;}
.bgp-history-table .bgp-outcome-2 {font-weight:normal;}
@container (max-width:540px) {
  .bgp-history-stamp:has(.bgp-history-date) .bgp-history-clock {display:block;}
}
