#account-history-dialog { width:min(1050px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:0; border:1px solid #866990; border-radius:14px; color:#f7efff; background:#191321; z-index:60; }
#account-history-dialog::backdrop { background:#090412cc; backdrop-filter:blur(4px); }
.account-history-shell { display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; height:min(850px,calc(100dvh - 36px)); padding:24px; gap:14px; }
.account-history-shell header { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.account-history-shell h2 { font-size:1.8rem; color:#f6d69b; }
.account-history-shell header p { margin:7px 0 0; font-size:.9rem; }
.account-history-shell .eyebrow { font-size:.72rem; margin-bottom:8px; }
#history-close { min-width:44px; font-size:1.5rem; }
.history-filter-bar { display:flex; gap:8px; flex-wrap:wrap; }
.history-filter-bar .quiet { min-height:42px; color:#e4d7ef; border-color:#594366; background:#2c2038; }
.history-filter-bar [aria-pressed=true] { background:#dab674; border-color:#f7d79c; color:#291a10; }
#history-refresh { margin-left:auto; }
.history-filter-note { font-size:.8rem; margin:0; color:#b8a7c8; }
.history-results { min-height:0; overflow:auto; overscroll-behavior:contain; padding-right:4px; }
.account-history-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.account-history-row { border:1px solid #cab9db; border-left:5px solid #88709d; border-radius:9px; padding:14px 16px; color:#292035; background:#ece7f3; }
.history-purchase { background:#ddf6e3; border-color:#a7d9b5; border-left-color:#299351; }
.history-redeem { background:#fbe1e3; border-color:#e9b1b9; border-left-color:#c54659; }
.history-play,.history-round { background:#ffe8cb; border-color:#e6bd8c; border-left-color:#d47a22; }
.history-bigwin { background:#eadcff; border-color:#c5a2ed; border-left-color:#8840c4; }
.history-jackpot { background:#dcefff; border-color:#9ac8e6; border-left-color:#2187bd; }
.history-row-top { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.history-row-top>div { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.history-kind { border:1px solid currentColor; border-radius:5px; padding:2px 7px; font-size:.75rem; font-weight:700; }
.history-row-top time { color:#56455f; font-size:.8rem; white-space:nowrap; }
.history-amounts { display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; margin:12px 0 6px; font-size:.9rem; }
.history-amounts strong { margin-left:5px; color:#21172b; font-size:1.05rem; }
.history-multiple { font-weight:800; }
.account-history-row p { color:#56465d; margin:7px 0; font-size:.85rem; }
.account-history-row .history-legacy { font-size:.78rem; }
.history-play-detail { border-top:1px solid #47315d25; margin-top:10px; padding-top:8px; }
.history-play-detail>summary { cursor:pointer; font-size:.82rem; font-weight:600; overflow-wrap:anywhere; }
.history-detail-body { margin-top:12px; }
.history-feature-events { list-style:none; padding:0; display:grid; gap:8px; }
.history-feature-events>li { border:1px solid #3520452b; border-radius:6px; padding:10px; }
.history-feature-events>li>span { float:right; font-weight:600; }
.history-reel-board {
  display:grid; grid-template-columns:repeat(var(--reel-count),minmax(0,1fr)); align-items:end;
  gap:clamp(3px,1vw,10px); width:min(100%,480px); margin:10px auto 0; padding:8px;
  background:#261a32; border:1px solid #755884; border-radius:8px;
}
.history-reel { display:grid; gap:clamp(3px,1vw,8px); }
.history-symbol {
  position:relative; display:grid; place-items:center; min-width:0; aspect-ratio:1; padding:3px;
  border:1px solid #735982; border-radius:4px; background:#3a2948; color:#fff1d5;
  font-size:clamp(.56rem,2vw,.83rem); text-align:center; overflow-wrap:anywhere; overflow:hidden;
}
.history-symbol img { width:100%; height:100%; min-height:0; object-fit:contain; }
.history-symbol .history-atlas-symbol { position:absolute; width:400%; height:300%; max-width:none; object-fit:fill; }
.history-symbol [hidden] { display:none; }
.history-data-group { margin-top:8px; padding:8px; background:#ffffff45; border-radius:6px; }
.history-data-group summary { cursor:pointer; font-size:.85rem; }
.history-data-group dl { margin:8px 0 0; }
.history-field { display:grid; grid-template-columns:minmax(80px,1fr) minmax(0,2fr); gap:12px; padding:3px; font-size:.8rem; }
.history-field dd { margin:0; overflow-wrap:anywhere; }
.history-jackpot-details { display:grid; gap:4px; padding:12px; background:#c0e3fb; border-radius:7px; }
.history-jackpot-details span { font-size:.8rem; }
.history-empty { text-align:center; padding:36px 18px; color:#c7b8d3; }
.record-pagination { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; padding-top:8px; }
.record-pagination>span { font-size:.85rem; color:#c2b0d0; }
.record-pagination>div { display:flex; gap:6px; }
.record-pagination .quiet { min-width:44px; padding:5px 10px; background:#30213b; color:#f5e9ff; border:1px solid #70557c; font-size:1.2rem; }
.record-pagination button:disabled { opacity:.35; cursor:default; }
.pos-history-button svg { width:20px; height:20px; display:block; }
.pos-workspace .pos-history-button { min-width:40px; min-height:40px; padding:8px; }
@media(max-width:600px) {
  .account-history-shell { padding:15px; gap:10px; }
  .history-filter-bar { gap:5px; }.history-filter-bar .quiet { padding:6px 10px; font-size:.82rem; }
  .history-filter-note { font-size:.72rem; }
  .history-row-top { flex-direction:column; gap:7px; }
  .account-history-row { padding:12px; }.history-amounts { gap:10px; }
  .record-pagination { justify-content:center; }.record-pagination>span { width:100%; text-align:center; }
  #history-refresh { margin-left:0; }
}
