@font-face{font-family:NastyPanelLatin;src:url('../lab/assets/wpl/interface.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-024F}
/* WPL 2026-11-02 74.2s / 159.2–178.7s: a charcoal bottom sheet,
   light header, compact result summary, street columns and a bottom pager. */
dialog.cash-history-dialog,dialog:has(.cash-history-panel){box-sizing:border-box;inset:auto 0 0;margin:0 auto;padding:0;width:min(660px,100vw);max-width:100vw;height:min(72dvh,760px);max-height:calc(var(--app-height,100dvh) - var(--safe-top,0px));border:0;border-radius:0;background:#202020;color:#ddd;box-shadow:0 -2px 8px #0004;overflow:hidden;padding-bottom:var(--safe-bottom,0px)}
dialog:has(.cash-history-panel)>.dialog-body,dialog:has(.cash-history-panel)>#hand-history-content{height:100%;display:block;padding:0}
dialog:has(.cash-history-panel) #hand-history-content{height:100%;min-height:0}
.cash-history-panel{height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;background:#202020;color:#d2d2d2;font-family:NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-weight:400;font-synthesis:none;text-align:left;isolation:isolate}
.cash-history-panel,.cash-history-panel *{box-sizing:border-box}
.cash-history-panel [hidden]{display:none!important}
.cash-history-header{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:58px;padding:8px 10px 8px 13px;background:#202020}
.cash-history-header h2{margin:0;color:#fff;font-weight:700;font-size:clamp(23px,6vw,29px);line-height:1.15;letter-spacing:-.025em}
.cash-history-panel button{font:inherit;box-shadow:none;filter:none}
.cash-history-close{display:grid;place-items:center;min-height:42px;width:42px;border:0;border-radius:0;padding:0;background:none;color:#fff;font-size:0!important;font-weight:400!important;line-height:1}
.cash-history-close svg{display:block;width:clamp(15px,3.85vw,20px);height:auto;aspect-ratio:15/16;overflow:hidden}
.cash-history-scroll{flex:1;position:relative;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#1a1a1a}
.cash-history-status{display:grid;place-items:center;min-height:calc(48dvh - 70px);margin:0;padding:30px;color:#a3a3a3;font-size:clamp(13px,3.5vw,17px);line-height:1.6;text-align:center}
.cash-history-summary{display:grid;grid-template-columns:29% minmax(0,1fr);padding:8px 9px 14px;gap:10px;background:#191919}
.cash-history-identity{min-width:0;display:flex;align-items:center;flex-direction:column;gap:25px}
.cash-history-hand-id{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:20px;background:#000;color:#999;padding:3px 9px;font-size:12px;line-height:1.2}
.cash-history-outcome{color:#979797;font-size:clamp(23px,6.5vw,30px);font-weight:700;line-height:1.1;letter-spacing:-.055em}
.cash-history-summary:has(.cash-history-positive) .cash-history-outcome{color:#edc321}
.cash-history-meta{min-width:0;padding-top:5px}
.cash-history-meta-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:clamp(12px,3.08vw,15px);font-weight:400;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap}
.cash-history-positive,.cash-history-gold{color:#f0c720}.cash-history-negative{color:#ec3033}
.cash-history-summary-cards{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.cash-history-cards{display:flex;align-items:center;gap:2px;min-width:0;flex-shrink:0}
.cash-history-card{display:block;width:23px;height:auto;aspect-ratio:120/168;object-fit:contain;border-radius:3px}
.cash-history-summary-cards .cash-history-card{width:clamp(17px,4.8vw,29px)}
.cash-history-summary-cards .cash-history-board{gap:2px}.cash-history-undisclosed{font-size:10px;color:#777;max-width:30%;line-height:1.3}
.cash-history-streets{display:grid;grid-template-columns:repeat(var(--history-columns,5),minmax(78px,1fr));align-items:stretch;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#1b1b1b}
.cash-history-street{--history-name-width:78px;min-width:0;background:#1a1a1a}.cash-history-street:nth-child(even){background:#202020}
.cash-history-street-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;min-height:54px;padding:8px 3px;background:#303030;font-variant-numeric:tabular-nums}
.cash-history-street-heading h3{margin:0;color:#ddd;font-size:12px;font-weight:400;line-height:1.3}
.cash-history-street-pot{color:#bf953a;font-size:11.5px;font-weight:400;line-height:1.2;white-space:nowrap}
.cash-history-rows{padding:8px 4px 10px;min-height:115px}
.cash-history-action{--history-bubble-center:29px;display:flex;align-items:flex-start;gap:3px;min-height:70px;padding:5px 0 11px}
.cash-history-person{display:flex;flex-direction:column;align-items:flex-start;min-width:35px;max-width:45px;flex:none}
.cash-history-name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b8b8b;font-size:10px;font-weight:400;line-height:1.35}
/* Names share the street's upper gutter, not the narrow portrait width.
   Overflowing the fixed portrait column only on this text line preserves
   the source avatar and action-bubble anchors below it. */
.cash-history-action .cash-history-name{width:calc(var(--history-name-width) - 8px);max-width:none;flex:none}
.cash-history-portrait{position:relative;margin-bottom:13px;width:31px;height:31px}
.cash-history-avatar{display:block;object-fit:cover;width:31px;height:31px;border:0;border-radius:0}
.cash-history-position{position:absolute;inset:auto -1px -12px;background:#315d77;color:#eee;font-size:10px;line-height:14px;height:14px;white-space:nowrap;text-align:center;border-radius:2px}
.cash-history-action-bubble{position:relative;top:var(--history-bubble-center);transform:translateY(-50%);display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;width:max-content;min-height:0;padding:2px 4px 3px;border-radius:3px;background:#ddd;color:#111;text-align:left;line-height:1.07}
.cash-history-action-bubble:not(:has(.cash-history-action-amount)){padding-top:2px;padding-bottom:2px}
.cash-history-action-bubble::before{content:'';position:absolute;left:-4px;top:calc(50% - 4px);border-top:4px solid transparent;border-bottom:4px solid transparent;border-right:5px solid #ddd}
.cash-history-action-label{font-weight:700;font-size:10.5px;white-space:nowrap}
.cash-history-action[data-action='올인'] .cash-history-action-label{color:#ab2214}.cash-history-action[data-action='콜'] .cash-history-action-label{color:#235b91}
.cash-history-action[data-action='체크'] .cash-history-action-label{color:#268d20}.cash-history-action[data-action='벳'] .cash-history-action-label{color:#bd830d}
.cash-history-action-amount{font-size:10.5px;font-weight:600;white-space:nowrap;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.cash-history-raise-to{font-size:8px;line-height:1.2;white-space:nowrap;color:#555}
.cash-history-board-row{padding:3px 0 7px}.cash-history-board-row .cash-history-card{width:17px}
.cash-history-result-heading{border-top:1px solid #363636;color:#777;font-size:11px;font-weight:400;margin:6px 0 8px;padding-top:7px}
.cash-history-result{padding:4px 0 12px}.cash-history-result .cash-history-person{max-width:100%;width:100%;flex-direction:row;align-items:center;gap:4px}.cash-history-result .cash-history-name{order:2;flex:1}.cash-history-result .cash-history-portrait{width:25px;height:25px;margin-bottom:12px}.cash-history-result .cash-history-avatar{width:25px;height:25px}.cash-history-result .cash-history-position{font-size:8px;height:12px;line-height:12px;bottom:-10px}
.cash-history-result-detail{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:3px}.cash-history-result-detail .cash-history-card{width:21px}.cash-history-rank{font-size:10px;color:#b3b3b3;line-height:1.3}.cash-history-payout{display:block;color:#f2c418;font-size:12px;text-align:center;font-weight:800;line-height:1.2;white-space:nowrap}.cash-history-result-fold,.cash-history-refund{font-size:9px;color:#777;line-height:1.3}
.cash-history-verification{padding:10px 13px;background:#202020;border-top:1px solid #333}.cash-history-verification>summary{color:#a7a7a7;font-size:12px;cursor:pointer}.cash-history-verification>div{display:flex;flex-direction:column;gap:8px;padding-top:12px}.cash-history-verification pre{max-width:100%;max-height:200px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}.cash-history-verification button,.cash-history-verification .button{min-height:35px;font-size:11px}
.cash-history-footer{flex:none;background:#202020;padding:0 16px 13px}.cash-history-tools{display:flex;align-items:center;justify-content:flex-end;min-height:40px;padding:5px 9px}.cash-history-download{width:36px;min-height:32px;display:grid;place-items:center;padding:4px;border:0;border-radius:0;background:none;color:#888}.cash-history-download svg{width:23px;height:23px;fill:currentColor}.cash-history-download:disabled{opacity:.35}
.cash-history-pager{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;column-gap:13px;padding:7px 25px 1px}.cash-history-page-arrow{display:grid;place-items:center;width:18px;height:18px;min-height:18px;border:0;border-radius:50%;padding:0;background:#9a9a9a;color:#e4e4e4;font-size:11px!important;font-weight:400!important;line-height:1}.cash-history-page-arrow:disabled{opacity:1;background:#8a8a8a;color:#ccc;cursor:default}.cash-history-page-track{display:block;width:100%;height:15px;border-radius:13px;background:#111}.cash-history-page-count{display:block;text-align:center;font-variant-numeric:tabular-nums;font-size:13px;color:#ddd;line-height:1.5}
.cash-history-panel button:focus-visible,.cash-history-panel summary:focus-visible,.cash-history-streets:focus-visible{outline:2px solid #ffcd35;outline-offset:2px}
.cash-history-page-track{appearance:none;-webkit-appearance:none;min-width:0;margin:0;padding:0;border:0;cursor:pointer;box-shadow:none;touch-action:pan-y}
.cash-history-page-track::-webkit-slider-runnable-track{height:15px;background:#111;border-radius:13px}
.cash-history-page-track::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin-top:-2.5px;border:0;border-radius:50%;background:#a5a5a5;box-shadow:0 1px 2px #0006}
.cash-history-page-track::-moz-range-track{height:15px;background:#111;border:0;border-radius:13px}
.cash-history-page-track::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:#a5a5a5}
.cash-history-page-track:disabled{cursor:default}.cash-history-page-track:disabled::-webkit-slider-thumb{visibility:hidden}.cash-history-page-track:disabled::-moz-range-thumb{visibility:hidden}
.cash-history-page-track:focus-visible{outline:2px solid #ffcd35;outline-offset:3px}
.cash-history-more,.cash-history-retry{display:block;width:100%;min-height:30px;margin:3px auto 0;border:0;border-radius:3px;background:#303030;color:#ddd;font-size:12px!important;font-weight:400!important;line-height:1.3}
.cash-history-more:disabled,.cash-history-retry:disabled{opacity:.5}
/* Real mobile width can be smaller than five readable street columns. Keep
   amounts complete in an explicit inner scroll, never outside the sheet. */
.cash-history-streets{max-width:100%;min-width:0;touch-action:pan-x pan-y}
.cash-history-meta-row>span{min-width:0;overflow-wrap:anywhere}
.cash-history-meta-row>span:first-child{white-space:normal}
.cash-history-meta-row>span:last-child{white-space:normal;text-align:right}
.cash-history-pan-hint{margin:0;padding:5px 9px;color:#a5adb7;background:#202020;font-size:10px;line-height:1.4}
.cash-history-tools:has(.cash-history-download[hidden]){display:none}
@media(max-width:499px){
  /* The source portrait is about 65px at 1080px, or 23–24px at 390px.
     Let a genuinely long amount widen its own column and scroll the street
     grid; never crop the amount or squeeze its typography to make it fit. */
  .cash-history-streets{grid-template-columns:repeat(var(--history-columns,5),minmax(max-content,1fr))}
  .cash-history-header{height:38px;min-height:38px;padding:0 0 0 12px}
  .cash-history-header h2{font-size:18px;line-height:1.15}
  .cash-history-close{width:36px;min-height:36px;height:36px;font-size:0!important}
  .cash-history-street{min-width:78px}
  .cash-history-street-heading{min-height:46px;padding:6px 3px}
  .cash-history-action{--history-bubble-center:24.15px;min-width:max-content;gap:3px}
  .cash-history-person{width:26px;min-width:26px;max-width:26px}
  .cash-history-portrait,.cash-history-avatar{width:24px;height:24px}
  .cash-history-name{font-size:9px}
  .cash-history-position{font-size:9px;height:12px;line-height:12px;bottom:-11px}
  .cash-history-action-bubble{flex:none;min-width:0;width:max-content}
  .cash-history-result .cash-history-person{width:100%;min-width:0;max-width:100%}
  /* The source pager sits above a deliberate lower breathing area, rather
     than being pushed against the phone's bottom edge. Keep the track and
     its count centered on the sheet, independently of the download icon. */
  .cash-history-footer{padding-bottom:clamp(42px,11.5dvh,104px)}
  .cash-history-page-count{font-size:12px}
}
@media(min-width:500px){.cash-history-streets{grid-template-columns:repeat(var(--history-columns,5),minmax(113px,1fr))}.cash-history-street{--history-name-width:113px}.cash-history-action-label,.cash-history-action-amount{font-size:13px}.cash-history-name{font-size:11px}.cash-history-person{min-width:39px}.cash-history-result-detail .cash-history-card{width:25px}.cash-history-payout{font-size:14px}}
@media(max-width:360px){.cash-history-summary{grid-template-columns:27% minmax(0,1fr);gap:7px}.cash-history-meta-row{font-size:11px}.cash-history-summary-cards{gap:4px}.cash-history-hand-id{font-size:10px}.cash-history-summary-cards .cash-history-card{width:17px}}
@media(orientation:landscape) and (max-height:550px){dialog:has(.cash-history-panel){height:90dvh;width:min(660px,86vw)}.cash-history-header{min-height:46px;padding-top:2px;padding-bottom:2px}.cash-history-summary{padding-top:3px;padding-bottom:8px}.cash-history-footer{padding-bottom:5px}.cash-history-tools{min-height:28px;padding-top:0;padding-bottom:0}.cash-history-summary-cards{margin-top:5px}.cash-history-status{min-height:170px}}
@font-face{font-family:NastyPanelKR;src:url('./fidelity/fonts/chat63.woff2') format('woff2');font-weight:100 900;font-display:swap}
.cash-history-panel{font-family:NastyPanelKR,Arial,sans-serif}
.cash-history-close{background:url('./fidelity/source-ui/icon_x.png') center/clamp(15px,3.85vw,20px) auto no-repeat}
.cash-history-close>svg{visibility:hidden}
/* Native vertical history title30, street headings18. Horizontal uses its
   separate18/15 source type sizes and the independent desktop layout. */
@media(max-width:899px){.cash-history-header h2{font-size:calc(30px * var(--native-ui-scale,.6287));letter-spacing:0}.cash-history-street h3{font-size:calc(18px * var(--native-ui-scale,.6287))}}
/* PC57 and ingame_HandHistory_H: original Gmarket Medium SDF title,
   metadata16, street15. Keep the mobile sheet and accepted records intact. */
.cash-history-title-native77{display:none}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-header{height:50px;min-height:50px;padding:8px 2px 8px 16px}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-header h2{font-size:18px;font-weight:500;line-height:1.2;letter-spacing:0}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog h2[data-native-pc-title77=true] .cash-history-title-text77{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-title-native77{display:block;transform:translateY(3px);pointer-events:none}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-title-native77 svg{display:block;width:auto;height:20px;overflow:visible}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-close{width:34px;height:34px;min-width:34px;min-height:34px;padding:0;background:url('./fidelity/source-ui/desktop76/btn_x_pc.png') center/18px 18px no-repeat}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-meta-row{font-size:16px;font-weight:400;line-height:1.4}
body[data-layout-profile="desktop-wpl-v1"] dialog#record-dialog .cash-history-street-heading h3{font-size:15px;font-weight:400;line-height:1.3;letter-spacing:0}
/* Centered portrait content uses its own scale, never desktop media widths. */
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog{--frame-history-u:calc(1px * var(--table-content-scale,1))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-header{height:calc(38 * var(--frame-history-u));min-height:calc(38 * var(--frame-history-u));padding:0 0 0 calc(12 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-header h2{font-size:calc(18 * var(--frame-history-u));line-height:1.15}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-close{width:calc(36 * var(--frame-history-u));min-width:calc(36 * var(--frame-history-u));height:calc(36 * var(--frame-history-u));min-height:calc(36 * var(--frame-history-u));background-size:calc(15.015 * var(--frame-history-u)) auto}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-summary{grid-template-columns:29% minmax(0,1fr);padding:calc(8 * var(--frame-history-u)) calc(9 * var(--frame-history-u)) calc(14 * var(--frame-history-u));gap:calc(10 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-summary-cards{gap:calc(10 * var(--frame-history-u));margin-top:calc(12 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-meta-row{font-size:calc(12.012 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-summary-cards .cash-history-card{width:calc(18.72 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-street{--history-name-width:calc(78 * var(--frame-history-u));min-width:calc(78 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-street h3{font-size:calc(18px * var(--table-content-native-scale,.6287))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-action-label,body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-action-amount{font-size:calc(10.5 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-name{font-size:calc(9 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-tools{min-height:calc(40 * var(--frame-history-u));padding:calc(5 * var(--frame-history-u)) calc(9 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-status{min-height:calc(335.6 * var(--frame-history-u));font-size:calc(13.65 * var(--frame-history-u))}
body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#record-dialog .cash-history-footer{padding-bottom:calc(var(--cash-history-footer-padding,8px) * var(--table-content-scale,1))}
