@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's neutral lower tray, adapted to accepted, typed table conversation.
   WplInterface is a 429-glyph subset: 채 is absent while 테/이/블/팅 exist.
   Keep this whole panel on one complete Hangul face instead of per-letter fallback. */
/* Use the same opaque, square utility sheet and neutral controls as settings
   and hand history. Typed conversation is a product adaptation of WPL chat. */
dialog.ui-sheet#chat-dialog{width:min(560px,100vw);height:min(44dvh,390px);max-height:calc(var(--app-height,100dvh) - var(--safe-top,0px) - 12px);padding:0;border:0;border-radius:0;background:#202020;box-shadow:0 -2px 8px #0004;color:#ddd;font-family:NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-synthesis:none;overflow:hidden;container-type:inline-size}
#chat-dialog,#chat-dialog *{box-sizing:border-box}
dialog.ui-sheet#chat-dialog .dialog-body{display:flex;flex-direction:column;height:100%;min-height:0;padding:0 16px calc(10px + var(--safe-bottom,0px));gap:0;background:#202020}
dialog.ui-sheet#chat-dialog .dialog-heading{flex:none;height:51px;min-height:51px;margin:0 -6px 0 3px;gap:10px;border:0;padding:0;background:#202020}
dialog.ui-sheet#chat-dialog .dialog-heading h2{margin:0;font:800 22px/1.15 NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;letter-spacing:-.025em;color:#fff}
dialog.ui-sheet#chat-dialog .dialog-heading button{position:relative;display:block;width:38px;min-width:38px;height:42px;min-height:42px;margin:0;padding:0;background:none;border:0;border-radius:0;color:#fff;font-size:0;box-shadow:none;filter:none}
dialog.ui-sheet#chat-dialog .dialog-heading button::before,dialog.ui-sheet#chat-dialog .dialog-heading button::after{content:'';position:absolute;left:50%;top:50%;width:18px;height:2.5px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
dialog.ui-sheet#chat-dialog .dialog-heading button::after{transform:translate(-50%,-50%) rotate(-45deg)}
dialog.ui-sheet#chat-dialog .chat-log{flex:1;min-height:50px;max-height:none;margin:0 -16px;gap:12px;padding:12px 16px;scrollbar-width:thin;scrollbar-color:#505050 transparent;scrollbar-gutter:stable;background:#1a1a1a}
#chat-dialog .chat-message{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;align-self:flex-start;gap:8px;width:max-content;max-width:min(95%,460px);padding:0;border:0;border-radius:0;background:none;line-height:1.35}
#chat-dialog .chat-message.own{grid-template-columns:minmax(0,1fr) 30px;align-self:flex-end;background:none}
#chat-dialog .chat-avatar{width:30px;min-width:30px;height:30px;min-height:30px;margin-top:2px;padding:0;border:0;border-radius:50%;background:#3b3b3b;color:#ddd;font:600 12px/1 NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;box-shadow:none}
#chat-dialog .chat-body{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;gap:4px 9px;padding:8px 10px;border:0;border-radius:2px;background:#303030;box-shadow:none}
#chat-dialog .chat-message.own .chat-avatar{grid-column:2;grid-row:1}
#chat-dialog .chat-message.own .chat-body{grid-column:1;grid-row:1;background:#3c3c3c}
#chat-dialog .chat-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bdbdbd;font-size:11px;font-weight:400;line-height:1.3}
#chat-dialog .chat-text{grid-column:1/-1;min-width:0;margin:0;color:#efefef;font-size:14px;font-weight:400;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;letter-spacing:-.01em}
#chat-dialog .chat-time{align-self:center;justify-self:end;color:#999;font:400 10px/1.3 Arial,sans-serif;white-space:nowrap}
#chat-dialog .chat-empty{margin:auto;padding:10px;color:#999;font-size:13px;line-height:1.5;text-align:center}
#chat-dialog #chat-form{flex:none;gap:8px;padding-top:10px;border:0;background:#202020}
#chat-dialog #chat-input{min-height:42px;height:42px;background:#111;border:1px solid #454545;color:#efefef;border-radius:0;font:400 16px/1.3 NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;padding:8px 10px;box-shadow:none}
#chat-dialog #chat-input::placeholder{color:#888}
#chat-dialog #chat-send{min-height:42px;height:42px;min-width:68px;padding:0 12px;border:0;border-radius:0;background:#565656;color:#f0f0f0;font:400 14px/1.2 NastyPanelLatin,Arial,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;box-shadow:none}
#chat-dialog #chat-send:disabled{opacity:1;background:#343434;color:#888}
#chat-dialog #chat-status{flex:none;margin:0;padding-top:5px;color:#999;font-size:10px;font-weight:400;line-height:1.3;min-height:0}
#chat-dialog #chat-status:empty{display:none}
#chat-dialog button:focus-visible,#chat-dialog input:focus-visible{outline:2px solid #e9bf30;outline-offset:2px}
@media(orientation:landscape) and (max-height:550px){dialog.ui-sheet#chat-dialog{height:min(72dvh,350px)}dialog.ui-sheet#chat-dialog .dialog-heading{height:44px;min-height:44px}}
#keypad-error:empty{display:none}
#buyin-reservation-time:empty{display:none}
#buyin-reservation-time{color:#a4d65f;font-variant-numeric:tabular-nums}
.cash-game-view .waiting-actions[data-entry-selecting=true]{display:grid;grid-template-columns:1.8fr 1fr;gap:5px}
.cash-game-view .cash-entry-choice{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;gap:10px;padding:0 8px 0 15px;border:1px solid #747474;border-radius:0;color:#ececec;background:linear-gradient(#414141 0%,#292929 48%,#171717 50%,#222 100%);box-shadow:inset 0 0 0 2px #171717;font:700 clamp(11px,3.4vw,16px)/1.1 NastyPanelLatin,Arial,'Malgun Gothic',sans-serif}
.cash-entry-lamp{position:absolute;left:5px;top:23%;height:54%;width:4px;border-radius:2px;background:#111;box-shadow:inset 0 0 2px #000}
.cash-entry-choice[aria-pressed=true] .cash-entry-lamp{background:#52ff13;box-shadow:0 0 4px #49ff16,0 0 9px #36f00c}
.cash-entry-choice:disabled{opacity:.65}
#entry-post[data-entry-cost-label]:not([data-entry-cost-label=""]){gap:calc(5px * var(--cash-control-factor,1))}
#entry-post[data-entry-cost-label]:not([data-entry-cost-label=""])::after{content:attr(data-entry-cost-label);font:inherit;white-space:nowrap}
@font-face{font-family:NastyPanelKR;src:url('./fidelity/fonts/chat63.woff2') format('woff2');font-weight:100 900;font-display:swap}
dialog.ui-sheet#chat-dialog,dialog.ui-sheet#chat-dialog .dialog-heading h2,#chat-dialog #chat-input,#chat-dialog #chat-send{font-family:NastyPanelKR,Arial,sans-serif}
dialog.ui-sheet#chat-dialog .dialog-heading button::before{width:18px;height:20px;background:url('./fidelity/source-ui/icon_x.png') center/contain no-repeat;transform:translate(-50%,-50%)}
dialog.ui-sheet#chat-dialog .dialog-heading button::after{content:none}
/* Community_H uses Noto Medium16 for the tray caption, Regular18 for
   phrases and Regular20 for its empty state (PC58/59). Typed conversation
   and its16px input remain the existing product adaptation. */
body[data-layout-profile="desktop-wpl-v1"] dialog#chat-dialog .dialog-heading h2{font-size:16px;font-weight:500;line-height:1.25;letter-spacing:0}
body[data-layout-profile="desktop-wpl-v1"] dialog#chat-dialog .chat-text{font-size:18px;font-weight:400;line-height:1.35;letter-spacing:0}
body[data-layout-profile="desktop-wpl-v1"] dialog#chat-dialog .chat-empty{font-size:20px;font-weight:400;line-height:1.35;letter-spacing:0}
/* Desktop Auto portrait fallback: keep phone tray proportions even when the
   physical browser is wide/landscape. Frame placement stays in shared geometry. */
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog{--frame-chat-u:calc(1px * var(--table-content-scale,1))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .dialog-heading{height:calc(51 * var(--frame-chat-u));min-height:calc(39 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .dialog-heading h2{font-size:calc(22 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .dialog-heading button{width:calc(38 * var(--frame-chat-u));min-width:calc(38 * var(--frame-chat-u));height:calc(42 * var(--frame-chat-u));min-height:calc(42 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .dialog-heading button::before{width:calc(18 * var(--frame-chat-u));height:calc(20 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .chat-log{min-height:calc(50 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .chat-text{font-size:calc(14 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog .chat-empty{font-size:calc(13 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog #chat-input{font-size:calc(16 * var(--frame-chat-u));height:calc(42 * var(--frame-chat-u));min-height:calc(42 * var(--frame-chat-u));padding:calc(8 * var(--frame-chat-u)) calc(10 * var(--frame-chat-u))}
html:not([data-shared-chat238=true]) body[data-layout-profile="mobile-approved"][data-table-content-frame="portrait"] dialog#chat-dialog #chat-send{font-size:calc(14 * var(--frame-chat-u));height:calc(42 * var(--frame-chat-u));min-height:calc(42 * var(--frame-chat-u));min-width:calc(68 * var(--frame-chat-u));padding:0 calc(12 * var(--frame-chat-u))}

/* Approved shared chat presentation238; transport, drafts and stored rows remain native. */
html[data-shared-chat238=true] body dialog.ui-sheet#chat-dialog{
 position:fixed;inset:auto 0 0;margin:0 auto;translate:none;scale:1;transform-origin:center;
 width:min(560px,100vw);max-width:100vw;height:min(65.4dvh,480px);max-height:calc(100dvh - 12px);
 padding:0;border:0;border-radius:0;background:#0e0e0e;color:#ededed;box-shadow:0 -2px 12px #0007;
 font:400 15px/1.6 NastyPanelKR,Arial,'Malgun Gothic',sans-serif;font-synthesis:none;overflow:hidden;container-type:normal;
}
html[data-shared-chat238=true] body #chat-dialog,html[data-shared-chat238=true] body #chat-dialog *{box-sizing:border-box}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-body{display:flex;flex-direction:column;min-height:0;height:100%;padding:0 20px 16px;gap:0;background:#0e0e0e}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;height:56px;min-height:56px;margin:0 -20px;padding:0 10px 0 20px;gap:12px;border:0;border-bottom:1px solid #292929;background:#000}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading h2{margin:0;min-width:0;font:700 22px/1.3 NastyPanelKR,Arial,sans-serif;letter-spacing:0;color:#fff}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading button{position:relative;display:block;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:none;border-radius:0;font-size:0;box-shadow:none}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading button::before{width:18px;height:20px;background:url('/play-v2/fidelity/source-ui/icon_x.png') center/contain no-repeat;transform:translate(-50%,-50%)}
html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading button::after{content:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-log{flex:1;min-height:40px;max-height:none;margin:0 -20px;padding:16px 20px;background:#171717;scrollbar-gutter:stable;overscroll-behavior:contain}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-author{font:400 12px/1.3 NastyPanelKR,Arial,sans-serif}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-text{font:400 15px/1.5 NastyPanelKR,Arial,sans-serif;letter-spacing:0;overflow-wrap:anywhere;word-break:normal}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-time{display:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-empty{font:400 14px/1.6 NastyPanelKR,Arial,sans-serif;color:#999}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-form{display:flex;flex:none;gap:8px;min-height:60px;margin:0;padding:12px 0 0;border:0;background:none}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-input{flex:1;min-width:0;width:0;height:48px;min-height:48px;margin:0;padding:11px 12px;border:1px solid #454545;border-radius:0;background:#171717;color:#efefef;font:400 16px/1.4 NastyPanelKR,Arial,sans-serif;box-shadow:none}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-send{flex:none;width:auto;min-width:72px;height:48px;min-height:48px;margin:0;padding:11px 12px;border:1px solid #ad3b46;border-radius:0;background:#9e2935;color:#fff;font:500 16px/1.4 NastyPanelKR,Arial,sans-serif;box-shadow:none}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-send:disabled{background:#343434;border-color:#454545;color:#888;opacity:1}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-status{flex:none;min-height:0;margin:8px 0 0;padding:0;color:#999;font:400 12px/1.5 NastyPanelKR,Arial,sans-serif}
html[data-shared-chat238=true] body dialog#chat-dialog #chat-status:empty,html[data-shared-chat238=true] body dialog#chat-dialog #chat-status[data-chat201-history-note=true]{display:none}
html[data-shared-chat238=true] body #chat-dialog :is(button,input):focus-visible{outline:2px solid #d5b475;outline-offset:-2px}
html[data-shared-chat238=true] body #chat-open>.chat201-dot{position:absolute;left:calc(50% + 7px);top:calc(50% - 12px);display:block;width:6px;height:6px;margin:0;padding:0;border:0;border-radius:50%;background:#ef5967;box-shadow:0 0 0 1.5px #1b1b1e;pointer-events:none;animation:none}
html[data-shared-chat238=true] body #chat-open>.chat201-dot[hidden]{display:none!important}
@media(max-width:350px){
 html[data-shared-chat238=true] body dialog#chat-dialog .dialog-body{padding-inline:16px}
 html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading{margin-inline:-16px;padding-left:16px}
 html[data-shared-chat238=true] body dialog#chat-dialog .dialog-heading h2{font-size:20px}
 html[data-shared-chat238=true] body dialog#chat-dialog .chat-log{margin-inline:-16px;padding-inline:16px}
}
@media(min-width:900px){
 html[data-shared-chat238=true] body dialog.ui-sheet#chat-dialog{inset:0;margin:auto;width:min(560px,calc(100vw - 64px));max-width:calc(100vw - 64px);max-height:calc(100dvh - 64px);box-shadow:0 16px 60px #0008}
 html[data-shared-chat238=true] body dialog#chat-dialog .chat-text{font-size:16px}
}
/* One small tail sits inside the existing8px avatar/body gap. It inherits the
   bubble fill, does not affect layout and leaves the native profile hitbox clear. */
html[data-shared-chat238=true] body dialog#chat-dialog .chat-body{position:relative;overflow:visible}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-body::before{content:'';position:absolute;left:-7px;right:auto;top:12px;width:7px;height:10px;background:inherit;clip-path:polygon(100% 0,100% 100%,0 50%);pointer-events:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message.own .chat-body::before{left:auto;right:-7px;clip-path:polygon(0 0,100% 50%,0 100%)}
/* Approved reference207/208: name above a rounded text bubble; only the
   first native message in a consecutive participant group has a tip/avatar. */
html[data-shared-chat238=true] body dialog#chat-dialog .chat-log{gap:24px}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message .chat-body{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0;background:transparent;border-radius:0}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message .chat-body::before{content:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-author{font-size:12px;line-height:16px}
/* The captured font's g/y ink extends just below the16px name line. Extend
   only its ellipsis clip window; the negative margin keeps the existing
   name/bubble spacing and message-group height exactly unchanged. */
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message>.chat-body>.chat-author{padding-bottom:2px;margin-bottom:-2px}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-text{position:relative;margin:0;padding:8px 11px;border-radius:6px 12px 12px 12px;background:#303030;overflow:visible}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-text::before{content:'';position:absolute;left:-5px;right:auto;top:0;width:12px;height:9px;background:inherit;clip-path:path('M0 0 H12 V9 C7.6 8.2 4.1 5.2 0 0 Z');pointer-events:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message.own .chat-author{text-align:right}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message.own .chat-text{border-radius:12px 6px 12px 12px;background:#3c3c3c}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message.own .chat-text::before{left:auto;right:-5px;transform:scaleX(-1)}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message[data-chat209-continuation=true]{margin-top:-18px}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message[data-chat209-continuation=true] .chat-avatar{visibility:hidden}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message[data-chat209-continuation=true] .chat-author{display:none}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message[data-chat209-continuation=true] .chat-text{border-radius:12px}
html[data-shared-chat238=true] body dialog#chat-dialog .chat-message[data-chat209-continuation=true] .chat-text::before{content:none}

html[data-shared-chat238=true] body #chat-status[data-chat-send-error=true]{color:#f0b9b9;white-space:normal;line-height:1.35}html[data-shared-chat238=true] body #chat-status{min-height:1.35em}
