/* Reference929: quiet placeholders reserve exactly the same control geometry. */
body[data-usa-client] #view-table .pbb-v3 button:disabled,
body[data-usa-client] #view-table .pbb-v3 input:disabled,
body[data-usa-client] #view-table .pbb-v3 label:has(input:disabled),
body[data-usa-client] #view-table .pbb-v3 .usa929-ghost{opacity:.055!important;pointer-events:none!important;filter:saturate(.25)!important;box-shadow:none!important}
body[data-usa-client] #view-table .pbb-v3 label:has(input:disabled)>input{opacity:1!important}
body[data-usa-client] #view-table .pbb-v3 .usa929-action,body[data-usa-client] #view-table .pbb-v3 .usa929-queue{display:none!important}
body[data-usa-client] #view-table #preactionPersistent label{order:1}
body[data-usa-client] #view-table #preactionPersistent label:has(#preFoldAny),body[data-usa-client] #view-table #preactionPersistent [data-placeholder=preFoldAny]{order:0}
body[data-usa-client] .usa929-header-tools[hidden]{display:none!important}
body[data-usa-client] .usa929-header-tools{display:flex;align-items:center;gap:6px;min-width:0;margin:0 10px}
body[data-usa-client] .usa929-title .win-title-text{flex:0 1 auto!important;min-width:70px!important}
body[data-usa-client] .usa929-title .win-controls{margin-left:auto!important}
body[data-usa-client] .usa929-header-game{white-space:nowrap;font-size:11px}
body[data-usa-client] .usa929-header-tools button{height:24px!important;min-height:24px!important;min-width:84px;padding:2px 10px!important;border:1px solid #2b5167!important;border-radius:4px!important;background:linear-gradient(#194258,#0d2738)!important;color:#e1e9ee!important;font:600 11px/18px Arial!important;white-space:nowrap;cursor:pointer}
body[data-usa-client] .usa929-header-tools button:disabled{opacity:.055!important;pointer-events:none}
@media(min-width:601px),(orientation:landscape){
 body[data-usa-client].usa929-bottom #view-table .table-panel{grid-template-rows:minmax(0,1fr) clamp(160px,20vh,190px)!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3{display:grid!important;grid-template-columns:minmax(0,29fr) minmax(0,42fr) minmax(0,29fr)!important;grid-template-rows:26px minmax(0,1fr) 28px!important;gap:6px 14px!important;padding:8px 12px!important;align-content:stretch!important}
 body[data-usa-client].usa929-bottom #view-table .usa-game-heading{grid-area:1/1/2/2!important;min-width:0!important}
 body[data-usa-client].usa929-bottom #view-table .usa-sidebar-subtitle,body[data-usa-client].usa929-bottom #view-table .usa-seat-tools,body[data-usa-client].usa929-bottom #view-table .usa-seat-status{display:none!important}
 body[data-usa-client].usa929-bottom #view-table .poker-control-heading,body[data-usa-client].usa929-bottom #view-table .poker-control-position{width:100%!important;height:26px!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table .poker-control-position button{width:50%!important;height:26px!important;font-size:12px!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-left{grid-area:2/1/4/2!important;display:flex!important;flex-direction:column!important;min-height:0!important;border:0!important;padding:0!important;gap:4px!important}
 body[data-usa-client].usa929-bottom #view-table #pbb-log-host{flex:1!important;min-height:0!important;border:1px solid #2b4753!important;border-radius:5px!important;padding:5px!important;font-size:12px!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-ctr{grid-area:1/2/3/3!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-self:stretch!important;gap:6px!important;border-left:1px solid #2b4753!important;padding:0 0 0 14px!important;min-height:0!important}
 body[data-usa-client].usa929-bottom #view-table #pbb-readout{height:20px!important;min-height:20px!important;max-height:20px!important;overflow:auto!important;text-align:left!important;font:600 11px/20px Arial!important;white-space:nowrap!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #pbb-readout:empty:before{content:'PLAYER CONTROLS';font:700 12px/20px Arial;letter-spacing:1px;color:#e1e8eb}
 body[data-usa-client].usa929-bottom #view-table #pbb-actions{height:76px!important;min-height:76px!important;width:100%!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;height:76px!important;min-height:76px!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar .poker-action-slot{display:grid!important;grid-template-rows:42px 28px!important;gap:6px!important;height:76px!important;min-height:76px!important;visibility:visible!important;opacity:1!important;padding:0!important;background:none!important;border:0!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar .poker-action-slot>button{display:block!important;grid-row:1!important;width:100%!important;height:42px!important;min-height:42px!important;font:700 16px/20px Arial!important;text-transform:uppercase;border-radius:5px!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar .poker-action-slot>label{display:flex!important;grid-row:2!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:100%!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#d8e4e9!important;font:12px/14px Arial!important;box-sizing:border-box!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar input{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3>#pbb-checks{grid-area:3/2/4/3!important;display:flex!important;min-height:0!important;align-self:stretch!important;padding:0 0 0 14px!important;border-left:1px solid #2b4753!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #preactionPersistent{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;border-top:1px solid #2b4753!important;align-items:center!important;padding:4px 0 0!important;width:100%!important}
 body[data-usa-client].usa929-bottom #view-table #preactionPersistent label{font:11px/13px Arial!important;white-space:normal!important;min-width:0!important;min-height:22px!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-right{grid-area:1/3/4/4!important;display:flex!important;flex-direction:column!important;min-width:0!important;border-left:1px solid #2b4753!important;padding:0 0 0 14px!important;gap:6px!important}
 body[data-usa-client].usa929-bottom #view-table .z-title{height:20px!important;min-height:20px!important;font:700 12px/20px Arial!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #pbb-phrases{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:27px 27px!important;gap:5px!important;margin:0!important}
 body[data-usa-client].usa929-bottom #view-table #pbb-phrases button{height:27px!important;min-height:27px!important;border:1px solid #2b5167!important;border-radius:4px!important;background:linear-gradient(#194258,#0d2738)!important;color:#e1e9ee!important;font:11px/18px Arial!important;padding:2px!important}
 body[data-usa-client].usa929-bottom #view-table .z-in{display:flex!important;height:32px!important;min-height:32px!important;margin-top:auto!important;gap:6px!important}
 body[data-usa-client].usa929-bottom #view-table .z-in input{width:100%!important;min-width:0!important;height:32px!important;font:12px Arial!important}
 body[data-usa-client].usa929-bottom #view-table .z-in button{height:32px!important;min-height:32px!important;font-size:12px!important}
 body[data-usa-client].usa929-bottom #view-table .usa-reference-utility{display:none!important}
}
@media(max-width:1100px){body[data-usa-client] .usa929-header-game{display:none}}
@media(min-width:601px) and (max-width:900px){
 body[data-usa-client].usa929-bottom #view-table .pbb-v3{grid-template-columns:minmax(0,24fr) minmax(0,44fr) minmax(0,32fr)!important;gap:6px!important;padding:8px!important}
 body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-ctr,body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-right,body[data-usa-client].usa929-bottom #view-table .pbb-v3>#pbb-checks{padding-left:6px!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar{gap:5px!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar .poker-action-slot>button{font-size:12px!important}
 body[data-usa-client].usa929-bottom #view-table #actionBar .poker-action-slot>label,body[data-usa-client].usa929-bottom #view-table #preactionPersistent label{font-size:10px!important}
}

/* Override the legacy dock's ID-specific disabled and tool rules. */
body[data-usa-client] #view-table #pbb-actions #actionBar .lf-btn:disabled{opacity:.055!important;pointer-events:none!important;filter:saturate(.25)!important}
body[data-usa-client][data-usa-controls=bottom].usa929-bottom #view-table .pbb-v3 .usa-game-heading .usa-seat-tools,
body[data-usa-client][data-usa-controls=bottom].usa929-bottom #view-table .pbb-v3 .usa-game-heading .usa-sidebar-subtitle{display:none!important}
body[data-usa-client][data-usa-controls=bottom].usa929-bottom #view-table .pbb-v3 #pbb-readout{display:block!important}

body[data-usa-client].usa929-bottom #view-table .lf-toolbar>.usa929-local-tools{display:flex!important;gap:6px!important;position:static!important}
body[data-usa-client].usa929-bottom #view-table #actionBar .usa929-queue-group{grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:1px;height:28px;min-width:0}
body[data-usa-client].usa929-bottom #view-table #actionBar .usa929-queue-group label{display:flex!important;align-items:center!important;gap:4px!important;font:10px/13px Arial!important;margin:0!important;padding:0!important;height:13px!important;min-height:13px!important;background:none!important;border:0!important}
body[data-usa-client].usa929-bottom #view-table #actionBar .usa929-queue-group input{width:12px!important;height:12px!important;flex:0 0 12px!important}

body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .usa929-action,
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .usa929-queue{display:none!important}

/* 933: social controls stay readable; disabled server permissions still apply. */
body[data-usa-client] #view-table .pbb-v3 #pbb-phrases button:disabled,
body[data-usa-client] #view-table .pbb-v3 .usa-quick button:disabled,
body[data-usa-client] #view-table .pbb-v3 .z-in input:disabled,
body[data-usa-client] #view-table .pbb-v3 .z-in button:disabled{opacity:1!important;filter:none!important;cursor:not-allowed!important}
#usaHandSummary{display:none;white-space:pre-line;color:#f3d995;font:600 12px/12px Arial;flex:none;height:65px;overflow:auto;border-bottom:1px solid #2b4753;padding-bottom:4px;box-sizing:border-box}
body[data-usa-client].usa929-bottom #view-table .pbb-v3>.z-left{display:flex!important}
body[data-usa-client].usa929-bottom #view-table #usaHandSummary{display:block!important}
body[data-usa-client].usa929-bottom #view-table #pbb-log-host{min-height:20px!important}
@media(min-width:601px) and (max-width:900px){#usaHandSummary{font-size:10px;line-height:11px;height:60px}}
/* Scale only the card rows. Their board labels and reserved flow stay fixed. */
body[data-usa-client] #view-table .board-cards{transform:translateY(var(--usa-board-drop,3px)) scale(var(--usa-board-zoom,1.12))!important;transform-origin:50% 0!important}
body[data-usa-client]:not(.holdem-mode) #view-table #potDisplayWrap{translate:0 var(--usa-pot-drop,8px)!important}
body[data-usa-client] #view-table .seat .hole-cards>.card{transform-origin:50% 100%!important}

/* Quiet, unambiguous turn emphasis without resizing or flashing. */
body[data-usa-client] #view-table .seat.active .seat-inner,
body[data-usa-client] #view-table .seat.usa-phone-turn .seat-inner{border-color:#ffe28b!important;background:linear-gradient(110deg,#453918,#17251f 75%)!important;box-shadow:0 0 0 3px #e8c463,0 0 18px 4px #efc85770!important}

body[data-usa-client] #view-table .seat[data-usa-hero=true] .hole-cards>.card+.card{margin-left:calc(var(--usa-hero-card) * -.42)!important}
body[data-usa-client] #view-table #bottomBoard{transform:translateY(calc(var(--usa-board-drop,3px) * 2)) scale(var(--usa-board-zoom,1.12))!important}

body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-readout{white-space:pre-line!important}
body[data-usa-client].usa929-bottom #view-table .lf-toolbar>.usa929-local-tools{flex-direction:row!important;align-items:center!important}

@media(max-width:600px) and (orientation:portrait){body[data-usa-client][data-usa-controls] #view-table #pbb-readout{font-size:10px!important;line-height:10px!important;white-space:pre-line!important}}

/*937: fixed action places remain readable, including while queuing. */
body[data-usa-client] #view-table #pbb-actions #actionBar .poker-action-slot>button:disabled{opacity:1!important;background:#26343b!important;border-color:#42525a!important;color:#839198!important;filter:none!important;box-shadow:none!important;cursor:default!important}
body[data-usa-client] #view-table #pbb-actions #actionBar .poker-action-slot>.usa929-action{display:flex!important}
body[data-usa-client] #view-table #pbb-actions #actionBar .poker-action-slot>.usa929-queue{display:flex!important;visibility:hidden!important}
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .poker-action-slot{display:grid!important;grid-template-rows:42px 30px!important;align-content:start!important;min-width:0!important;gap:4px!important}
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .poker-action-slot>button{grid-row:1!important;height:42px!important;min-height:42px!important;padding:3px!important;font:700 11px/14px Arial!important;text-transform:uppercase!important}
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .poker-action-slot>label{grid-row:2!important;min-width:0!important;min-height:30px!important;font:10px/12px Arial!important;white-space:normal!important;display:flex!important;align-items:center!important;gap:3px!important;margin:0!important;padding:0!important}
body[data-usa-client]:not(.usa929-bottom) #view-table #pbb-actions #actionBar .poker-action-slot input{width:14px!important;height:14px!important;min-width:14px!important;margin:0!important}

body[data-usa-client] #view-table .bet-chip .usa-bet-owner{position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);max-width:82px;padding:1px 4px;border-radius:4px;background:#07251ddd;color:#e7ede8;font:600 10px/12px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
@media(max-width:600px) and (orientation:portrait){
 body[data-usa-client][data-usa-controls] #view-table .pbb-v3{grid-template-rows:156px 48px 28px!important;height:calc(256px + var(--usa-safe-bottom))!important;min-height:calc(256px + var(--usa-safe-bottom))!important;max-height:calc(256px + var(--usa-safe-bottom))!important;flex-basis:calc(256px + var(--usa-safe-bottom))!important}
 body[data-usa-client][data-usa-controls] #view-table .pbb-v3>.z-ctr{grid-template-rows:40px 76px 32px!important;height:156px!important;min-height:156px!important;max-height:156px!important}
 body[data-usa-client][data-usa-controls] #view-table #pbb-actions,
 body[data-usa-client][data-usa-controls] #view-table .pbb-v3 #pbb-preactions:not([hidden]){height:76px!important;min-height:76px!important}
 body[data-usa-client][data-usa-controls] #view-table #pbb-actions #actionBar .poker-action-slot{height:76px!important;min-height:76px!important}
 body[data-usa-client][data-usa-controls] #view-table #pbb-actions #actionBar .poker-action-slot>label{height:30px!important;min-height:30px!important;border:0!important;background:none!important;padding:0!important;border-radius:0!important}
 body[data-usa-client] #view-table .bet-chip .usa-bet-owner{max-width:58px;font-size:9px;line-height:10px;padding:1px 2px}
}

@media(min-width:601px),(orientation:landscape){
 body[data-usa-client][data-usa-controls=left] #view-table .pbb-v3 #pbb-readout{box-sizing:border-box!important;height:100px!important;min-height:100px!important;max-height:100px!important;flex:0 0 100px!important;overflow:auto!important;font-size:11px!important;line-height:14px!important}
}

/*940: table utilities stay at the top, independent of the betting dock. */
body[data-usa-client] #view-table .usa-game-heading .usa-seat-tools{display:none!important}
body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar{display:flex!important;flex-wrap:wrap!important;height:auto!important;min-height:40px!important;flex:0 0 auto!important}
body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar>.usa929-local-tools{display:flex!important;position:static!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;margin:0!important;gap:5px!important}
body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar>.usa929-local-tools button{display:block!important;font:600 11px/18px Arial!important;white-space:nowrap!important;min-height:30px!important;padding:4px 8px!important}
body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar>.usa929-local-tools .usa-table-options:after{content:none!important}
body[data-usa-client].usa940-top-tools.usa-embedded #view-table>.lf-toolbar>*:not(.usa929-local-tools){display:none!important}
body[data-usa-client].usa940-top-tools.usa-embedded #view-table>.lf-toolbar>.usa929-local-tools{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
body[data-usa-client] .desk-window:has(iframe)>.win-title.usa940-compact-title{flex-wrap:wrap!important;height:62px!important;min-height:62px!important;gap:3px!important;padding:3px 6px!important}
body[data-usa-client] .usa940-compact-title .usa929-header-tools{order:3!important;flex:1 0 100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important;gap:4px!important}
body[data-usa-client] .usa940-compact-title .usa929-header-game{display:none!important}
body[data-usa-client] .usa940-compact-title .usa929-header-tools button{min-width:0!important;height:27px!important;min-height:27px!important;padding:2px 5px!important}
@media(max-width:600px) and (orientation:portrait),(max-width:1000px) and (max-height:500px){
 body[data-usa-client][data-usa-layout] .desk-window:has(iframe)>.win-title.usa929-title{display:none!important}
 body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar>.usa929-local-tools button{height:34px!important;min-height:34px!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar>.usa929-local-tools button{grid-column:auto!important;grid-row:auto!important;min-width:0!important;margin:0!important}
body[data-usa-client] .usa929-header-tools button:disabled{opacity:.4!important}

body[data-usa-client].usa940-top-tools #view-table>.lf-toolbar .usa-reference-nav{position:static!important;inset:auto!important;flex:1 1 auto!important;min-width:0!important;width:auto!important}
