#replay-screen{max-width:1100px;padding-top:18px}.rp-heading,.rp-section-top,.rp-list-heading,.rp-replay-settings,.rp-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.rp-heading{margin-bottom:18px}.rp-heading h1{font-size:1.5rem;margin:0;color:#ffe0a0}.rp-heading p{margin:4px 0 0;color:#d8d1c7;font-size:1rem}.rp-error{background:#452331;border:1px solid #c77a87;padding:10px 12px;border-radius:7px;color:#ffdce1;font-size:1rem;overflow-wrap:anywhere}.rp-error:empty{display:none}.rp-notice{padding:10px 12px;background:#233c31;border:1px solid #628d70;border-radius:7px;color:#ddffe4;font-size:1rem}.rp-home-actions{display:flex;gap:10px;margin-bottom:24px}.rp-home-actions button{min-height:48px;font-size:1rem}.rp-home-actions .primary{flex:1}.rp-list-heading{border-bottom:1px solid #68573c;padding-bottom:10px;margin-bottom:10px}.rp-list-heading h2,.rp-section-top h2{font-size:1.1875rem;margin:0;color:#ffe5ad}.rp-list-heading span{font-size:.875rem;color:#d8d1c7}.rp-empty{padding:35px 18px;border:1px dashed #7a694d;border-radius:10px;text-align:center;color:#d8d1c7}.rp-empty strong{display:block;color:#f5dfb8;font-size:1.125rem;margin-bottom:5px}.rp-empty p{margin:0;font-size:1rem}.rp-saved-item{padding:15px;background:#1c1923;border:1px solid #68573c;border-radius:9px;margin-bottom:10px}.rp-saved-item h3{margin:0;font-size:1.125rem;color:#fff0d5;overflow-wrap:anywhere}.rp-saved-item p{margin:5px 0 12px;color:#d8d1c7;font-size:.875rem}.rp-saved-buttons{display:flex;gap:8px;flex-wrap:wrap}.rp-saved-buttons button{min-height:44px;font-size:.875rem}.rp-saved-buttons .rp-delete{margin-left:auto;background:none;border-color:transparent;color:#dfa6aa}.rp-storage-note{font-size:.875rem;color:#c8bcce;line-height:1.7;margin-top:18px}.rp-field{display:flex;flex-direction:column;gap:5px;font-size:1rem;min-width:0}.rp-field input,.rp-field select,.rp-field textarea{font:inherit;min-height:46px;padding:10px;min-width:0;width:100%;border:1px solid #8e7b5b;border-radius:6px;background:#15151f;color:#fff9ec}.rp-field textarea{resize:vertical}.rp-grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.rp-section-top{margin-bottom:14px}.rp-help{font-size:.875rem;color:#d8d1c7;line-height:1.65;margin:8px 0}.rp-player-heading,.rp-setup-player{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(80px,1fr) 84px;gap:10px;align-items:center}.rp-player-heading{font-size:.875rem;color:#d8d1c7;padding:6px 0}.rp-setup-player{padding:10px 0;border-top:1px solid #68573c}.rp-setup-player>label{display:flex;align-items:center;gap:6px;min-width:0}.rp-setup-player .rp-position{font-size:.875rem;color:#f3d393;min-width:52px;max-width:65px;line-height:1.3}.rp-setup-player input{width:100%;min-width:0;font-size:1rem;min-height:44px;padding:8px;border-radius:6px;border:1px solid #8e7b5b}.rp-hole-button{display:flex;align-items:center;justify-content:center;gap:3px;padding:4px;min-height:48px;background:none;border-color:#8e7b5b}.rp-setup-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.rp-setup-bottom .primary{font-size:1rem;min-height:48px}.rp-replay-settings{margin-bottom:10px}.rp-replay-settings>strong{font-size:1rem;flex:1;min-width:0;overflow-wrap:anywhere}.rp-replay-settings button{min-height:44px;font-size:.875rem}.rp-unit-label{display:flex;align-items:center;gap:6px;font-size:.875rem}.rp-unit-label select{font-size:.875rem;min-height:44px;padding:5px 8px}.rp-work-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:start}.rp-table-column,.rp-side-column{min-width:0}.rp-table{position:relative;width:100%;height:550px;isolation:isolate}.rp-felt{position:absolute;inset:7% 11%;border:2px solid #c6a574;border-radius:999px;z-index:-1}.rp-table-center{position:absolute;top:40%;left:22%;width:56%;display:flex;align-items:center;flex-direction:column;gap:6px;text-align:center;pointer-events:none}.rp-street{font-size:.875rem;color:#dfc18a;font-weight:700;letter-spacing:.04em}.rp-pot{font-size:1.125rem;color:#fff5d5;font-variant-numeric:tabular-nums}.rp-board{display:flex;justify-content:center;gap:4px;min-height:41px;margin:3px 0}.rp-table-brand{font-size:.875rem;color:#b0c2b5;font-weight:700;letter-spacing:.13em;opacity:.65;margin-top:4px}.rp-seat{position:absolute;transform:translate(-50%,-50%);width:90px;padding:0;background:none;border:0;display:flex;align-items:center;flex-direction:column;gap:3px;color:#fff;min-height:78px;z-index:1}.rp-seat:hover{filter:none}.rp-seat:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px;border-radius:7px}.rp-seat-cards{display:flex;gap:3px}.rp-card{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;width:27px;height:38px;border-radius:4px;background:#fffaf0;border:1px solid #cbbfad;color:#20202b;font-size:1.05rem;font-weight:800;line-height:1.02;box-shadow:0 2px 3px #0005;flex:none}.rp-card span{font-size:.875rem}.rp-card.red{color:#bb203c}.rp-card.back{background:linear-gradient(140deg,#342d45,#191723);border:1px solid #aa8b5d;color:#dfc187;font-size:1rem}.rp-card.empty{background:#102922;border:1px dashed #668077;color:#a6b5ac}.rp-seat-box{width:100%;border:1px solid #776346;border-radius:7px;background:#201b25eF;padding:4px 3px;box-shadow:0 2px 7px #0008}.rp-seat.active .rp-seat-box{border:2px solid #ffe29c;padding:3px 2px;box-shadow:0 0 14px #f0c46877;background:#453922}.rp-seat.hero .rp-seat-pos{color:#ffe6a3}.rp-seat.folded{visibility:hidden;pointer-events:none}.rp-seat.winner .rp-seat-box{border-color:#8edca2;background:#183b2c}.rp-seat-pos{display:block;font-size:.875rem;color:#f2e8d5;line-height:1.3}.rp-seat-name{display:block;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d0c4d5;line-height:1.3}.rp-seat-stack{display:block;font-size:.875rem;color:#ffde9b;font-variant-numeric:tabular-nums;line-height:1.4}.rp-seat-last{display:block;font-size:.875rem;line-height:1.2;white-space:nowrap;color:#fff3cd;background:#30293b;border-radius:4px;padding:2px 4px;max-width:120%;overflow:hidden;text-overflow:ellipsis}.rp-table-options{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.875rem;color:#d8d1c7;flex-wrap:wrap}.rp-table-options label{display:flex;align-items:center;gap:6px;min-height:40px}.rp-table-options input{width:18px;height:18px;accent-color:#e9c781}.rp-playback{display:grid;grid-template-columns:44px 44px minmax(70px,1fr) 44px 64px;gap:6px}.rp-playback button,.rp-playback select{min-height:44px;padding:6px;font-size:1rem}.rp-progress{width:100%;accent-color:#eac783;min-height:36px;margin:4px 0 8px;padding:0}.rp-mode-bar{margin:0 0 12px}.rp-mode-bar>strong{font-size:1rem;color:#ffdfa4}.rp-mode-bar button{min-height:44px;font-size:.875rem}.rp-action-panel,.rp-next-panel{padding:14px;border:1px solid #806b46;border-radius:10px;background:#1c1923;margin-bottom:12px}.rp-action-panel h2,.rp-next-panel h2{font-size:1.125rem;margin:0;color:#ffe5ad}.rp-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.rp-actions button{min-height:46px;font-size:1rem;padding:8px 5px}.rp-fold{background:#452a33;border-color:#986371;color:#ffd0d8}.rp-call{background:#203e44;border-color:#658d95;color:#d0f4ff}.rp-allin{background:#463720;border-color:#ad8b4d;color:#ffdfa4}#rp-bet-form{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:8px;align-items:end}#rp-bet-submit{min-height:46px;font-size:1rem;padding:8px}.rp-bet-presets{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.rp-bet-presets button{font-size:.875rem;min-height:40px;padding:6px 3px}.rp-record-actions{display:flex;gap:8px;justify-content:space-between;margin:12px 0}.rp-record-actions button{font-size:.875rem;min-height:44px;padding:8px 10px}.rp-record-actions .primary{flex:1}.rp-next-panel>.primary{width:100%;min-height:46px;font-size:1rem;margin-top:8px}.rp-note-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;background:#241e2d;padding:12px;border-radius:8px;border:1px solid #6b5975;line-height:1.7}#rp-results p{font-size:1rem;margin:7px 0;line-height:1.6}#rp-results strong{color:#c6efcf}.rp-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.rp-dialog-actions button{font-size:1rem;min-height:46px}#rp-card-dialog,#rp-save-dialog,#rp-confirm-dialog{width:calc(100% - 24px);max-width:540px;max-height:90dvh;overflow:auto;padding:18px}#rp-card-dialog h2,#rp-save-dialog h2,#rp-confirm-dialog h2{font-size:1.25rem}.rp-picked{display:flex;justify-content:center;gap:10px;padding:12px 0;min-height:80px}.rp-picked button{padding:3px;background:transparent;border:1px solid transparent;min-width:42px;min-height:54px}.rp-picked .rp-card{width:37px;height:51px;font-size:1.375rem}.rp-picked .rp-card span{font-size:1.125rem}.rp-ranks{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.rp-ranks button{min-height:44px;padding:5px;font-size:1.125rem}.rp-ranks button[aria-pressed=true]{background:#f1cd83;color:#211a0d;border-color:#ffedc3}.rp-suits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.rp-suits button{min-height:52px;padding:6px;font-size:1.75rem}.rp-suits .red{color:#ffafb9}#rp-save-form>.rp-field{margin-top:13px}#rp-save-form>.primary{display:block;margin:16px 0 0 auto;min-height:46px;font-size:1rem}
@media(max-width:760px){.rp-work-layout{grid-template-columns:1fr;gap:8px}.rp-table{height:500px;max-width:460px;margin:0 auto}.rp-table-center{top:39%}.rp-heading{margin-bottom:14px}.rp-heading h1{font-size:1.375rem}.rp-heading p{font-size:.875rem}.rp-seat{width:78px}.rp-seat-box{padding:3px 2px}.rp-seat.active .rp-seat-box{padding:2px 1px}.rp-card{width:24px;height:34px;font-size:1rem}.rp-card span{font-size:.875rem}.rp-table-center .rp-card{width:27px;height:38px}.rp-table-brand{margin-top:3px}.rp-table-options{padding:0 3px}.rp-table-column{padding-bottom:5px}.rp-side-column{border-top:1px solid #68573c;padding-top:12px}.rp-setup-bottom{align-items:stretch;flex-direction:column}.rp-setup-bottom .primary{width:100%}.rp-setup-player,.rp-player-heading{grid-template-columns:minmax(0,1.2fr) minmax(70px,.75fr) 65px;gap:6px}.rp-setup-player>label{flex-direction:column;align-items:stretch;gap:4px}.rp-setup-player .rp-position{max-width:none}.rp-setup-player>input{align-self:end;margin-bottom:2px}.rp-grid-three{gap:7px}.rp-grid-three .rp-field{font-size:.875rem}.rp-grid-three input,.rp-grid-three select{padding:9px 6px;font-size:1rem}.rp-setup-player .rp-hole-button{align-self:end}.rp-replay-settings{gap:8px}.rp-replay-settings>strong{font-size:.875rem}.calculator-tabs{gap:5px}.calculator-tabs button{font-size:.9375rem;padding:10px 3px}.rp-playback{grid-template-columns:44px 44px minmax(65px,1fr) 44px 64px}}
@media(max-width:360px){.rp-table{height:475px}.rp-seat{width:72px}.rp-table-center{left:23%;width:54%;top:39%}.rp-table-center .rp-card{width:24px;height:35px}.rp-pot{font-size:1rem}.rp-seat-name{max-width:100%}.rp-playback{grid-template-columns:40px 40px minmax(60px,1fr) 40px 58px;gap:4px}.rp-table-options{font-size:.8125rem}.rp-table-options label{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){#replay-screen *{scroll-behavior:auto}}
@media(max-width:760px){.rp-working>.rp-heading{margin-bottom:10px}.rp-working>.rp-heading p{display:none}.rp-recording .rp-playback,.rp-recording .rp-progress{display:none}.rp-recording .rp-table{height:clamp(375px,52svh,470px)}.rp-recording .rp-table-center{top:36%}.rp-recording .rp-table-brand{display:none}.rp-recording .rp-seat{gap:2px}.rp-recording .rp-seat-name{display:none}.rp-recording .rp-seat-last{font-size:.8125rem}}

/* The active hand is a viewport-sized table; editors and notes use sheets. */
body.replay-focus{overflow:hidden}
body.replay-focus>.appbar,body.replay-focus>.calculator-tabs{display:none}
body.replay-focus #replay-screen{position:fixed;inset:0;z-index:10;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:env(safe-area-inset-top,0px) max(6px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(6px,env(safe-area-inset-left,0px));overflow:auto;background:#17141e}
body.replay-focus .rp-heading{display:none}
body.replay-focus #rp-workspace{display:flex;flex-direction:column;height:100%;max-width:1100px;margin:auto;min-height:0}
body.replay-focus .rp-replay-settings{flex:none;min-height:44px;margin:0;padding:6px 0 0;gap:8px;justify-content:flex-end;border-top:1px solid #544631}
body.replay-focus .rp-replay-settings #rp-config-edit{flex:1}
body.replay-focus .rp-replay-settings button,body.replay-focus .rp-unit-label select{min-height:44px;padding:6px 10px;font-size:.875rem}
body.replay-focus .rp-unit-label{font-size:0;gap:0;flex:none}
body.replay-focus .rp-work-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:stretch}
body.replay-focus .rp-table-column{display:flex;flex-direction:column;min-height:0;padding:0}
body.replay-focus .rp-table{container-type:inline-size;flex:1;min-height:320px;height:auto;max-width:620px;margin:0 auto}
body.replay-focus .rp-felt{inset:5% 11%}
body.replay-focus .rp-table-center{top:38%;left:20%;width:60%;gap:3px}
body.replay-focus .rp-table-brand{display:none}
body.replay-focus .rp-street{font-size:.875rem}
body.replay-focus .rp-pot{font-size:1.0625rem;line-height:1.35}
body.replay-focus .rp-board{min-height:44px;gap:3px;margin:4px 0}
body.replay-focus .rp-table-center .rp-card{width:clamp(30px,8.8vw,40px);height:clamp(44px,12vw,56px);width:clamp(30px,9.5cqw,40px);height:clamp(44px,13.5cqw,56px);font-size:clamp(1.25rem,5.5vw,1.5rem);line-height:1}
body.replay-focus .rp-table-center .rp-card span{font-size:clamp(1.125rem,4.8vw,1.375rem)}
body.replay-focus .rp-seat{width:88px;min-height:0;gap:1px}
/* Hero and opponents share the same hole-card dimensions. */
body.replay-focus .rp-seat-cards .rp-card{width:36px;height:46px;flex-direction:column;gap:0;font-size:1.5rem;line-height:1}
body.replay-focus .rp-seat-cards .rp-card span{font-size:1.125rem}
body.replay-focus .rp-seat-box{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:3px;align-items:center;padding:2px 4px;border-width:1px}
body.replay-focus .rp-seat.active .rp-seat-box{padding:2px 4px;border-width:1px;outline:1px solid #ffe29c}
body.replay-focus .rp-seat-pos{font-size:.875rem;line-height:1.15;white-space:nowrap}
body.replay-focus .rp-seat-name{display:block;font-size:.75rem;line-height:1.3;min-width:0}
/* The hero stays anchored above the controls; its action row always keeps its space. */
body.replay-focus .rp-seat.hero{top:auto!important;bottom:8px;transform:translateX(-50%);gap:4px}
body.replay-focus .rp-seat.hero .rp-seat-box,body.replay-focus .rp-seat.hero.active .rp-seat-box{grid-template-columns:auto minmax(0,1fr);justify-content:stretch;column-gap:8px;row-gap:3px;padding:4px 8px}
body.replay-focus .rp-seat.hero .rp-seat-name{grid-column:1/-1;grid-row:1;font-size:1rem;font-weight:800;color:#fff2c9;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-align:center;max-width:100%}
body.replay-focus .rp-seat.hero .rp-seat-pos{grid-column:1;grid-row:2;text-align:left}
body.replay-focus .rp-seat.hero .rp-seat-stack{grid-column:2;grid-row:2;text-align:right;white-space:nowrap}
body.replay-focus .rp-seat.hero .rp-seat-box:has(.rp-seat-name[hidden]) .rp-seat-pos{grid-column:1}
body.replay-focus .rp-seat.hero .rp-seat-box:has(.rp-seat-name:not([hidden])) .rp-seat-pos{font-size:.75rem;font-weight:600;color:#e6cca0}
body.replay-focus .rp-seat-box:has(.rp-seat-name[hidden]) .rp-seat-pos{grid-column:1/-1}
body.replay-focus .rp-seat-stack{grid-column:1/-1;font-size:.875rem;line-height:1.2}
body.replay-focus .rp-seat-last{font-size:.75rem;line-height:1.15;padding:1px 4px;max-width:110px}
body.replay-focus .rp-table-options{flex:none;min-height:28px;line-height:1.2;padding:0 4px;font-size:.75rem}
body.replay-focus .rp-table-options label{min-height:28px;font-size:.875rem}

body.replay-focus .rp-playback{flex:none;gap:5px}
body.replay-focus .rp-playback button,body.replay-focus .rp-playback select{min-height:40px}
/* Repeated transport taps are actions, never a request to zoom. Older iOS
   WebKit versions still smart-zoom with manipulation, so use none only on
   these discrete buttons. The table keeps native scrolling and pinch zoom. */
#rp-workspace .rp-playback,#rp-workspace .rp-record-actions{touch-action:manipulation}
#rp-first,#rp-prev,#rp-play,#rp-next,#rp-undo,#rp-redo{touch-action:none;-webkit-user-select:none;user-select:none}
body.replay-focus .rp-progress{flex:none;min-height:24px;height:24px;margin:0;padding:0}
body.replay-focus .rp-side-column{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:10px 0 6px;border:0;min-height:0}
body.replay-focus .rp-mode-bar{display:none}
body.replay-focus .rp-action-panel,body.replay-focus .rp-next-panel{flex:none;margin:0;padding:8px;border-radius:8px}



body.replay-focus .rp-actions{margin:0;gap:6px}
body.replay-focus .rp-actions button{min-height:46px;padding:6px 2px;font-size:1rem}
body.replay-focus .rp-record-actions{flex:none;gap:6px;margin:0}
body.replay-focus .rp-record-actions button{min-height:40px;padding:5px 8px;font-size:.875rem;flex:1}
body.replay-focus .rp-next-panel h2{font-size:1rem}
body.replay-focus .rp-next-panel .rp-help{margin:2px 0;font-size:.75rem}



body.replay-focus #rp-result-panel{display:flex;align-items:center;gap:8px;padding:4px 8px}
body.replay-focus #rp-result-panel h2{display:none}
#rp-result-summary{margin:0;font-size:.875rem;flex:1;max-height:42px;overflow:auto;line-height:1.4;color:#c6efcf}
#rp-result-details{min-height:38px;font-size:.75rem;padding:5px 7px}
body.replay-focus #rp-error,body.replay-focus #rp-notice{position:absolute;z-index:4;left:10px;right:10px;top:48px;margin:4px auto;max-width:600px;max-height:110px;overflow:auto;box-shadow:0 4px 20px #0008}
.rp-sheet{width:calc(100% - 16px);max-width:540px;max-height:85vh;max-height:85dvh;overflow:auto;padding:16px}
.rp-sheet .rp-section-top h2{font-size:1.125rem}
.rp-sheet .rp-section-top button{min-height:44px}
#rp-bet-dialog .rp-bet-presets button{min-width:0;min-height:44px;white-space:nowrap}
#rp-bet-dialog #rp-allin{width:100%;margin:0;font-size:.875rem}
#rp-bet-dialog #rp-bet-form{grid-template-columns:minmax(0,1fr) 100px}
#rp-bet-dialog #rp-min-raise{margin:10px 0 0}


#rp-history-dialog #rp-replay-notes{margin:0}
@media(max-width:760px){
 body.replay-focus .rp-work-layout{display:flex;flex-direction:column;gap:0}
 body.replay-focus .rp-table-column{flex:1}
 body.replay-focus .rp-table{max-width:480px}
 body.replay-focus .rp-side-column{flex:none;padding:0 0 4px;gap:5px}
 body.replay-focus .rp-action-panel{padding:5px 6px;border-radius:7px}
 body.replay-focus .rp-actions{margin-top:0}
 body.replay-focus .rp-table-center{top:36%}
 body.replay-focus .rp-next-panel{padding:6px 8px}
 body.replay-focus .rp-next-panel>.primary{margin-top:4px;min-height:42px}
 .rp-sheet{margin-top:auto;margin-bottom:0;border-radius:16px 16px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
@media(max-height:670px){
 body.replay-focus .rp-replay-settings{min-height:44px}
 body.replay-focus .rp-seat-cards .rp-card{height:42px;font-size:1.375rem}
 body.replay-focus .rp-seat-box,body.replay-focus .rp-seat.active .rp-seat-box{padding:1px 3px}
 body.replay-focus .rp-seat-last{padding:0 3px;line-height:1}
 body.replay-focus .rp-table-center{gap:1px;top:34%}
}
@media(max-width:360px){
 body.replay-focus .rp-seat{width:80px}
 body.replay-focus .rp-board{gap:2px}

}
@media(orientation:landscape) and (min-width:600px) and (max-height:550px){
 body.replay-focus .rp-work-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:10px}
 body.replay-focus .rp-table{min-height:320px}
 body.replay-focus .rp-side-column{justify-content:flex-end}
}

body.replay-focus .rp-recording .rp-playback,body.replay-focus .rp-recording .rp-progress{display:none}
@media(max-height:670px){body.replay-focus .rp-seat{gap:0}body.replay-focus .rp-seat-pos,body.replay-focus .rp-seat-stack{line-height:1.05}}

/* Both rows fill the picker width, for Hero cards and community cards alike. */
#rp-card-dialog{width:calc(100% - 20px);max-width:500px;padding:14px}
#rp-card-dialog .rp-section-top{margin-bottom:8px;gap:8px}
#rp-card-dialog .rp-section-top h2{font-size:1.125rem}
#rp-card-dialog .rp-section-top button{min-height:40px;padding:6px 10px}
#rp-picked{gap:3px;padding:8px 0;min-height:0}
#rp-picked button{display:flex;min-width:0;min-height:0;padding:0;border:0;border-radius:4px;background:transparent}
#rp-picked .rp-card{width:42px;height:58px;font-size:1.5rem;line-height:1}
#rp-picked .rp-card span{font-size:1.25rem}
#rp-ranks{display:flex;flex-direction:column;gap:6px}
.rp-rank-row{display:grid;grid-template-columns:repeat(var(--rp-rank-count),minmax(0,1fr));gap:6px}
.rp-rank-row button{width:100%;min-width:0;min-height:44px;padding:5px 2px;font-size:1.125rem}
#rp-suits{gap:6px;margin-top:8px}
#rp-suits button{min-width:0;min-height:48px;padding:4px;font-size:1.75rem}
#rp-card-error{margin:8px 0 0}
#rp-card-dialog .rp-dialog-actions{margin-top:10px;gap:8px}
#rp-card-dialog .rp-dialog-actions button{flex:1;min-height:44px;padding:7px 10px}
body.replay-focus #rp-next-board-panel{padding:4px 6px}
body.replay-focus #rp-next-board-panel>.primary{margin-top:0}

/* Tournament details replace the temporary pot breakdown below the board. */
.rp-tournament-field{margin-top:14px}
.rp-tournament{pointer-events:auto;max-width:100%;min-height:32px;padding:3px 8px;border:0;border-radius:5px;background:#102b24aa;color:#e9d7ac;font-size:.8125rem;line-height:1.3;font-weight:600;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.rp-tournament.empty{color:#bfcdc5;font-weight:400}
.rp-tournament:hover,.rp-tournament:focus-visible{background:#284b3f;color:#fff1cd}
/* Bets sit on a separate felt layer; action labels remain beneath each seat. */
body.replay-focus .rp-seat-last{display:flex;align-items:center;justify-content:center;gap:3px;min-height:18px;padding:1px 3px;overflow:visible;background:#17342deb;max-width:none}
.rp-table-bets{position:absolute;inset:0;z-index:2;pointer-events:none}
.rp-seat-bet{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff4d2;--chip-face:#ad8745;--chip-edge:#77531f}
.rp-seat-bet.raise{--chip-face:#d35460;--chip-edge:#782d3a}
.rp-seat-bet.allin{--chip-face:#a683d3;--chip-edge:#664488}
.rp-chip-stack{position:relative;display:inline-block;width:17px;height:17px;flex:none;filter:drop-shadow(0 1px 1px #0007)}
.rp-chip-stack i{position:absolute;left:0;bottom:0;width:17px;height:8px;border:1px solid #f6e9c4;border-radius:50%;background:linear-gradient(90deg,transparent 18%,#fff5d3 19% 27%,transparent 28% 72%,#fff5d3 73% 81%,transparent 82%),var(--chip-face);box-shadow:0 2px 0 var(--chip-edge)}
.rp-chip-stack i:nth-child(2){bottom:4px}
.rp-chip-stack i:nth-child(3){bottom:8px}
@media(max-width:360px){body.replay-focus .rp-seat-last{gap:2px;font-size:11px}.rp-seat-bet{gap:2px}}

.rp-bet-amount{display:block;padding:1px 6px;border-radius:8px;background:#11151be8;box-shadow:0 1px 3px #0005;font-weight:600;line-height:12px}
@media(max-width:352px){
 .rp-seat-bet{gap:1px;font-size:10px}
 .rp-bet-amount{padding:1px 3px;line-height:11px}
 .rp-chip-stack{width:13px;height:13px}
 .rp-chip-stack i{width:13px;height:6px}
 .rp-chip-stack i:nth-child(2){bottom:3px}
 .rp-chip-stack i:nth-child(3){bottom:6px}
}

/* The dealer button follows its seat and is hidden with a folded player. */
.rp-dealer-marker{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;padding:0;border:2px solid #f1d58f;border-radius:50%;background:linear-gradient(#fffef7,#e9e4d9);color:#201b17;font:900 18px/1 Arial,sans-serif;letter-spacing:0;box-shadow:0 0 0 2px #17151ce6,0 3px 6px #0009,inset 0 0 0 2px #fffaf4;z-index:3;pointer-events:none;flex:none}
.rp-dealer-marker[data-dealer-side=right]{left:auto;right:calc(100% + 5px)}
.rp-dealer-marker[data-dealer-side=top]{left:50%;right:auto;top:calc(100% + 6px);transform:translateX(-50%)}
@media(max-width:380px){.rp-dealer-marker{width:28px;height:28px;font-size:17px}}

/* One compact setup sheet before entering the action table. */
#rp-settings-dialog{width:calc(100% - 24px);max-width:440px;padding:18px;max-height:92dvh;overscroll-behavior:contain}
#rp-settings-dialog .rp-section-top{margin-bottom:16px}
#rp-settings-title{font-size:1.25rem;margin:0;outline:none}
#rp-settings-close{min-height:44px;font-size:.875rem}
.rp-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.rp-settings-stacks{display:grid;gap:12px;margin:16px 0 18px}.rp-settings-stacks .rp-help{margin:0;font-size:.8125rem}
#rp-settings-dialog .rp-field{font-size:.875rem;position:relative;min-width:0}
#rp-settings-dialog .rp-field input,#rp-settings-dialog .rp-field select{font-size:1rem;min-height:44px;width:100%;min-width:0}
.rp-optional{position:absolute;right:0;top:0;color:#a89eaf;font-size:.8125rem}
.rp-sheet-done{width:100%;min-height:46px;font-size:1rem;margin-top:18px}
.rp-settings-hero,.rp-settings-opponent{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:18px 0 8px;align-items:start}
.rp-hero-card-field{display:flex;flex-direction:column;gap:7px;font-size:.875rem;min-width:0}
.rp-hero-card-field small{font-size:.75rem;color:#bdb0c5;margin-left:4px}
#rp-setup-hero-cards,#rp-setup-opponent-cards{display:flex;gap:4px;align-items:center;justify-content:center;min-height:48px;padding:3px 6px;background:#17131d;border:1px solid #78664a;border-radius:8px}
#rp-setup-hero-cards .rp-card,#rp-setup-opponent-cards .rp-card{width:30px;height:42px}
.rp-hero-card-placeholder{font-size:.9375rem;color:#f6d99d;font-weight:500}
.rp-settings-footer{position:sticky;bottom:-18px;background:#211b2a;padding:8px 0 max(12px,env(safe-area-inset-bottom,0px));margin-top:0}
.rp-settings-footer .rp-sheet-done{margin-top:0;min-height:48px}
.rp-settings-footer .rp-error{font-size:.875rem;margin:0 0 8px}

/* Clear seat actions and a steady lit edge with a gentle current-turn pulse. */
.rp-table-options{justify-content:flex-end}
.rp-seat .rp-seat-last,body.replay-focus .rp-seat-last{display:flex;align-items:center;justify-content:center;min-height:25px;max-width:100%;padding:3px 6px;border:1px solid #879c92;border-radius:5px;background:#23382f;color:#fffaf0;font-size:15px;font-weight:800;line-height:1.1;letter-spacing:.035em;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 4px #0005}
body.replay-focus .rp-seat-last[data-action="FOLD"]{background:#59303b;border-color:#bc8191;color:#fff0f3}
body.replay-focus .rp-seat-last[data-action="CHECK"],body.replay-focus .rp-seat-last[data-action="CALL"]{background:#214956;border-color:#83bbcb;color:#edfbff}
body.replay-focus .rp-seat-last[data-action="BET"],body.replay-focus .rp-seat-last[data-action="RAISE"]{background:#5b4320;border-color:#dbb66b;color:#fff0c9}
body.replay-focus .rp-seat-last[data-action="ALL-IN"]{background:#4f3668;border-color:#b6a0d4;color:#faf1ff}
body.replay-focus .rp-seat-last[data-action="WIN"]{font-size:13px;letter-spacing:0}
body.replay-focus .rp-seat.active .rp-seat-box{border-color:#ffdc83;outline:2px solid #ffdc83;outline-offset:1px;background:#554021;box-shadow:0 0 0 3px #eabb5433,0 0 14px #f6c55f80;animation:rp-turn-glow 1.5s ease-in-out infinite}
@keyframes rp-turn-glow{0%,100%{background:#45351f;outline-color:#dfb85f;box-shadow:0 0 0 3px #eabb5422,0 0 8px #f6c55f55}50%{background:#745323;outline-color:#fff0b2;box-shadow:0 0 0 4px #eabb5455,0 0 20px #f6c55fcc}}
.rp-actions button{font-weight:800;letter-spacing:.025em}
#rp-call{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.1}
.rp-call-amount{font-size:.75rem;font-weight:600;letter-spacing:0}
@media(prefers-reduced-motion:reduce){body.replay-focus .rp-seat.active .rp-seat-box{animation:none;outline-color:#fff0b2;background:#654b23;box-shadow:0 0 0 3px #eabb5444,0 0 16px #f6c55f99}}

/* Saved-hand notes use the open space beside the hand summary. */
.rp-saved-content{margin-bottom:14px}
.rp-saved-content.has-note{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.rp-saved-summary{min-width:0}
.rp-saved-summary p{margin-bottom:0;overflow-wrap:anywhere}
.rp-saved-note{min-width:0;padding-left:18px;border-left:1px solid #68573c}
.rp-saved-note>span{display:block;color:#e5c891;font-size:.8125rem;font-weight:600;line-height:1.4}
.rp-saved-note>p{margin:5px 0 0;color:#eee4d5;font-size:.9375rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){.rp-saved-content.has-note{grid-template-columns:minmax(0,1fr);gap:12px}.rp-saved-note{padding:12px 0 0;border-left:0;border-top:1px solid #514735}}

/* Public share links open the same table in read-only playback mode. */
#rp-share-dialog{max-width:520px}
#rp-share-name{display:block;overflow-wrap:anywhere;color:#fff0d5}
#rp-share-status{font-size:.9375rem;line-height:1.6;color:#e6dccb;overflow-wrap:anywhere}
#rp-share-url{width:100%;min-width:0;min-height:46px;border:1px solid #8e7b5b;border-radius:7px;background:#15151f;color:#fff2d4;padding:10px;font-size:.875rem}
#rp-share-dialog .rp-dialog-actions>button{flex:1;min-width:0}
#rp-share-stop{margin-top:18px;min-height:40px;font-size:.875rem;color:#e7b6bb;border-color:#8f6873}
#rp-shared-status{max-width:520px;margin:36px auto;padding:22px;border:1px solid #68573c;border-radius:12px;background:#1c1923}
#rp-shared-status h2{margin:0;color:#ffe5ad;font-size:1.25rem}
#rp-shared-message{line-height:1.7;color:#dfd2bf}
#rp-shared-status>div{display:flex;gap:8px;flex-wrap:wrap}
#rp-shared-status button{min-height:44px}
.rp-seat[aria-disabled=true],.rp-tournament[aria-disabled=true]{cursor:default}

/* Hand library: the existing dark/gold visual language, with one clear scope. */
.rp-library-tabs,.rp-visibility-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border:1px solid #68573c;background:#17141f;border-radius:12px;margin:0 0 18px}
.rp-library-tabs button,.rp-visibility-options button{min-height:46px;font-size:1rem;border:1px solid transparent;border-radius:8px;background:transparent;color:#d8d1c7}
.rp-library-tabs button[aria-selected=true],.rp-visibility-options button[aria-pressed=true]{background:#483620;border-color:#987842;color:#ffe4a7;font-weight:700}
.rp-library-tabs button:focus-visible,.rp-visibility-options button:focus-visible{outline:2px solid #ffe4a7;outline-offset:2px}
.rp-visibility-options{margin:16px 0 8px}.rp-visibility-label{display:inline-block;font-size:.875rem;color:#d8c9df;border:1px solid #685770;border-radius:30px;padding:3px 10px;margin-bottom:9px}
.rp-visibility-label[data-scope=public]{color:#ffe2a0;border-color:#a6864a;background:#3e301e}
#rp-public-list .rp-saved-item p{overflow-wrap:anywhere;line-height:1.6}#rp-public-more{display:block;min-height:46px;width:100%;font-size:1rem;margin-top:14px}
#rp-public-panel [hidden]{display:none!important}

/* Compact public hand previews and reactions reuse the existing GF deck. */
.rp-public-cardsets{display:flex;align-items:flex-start;gap:clamp(12px,3vw,24px);margin:16px 0;flex-wrap:wrap}
.rp-public-cardsets>div>span,.rp-public-memo>span{display:block;color:#e5c891;font-size:.875rem;margin-bottom:7px}
.rp-public-cards{display:flex;gap:3px}
.rp-public-cards .rp-card{width:clamp(30px,7vw,43px);height:clamp(43px,10vw,61px);font-size:1.2rem}
.rp-public-cards .rp-card.empty{background:#221d2b;border-color:#6a5a72;color:#a99cad}
.rp-public-memo{padding:13px 0;border-top:1px solid #514735;margin-bottom:10px}
#rp-public-list .rp-public-memo p{font-size:1rem;white-space:pre-wrap;margin:0;color:#eee4d5;line-height:1.6}
.rp-public-memo .text-button{font-size:.875rem;min-height:36px;margin-top:5px;padding-left:0}
.rp-public-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rp-public-heading h3{min-width:0;flex:1}
.rp-view-count{display:inline-block;margin-left:12px;color:#c7bcae;font-size:.875rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.rp-public-menu{position:relative;flex:none}
.rp-public-menu summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:44px;min-height:44px;border:1px solid #78664b;border-radius:8px;background:#28212f;color:#f3d7a0;font-size:24px;font-weight:700;line-height:1}
.rp-public-menu summary::-webkit-details-marker{display:none}
.rp-public-menu summary:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}
.rp-public-menu-items{position:absolute;right:0;top:calc(100% + 6px);min-width:130px;padding:5px;z-index:5;border:1px solid #78664b;border-radius:9px;background:#211b28;box-shadow:0 8px 24px #0008}
.rp-public-menu-items button{width:100%;min-height:46px;padding:9px 14px;border:0;background:transparent;text-align:left;color:#ffb9c1;font-size:16px}
.rp-public-menu-items button:hover{background:#452733}
.rp-public-buttons{padding-top:5px;gap:6px}
.rp-public-buttons>button{flex:1;min-width:0;padding:7px 9px}
.rp-social-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.rp-social-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rp-social-button[aria-pressed=true]{background:#48301f;color:#ffe2a0;border-color:#c39b56}
.rp-social-button[aria-pressed=true] svg{fill:currentColor}
.rp-social-button[hidden]{display:none!important}
.rp-public-buttons>.rp-like-group{display:flex;flex:1 1 155px;min-width:0}
.rp-like-group>button{min-height:36px;padding:7px 9px}
.rp-like-group>.rp-social-button{flex:1;min-width:0;border-radius:8px 0 0 8px;border-right:0}
.rp-like-group>.rp-likers-button{flex:none;min-width:48px;border-radius:0 8px 8px 0;color:#ffe2a0;white-space:nowrap}
.rp-likers-button:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}
#rp-social-likers-dialog{max-width:480px}
#rp-social-likers-count{color:#d9b56f;margin-left:4px}
#rp-social-likers-name{overflow-wrap:anywhere;color:#e5d6bc}
#rp-social-likers-list{list-style:none;padding:0;margin:8px 0 16px}
#rp-social-likers-list>li{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #514735}
#rp-social-likers-list strong{font-size:.9375rem;color:#ffe3aa;overflow-wrap:anywhere;min-width:0}
#rp-social-likers-more,#rp-social-likers-retry{width:100%;min-height:44px}
#rp-social-likers-dialog [hidden]{display:none!important}
#rp-social-likers-status:empty{display:none}
#rp-social-dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:580px;height:min(720px,85dvh);max-height:85dvh;padding:0;overflow:hidden;border:1px solid #ffffff14;border-radius:20px;background:#1e1a25;box-shadow:0 -12px 50px #0005}
#rp-social-dialog[open]{display:flex;flex-direction:column}
#rp-social-dialog [hidden]{display:none!important}
#rp-social-dialog::backdrop{background:#08070cba}
body:has(#rp-social-dialog[open]){overflow:hidden}
#rp-social-header{flex:none;padding:8px 16px 12px;border-bottom:1px solid #ffffff0d;touch-action:none}
.rp-comment-handle{height:4px;width:36px;margin:0 auto 6px;border-radius:4px;background:#82788d80}
.rp-comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#rp-social-title{margin:0;font-size:19px;line-height:1.4;color:#f4eddf}
#rp-social-close{display:grid;place-items:center;flex:none;width:44px;min-height:44px;padding:10px;border:0;background:transparent;color:#bcb2c7;box-shadow:none}
#rp-social-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#rp-social-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 12px;scroll-padding-block:12px}
#rp-social-dialog :is(button,summary):focus-visible,#rp-social-scroll:focus-visible{outline:2px solid #e5c689;outline-offset:2px}
#rp-social-count{color:#d9b56f;margin-left:4px}
.rp-public-intro{flex-wrap:wrap;gap:4px 16px}
.rp-public-intro .rp-help{margin:0}
#rp-public-status:empty,#rp-social-status:empty{display:none}
.rp-comment-hand{margin:0 0 12px}
#rp-social-name{margin:0;width:100%;font-size:14px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#bcb1c7}
#rp-social-status{flex:none;margin:0;padding:8px 16px;font-size:13px;line-height:1.5;color:#e1c995}
#rp-social-form{flex:none;display:grid;gap:0;margin:0;padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));border-top:1px solid #ffffff0f;background:#211d29}
#rp-social-form[hidden]{display:none}
#rp-social-form textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:10px 12px;border:1px solid transparent;border-radius:18px;background:#141119;color:#f3edf7;font:inherit;font-size:16px;line-height:22px;resize:none;min-height:44px;max-height:120px;overflow-y:auto;scroll-margin:0}
#rp-social-form textarea::placeholder{color:#aaa0b5;font-size:14px}
#rp-social-form textarea:focus{border-color:#c8a56980;outline:none;border-radius:12px}
.rp-comment-compose{display:flex;align-items:flex-end;gap:6px}
#rp-social-length{padding:4px 4px 0;color:#aaa0b5;font-size:11px;line-height:16px;font-variant-numeric:tabular-nums}
.rp-comment-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:4px}
#rp-social-dialog .rp-comment-actions button{min-height:36px;padding:6px 2px;border:0;background:transparent;box-shadow:none;color:#bcb1c7;font-size:13px;font-weight:500;line-height:1.4}
#rp-social-dialog .rp-comment-like{display:inline-flex;align-items:center;gap:5px;min-width:36px}
#rp-social-dialog .rp-comment-like svg{width:17px;height:17px}
#rp-social-dialog .rp-comment-like[aria-pressed=true]{color:#e8bd79;background:transparent}
#rp-social-dialog .rp-replies-toggle{color:#dac18f}
.rp-comment-replies{margin:4px 0 0 8px;padding-left:14px;border-left:1px solid #ffffff12}
.rp-comment-replies>.rp-comment{padding:12px 0 0}
.rp-reply-target{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;padding:0 4px;color:#e8cf9f;font-size:13px;overflow-wrap:anywhere}
.rp-reply-target[hidden]{display:none}
.rp-reply-target button{flex:none;min-height:32px;padding:4px 8px;background:none;border:0;color:#bcb1c7;font-size:13px}
#rp-social-submit{flex:none;min-width:48px;min-height:44px;padding:10px 6px;border:0;background:transparent;box-shadow:none;color:#f1d292;font-size:15px;font-weight:750}
#rp-social-submit:disabled{opacity:.4}
.rp-comment{padding:14px 0 8px;border:0}
.rp-comment-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;position:relative;min-height:24px;padding-right:32px}
.rp-comment-top strong{font-size:14px;color:#e9d5ad;overflow-wrap:anywhere;max-width:100%}
.rp-comment-mine{font-size:.75rem;color:#ddc5ee;border:1px solid #685770;border-radius:4px;padding:2px 5px}
#rp-social-dialog .rp-comment-mine{border:0;padding:0;color:#a99cb5;font-size:11px}
.rp-comment-top time{font-size:11px;color:#a99eb4}
.rp-comment-menu{position:absolute;right:-8px;top:-6px;border:0;background:none;padding:0;margin:0}
#rp-social-dialog .rp-comment-menu>summary{display:grid;place-items:center;list-style:none;width:36px;height:36px;margin:0;padding:0;border:0;background:transparent;color:#bcb1c7;font-size:24px;line-height:1;cursor:pointer;border-radius:8px}
.rp-comment-menu>summary::-webkit-details-marker{display:none}
.rp-comment-menu-panel{position:absolute;right:8px;top:34px;z-index:3;min-width:120px;padding:4px;background:#302938;border:1px solid #ffffff14;border-radius:10px;box-shadow:0 6px 24px #0006}
#rp-social-dialog .rp-comment-menu-panel>button{display:block;width:100%;min-height:44px;margin:0;padding:10px 14px;border:0;background:transparent;box-shadow:none;text-align:left;color:#e3d8ea;font-size:14px}
#rp-social-dialog .rp-comment-menu-panel>.rp-comment-delete{color:#e2a7ae}
#rp-social-dialog .rp-comment-menu-panel>button:hover{background:#ffffff08}
#rp-social-dialog .rp-comment>p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.65;color:#eee8f1}
.rp-comment-empty{padding:20px 0;text-align:center;color:#c8bbcf;font-size:1rem}
#rp-social-more{width:100%;min-height:44px;font-size:13px;border:0;background:transparent;color:#dac18f}
#rp-social-more[hidden]{display:none}
@media(max-width:360px){.rp-public-buttons>button{padding:7px 5px}.rp-social-button{gap:4px}.rp-social-button svg{width:16px;height:16px}}

.rp-public-buttons>button{flex:1 1 105px}#rp-share-dialog [hidden]{display:none!important}@media(max-width:430px){.rp-record-actions:has(#rp-shared-share:not([hidden])){flex-wrap:wrap}.rp-record-actions:has(#rp-shared-share:not([hidden]))>button{flex:1 1 calc(50% - 6px)}}

/* Recording uses undo/redo; only replay viewing needs playback controls. */
#rp-workspace #rp-playback[hidden],#rp-workspace #rp-progress[hidden]{display:none!important}
.rp-board-edit{display:flex;align-items:center;justify-content:center;min-height:0;padding:0;border:0;background:transparent;pointer-events:auto;border-radius:4px}
.rp-board-edit:focus-visible{outline:3px solid #ffe0a0;outline-offset:2px}
/* Keep the board's space stable without drawing undealt card placeholders. */
#rp-board .rp-card.empty{visibility:hidden;pointer-events:none}
#rp-config-edit{flex:none;white-space:nowrap}

.rp-storage-note{font-size:14px;line-height:1.6;color:#c7bbd0;margin:12px 0;word-break:keep-all}

/* Stack presets remain in each player’s editor. */
.rp-depth-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rp-depth-presets button{min-height:44px;font-size:1rem;font-weight:700;padding:8px 4px}
.rp-depth-presets button small{font-size:.75rem;margin-left:4px;font-weight:400}
.rp-depth-presets button[aria-pressed=true]{background:#f1cd83;color:#211a0d;border-color:#ffedc3}

/* Keep seat and table geometry stable when an action label or street changes. */
.rp-seat .rp-seat-last,body.replay-focus .rp-seat .rp-seat-last{height:25px;min-height:25px;flex:none;box-sizing:border-box;white-space:nowrap}
.rp-seat .rp-seat-last.is-empty{visibility:hidden}
.rp-stage-controls{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:64px;flex:none;min-height:64px}
.rp-stage-controls>section{grid-area:1/1;min-width:0;min-height:0}
body.replay-focus .rp-stage-controls .rp-action-panel{padding:6px}
body.replay-focus .rp-stage-controls .rp-actions{height:100%}
body.replay-focus .rp-stage-controls .rp-actions button{height:100%}
/* Shared replays have no editing actions: give their reserved row back to the
   table, while retaining the result summary once the hand is complete. */
#rp-workspace.rp-shared-hand .rp-stage-controls{grid-template-rows:auto;min-height:0}
#rp-workspace.rp-shared-hand .rp-stage-controls:has(#rp-result-panel[hidden]){display:none}

/* Each seat opens one compact editor without leaving the action table. */
#rp-seat-edit-dialog{width:calc(100% - 24px);max-width:440px;padding:18px;max-height:90dvh}
#rp-seat-edit-title{outline:none;font-size:1.125rem}
#rp-seat-edit-name-field{margin-bottom:14px}
#rp-seat-edit-name{font-size:1rem;min-height:46px}
#rp-seat-edit-stack{font-size:1.25rem;min-height:48px;font-weight:700}
#rp-seat-edit-current{margin:7px 0 12px;color:#f2d99f}
.rp-seat-edit-cards-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px;font-size:1rem}
#rp-seat-edit-cards{display:flex;align-items:center;justify-content:center;gap:5px;min-width:112px;min-height:56px;padding:5px 10px;background:#17131d;border:1px solid #8e7b5b;border-radius:8px;color:#f6d99d;font-size:1rem}
#rp-seat-edit-cards .rp-card{width:34px;height:48px}
#rp-seat-edit-help{font-size:.875rem;margin:0}
#rp-seat-edit-dialog .rp-error{font-size:.875rem}

/* One position label next to the stack; nicknames keep their own full row. */
body.replay-focus #replay-screen .rp-seat .rp-seat-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px}
body.replay-focus #replay-screen .rp-seat .rp-seat-name{width:100%;max-width:100%;text-align:center}
body.replay-focus #replay-screen .rp-seat .rp-seat-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600;line-height:1.25;color:#fff2c9}
body.replay-focus #replay-screen .rp-seat-meta{display:flex;align-items:baseline;justify-content:center;gap:5px;width:100%;white-space:nowrap}
body.replay-focus #replay-screen .rp-seat .rp-seat-meta .rp-seat-pos{font-size:12px;font-weight:700;line-height:1.2;text-align:left;color:#e6cca0;flex:none}
body.replay-focus #replay-screen .rp-seat .rp-seat-meta .rp-seat-stack{font-size:14px;line-height:1.2;text-align:left;white-space:nowrap}
body.replay-focus #replay-screen .rp-seat .rp-seat-meta.long-stack{gap:3px}
body.replay-focus #replay-screen .rp-seat .rp-seat-meta.long-stack .rp-seat-pos{font-size:10px}
body.replay-focus #replay-screen .rp-seat .rp-seat-meta.long-stack .rp-seat-stack{font-size:12px}
/* Start on the inward side; the felt layout then clears cards, labels and bets. */
body.replay-focus #replay-screen .rp-dealer-marker{left:calc(100% + 8px);right:auto;top:50%;bottom:auto;transform:translateY(-50%)}
body.replay-focus #replay-screen .rp-dealer-marker[data-dealer-side="right"]{left:auto;right:calc(100% + 8px)}
body.replay-focus #replay-screen .rp-dealer-marker[data-dealer-side="top"]{left:50%;right:auto;top:calc(100% + 8px);transform:translateX(-50%)}
body.replay-focus #replay-screen .rp-dealer-marker[data-dealer-side="bottom"]{left:calc(50% - 36px);right:auto;top:auto;bottom:calc(100% + 8px);transform:translateX(-50%)}

/* Tournament context stays compact and separate from the seat count. */
.rp-tournament-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px}
.rp-tournament-fields .rp-field{min-width:0;margin-bottom:0;font-size:.875rem}
.rp-tournament-fields input,.rp-tournament-fields select{width:100%;min-width:0;min-height:44px;font-size:1rem}
.rp-tournament-help{margin:8px 0 14px;font-size:.8125rem;line-height:1.5;color:#c7bdad}
#rp-tournament-display{display:block;-webkit-line-clamp:unset}
.rp-tournament-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-tournament-context{display:block;font-size:.75rem;line-height:1.4;word-break:keep-all;overflow-wrap:normal;color:#ffe3a5}
.rp-tournament-name+.rp-tournament-context{margin-top:2px}
.rp-saved-tournament{overflow-wrap:anywhere}
/* Anchor one fixed central panel instead of stacking tournament info below empty cards. */
body.replay-focus .rp-table{min-height:440px}
body.replay-focus #rp-workspace .rp-table-center{top:46%;left:20%;width:60%;transform:translateY(-50%);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:28px 40px 50px 62px;align-items:center;justify-items:center;gap:4px}
body.replay-focus #rp-workspace .rp-pot{grid-row:1;line-height:28px}
body.replay-focus #rp-workspace #rp-tournament-display{grid-row:2;width:max-content;max-width:100%;min-height:36px;max-height:40px;margin:0;padding:3px 8px;line-height:16px;overflow:hidden}
body.replay-focus #rp-workspace .rp-tournament-name,body.replay-focus #rp-workspace .rp-tournament-context{line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.replay-focus #rp-workspace .rp-tournament-name+.rp-tournament-context{margin-top:1px}
body.replay-focus #rp-workspace #rp-pot-odds{grid-row:3;margin:0}
body.replay-focus #rp-workspace #rp-board{grid-row:4;align-items:center;min-height:62px;height:62px;margin:0}
/* Landscape and portrait both keep secondary actions below playback. */
body.replay-focus #rp-workspace.rp-wide-table{max-width:1240px;height:auto;min-height:100%}
body.replay-focus #rp-workspace.rp-wide-table .rp-work-layout{display:flex;flex-direction:column;gap:0;flex:none;min-height:0;align-items:stretch}
body.replay-focus #rp-workspace.rp-wide-table .rp-table-column{display:flex;flex-direction:column;justify-content:center;min-height:0;min-width:0;width:100%}
body.replay-focus #rp-workspace.rp-wide-table .rp-table{flex:none;width:100%;max-width:1180px;height:auto;min-height:580px;aspect-ratio:16/9;margin:16px auto 8px}
body.replay-focus #rp-workspace.rp-wide-table .rp-felt{inset:9% 8%;border-radius:999px}
body.replay-focus #rp-workspace.rp-wide-table .rp-seat{width:112px;gap:2px}
body.replay-focus #rp-workspace.rp-wide-table .rp-seat.hero{bottom:12px}
body.replay-focus #rp-workspace.rp-wide-table .rp-table-center{top:44%;left:25%;width:50%}
body.replay-focus #rp-workspace.rp-wide-table .rp-side-column{align-self:center;width:100%;max-width:1180px;padding:8px 0 20px;gap:10px}
body.replay-focus #rp-workspace.rp-wide-table .rp-record-actions{flex-wrap:wrap}
body.replay-focus #rp-workspace.rp-wide-table .rp-record-actions button{flex:1 1 72px;min-height:44px;padding:6px;font-size:14px}
@media(max-width:360px){.rp-tournament-fields{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px}.rp-tournament-fields select{font-size:.875rem}}

/* Hand details live in basic settings, with one save action on the table. */
/* The export action keeps a constant footprint throughout recording and replay. */
#rp-ai-dialog[open]{display:flex;flex-direction:column;gap:10px;height:min(760px,85vh);height:min(760px,85dvh);overflow:auto}
#rp-ai-dialog .rp-section-top{flex:none;margin:0}
#rp-ai-help{flex:none;margin:0;font-size:.875rem;line-height:1.5}
#rp-ai-dialog>label{flex:none;font-size:.875rem;color:#e6cca0}
#rp-ai-text{flex:1;min-height:140px;width:100%;margin:0;padding:12px;resize:none;font:400 1rem/1.55 system-ui,sans-serif;color:#f4eddf;background:#14131d;border:1px solid #786b55;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}
#rp-ai-text:focus-visible{outline:2px solid #ffe3a5;outline-offset:2px}
#rp-ai-status{flex:none;min-height:1.5em;margin:0;font-size:.875rem;color:#ffe3a5}
#rp-ai-copy{flex:none;width:100%;min-height:46px}
.rp-settings-info{margin-top:16px;padding-top:16px;border-top:1px solid #554633}
#rp-settings-dialog .rp-settings-info>.rp-field{margin-bottom:14px}
#rp-settings-dialog .rp-tournament-fields .rp-field{margin:0}
#rp-settings-dialog #rp-notes{width:100%;min-height:92px;font-size:1rem;line-height:1.5;resize:vertical}

/* Public hand polls: compact choices and readable result bars. */
.rp-public-menu-items button[data-hand-poll-manage]{color:#f2d39c}
.rp-poll-dialog{color:#f7f0df}
.rp-poll-dialog [hidden]{display:none!important}
.rp-poll-dialog h2,.rp-poll-dialog h3{color:#f2d39c}
.rp-poll-dialog h3{font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0}
.rp-poll-dialog .rp-field{margin:12px 0}
.rp-poll-dialog input{font-size:16px}
.rp-poll-dialog button{min-height:44px}
.rp-poll-dialog form>.primary{width:100%;margin-top:8px}
.rp-poll-tabs{display:flex;gap:8px;margin:16px 0}
.rp-poll-tabs button{flex:1}
.rp-poll-tabs button[aria-pressed="true"]{background:#4d3a23;border-color:#d6b673;color:#ffe6aa}
.rp-poll-choice{display:flex;align-items:center;gap:12px;padding:14px 12px;border:1px solid #73634d;border-radius:10px;margin:10px 0;cursor:pointer;overflow-wrap:anywhere}
.rp-poll-choice:has(input:checked){background:#46351f;border-color:#ebcb88}
.rp-poll-choice input{width:20px;height:20px;flex:0 0 20px;accent-color:#e9c579}
.rp-poll-choice span{min-width:0}
.rp-poll-result{margin:20px 0}
.rp-poll-result-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:9px}
.rp-poll-result-top>span{overflow-wrap:anywhere;min-width:0}
.rp-poll-result-top strong{white-space:nowrap;color:#f2d39c;font-size:15px}
.rp-poll-mine{display:inline-block;margin-left:8px;font-size:12px;color:#f2d39c}
.rp-poll-track{height:9px;background:#39343e;border-radius:6px;overflow:hidden}
.rp-poll-track span{display:block;height:100%;background:linear-gradient(90deg,#b88d48,#ffe3a0);border-radius:6px}
.rp-poll-manage{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #625442;padding-top:16px;margin-top:20px}
.rp-poll-manage button{flex:1}
#rp-poll-delete{color:#f2aeae}
#rp-poll-retry{margin-top:12px;color:#e3cca4}

/* Public hand rankings share the card layout with the latest feed. */
#rp-home .rp-library-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
#rp-ranking-panel [hidden]{display:none!important}
.rp-ranking-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0 10px}
.rp-ranking-periods button{min-width:0;min-height:44px;padding:8px 4px;border:1px solid #63533d;border-radius:9px;background:#211c29;color:#d6cdbd;font-size:1rem}
.rp-ranking-periods button[aria-pressed=true]{background:#4b3820;border-color:#dfbf7b;color:#ffe4a7;font-weight:700}
.rp-ranking-periods button:focus-visible{outline:2px solid #ffe4a7;outline-offset:2px}
#rp-ranking-status:empty{display:none}
#rp-ranking-retry{min-height:44px;margin-bottom:16px}
#rp-ranking-list .rp-saved-item p{overflow-wrap:anywhere;line-height:1.6}
#rp-ranking-list .rp-public-memo p{font-size:1rem;white-space:pre-wrap;margin:0;color:#eee4d5;line-height:1.6}
.rp-ranking-score{display:flex;align-items:center;gap:14px;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #544532}
.rp-rank-place{display:grid;place-items:center;min-width:48px;min-height:48px;padding:6px;border:1px solid #685639;border-radius:12px;color:#d6c6a7;font-size:1.15rem}
.rp-rank-place:is([data-rank="1"],[data-rank="2"],[data-rank="3"]){background:linear-gradient(135deg,#ffe5a6,#c4994b);border-color:#e6c888;color:#30230f}
.rp-ranking-score>div{min-width:0;display:grid;gap:4px}.rp-ranking-score>div>strong{color:#ffe2a0;font-size:1.35rem}.rp-ranking-score span{font-size:.85rem;color:#c4b8a3;overflow-wrap:anywhere}
.rp-pot-odds{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;flex-shrink:0;color:#edd8ab;background:#0b2825cc;border-radius:8px;padding:5px 9px;margin:5px auto;font-size:14px;line-height:1.4;height:32px;min-height:32px;width:160px;max-width:100%;overflow:hidden;font-variant-numeric:tabular-nums}
.rp-pot-odds>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Keep the reserved geometry so hiding runout odds cannot move cards or chips. */
.rp-pot-odds.is-runout,.rp-pot-odds.is-disabled{visibility:hidden;pointer-events:none}

.rp-seat-inline-bet{display:none}
/* Every portrait table reserves avatar height and keeps chips clear of seats. */
 body.replay-focus #replay-screen{scrollbar-gutter:stable}
 body.replay-focus #rp-workspace:not(.rp-wide-table){height:auto;min-height:100%}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-work-layout{display:flex;flex-direction:column;gap:0;flex:0 0 auto}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-table{--rp-phone-center-height:190px;flex:none;height:var(--rp-phone-table-height,520px);min-height:var(--rp-phone-table-height,520px);margin:8px auto 4px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-felt{inset:5% 8%}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-table-center{top:calc(44% - var(--rp-phone-center-height)/2 + var(--rp-phone-center-offset,0px));transform:none;left:20%;width:60%;grid-template-rows:30px 62px 40px 40px;gap:6px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-pot{font-size:22px;line-height:30px;color:#fff2cd;font-variant-numeric:tabular-nums}
 body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-board{grid-row:2;gap:6px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-table-center .rp-card{width:clamp(30px,9cqw,39px);height:clamp(44px,13cqw,56px)}
 body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-tournament-display{grid-row:3;font-size:12px;min-height:36px;padding:3px 6px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-pot-odds{grid-row:4;width:140px;height:28px;min-height:28px;max-width:100%;padding:3px 6px;font-size:12px;line-height:17px;background:#102e29;color:#f6dfaa}
 body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-pot-odds>span{white-space:normal;text-wrap:balance;overflow:visible}
 /* Reserve the same center rows before and after the flop so chips never move. */
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat{width:clamp(74px,22cqw,88px);height:var(--rp-seat-height,auto);justify-content:flex-start;gap:3px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat .rp-seat-box{box-sizing:border-box;min-height:var(--rp-seat-box-height,0px);flex:none}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat:not(.hero){left:clamp(37px,var(--rp-seat-x),calc(100% - 37px))!important;top:calc(var(--rp-seat-y) * (100% - var(--rp-seat-inset,132px)) + var(--rp-seat-top,76px) - var(--rp-seat-anchor-shift,0px))!important}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat .rp-seat-box{padding:3px;gap:2px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat .rp-seat-name{line-height:15px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat-cards{gap:6px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat.hero{bottom:8px;gap:3px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat-action:empty{display:none}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat .rp-seat-last{height:var(--rp-seat-action-height,28px);min-height:var(--rp-seat-action-height,28px);padding:3px 5px;font-size:14px;line-height:20px;letter-spacing:0}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-seat-bet{display:flex;gap:2px;font-size:14px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-bet-amount{padding:1px 4px;line-height:16px;font-weight:800;background:#10171df2;box-shadow:0 2px 4px #0006}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-chip-stack{width:17px;height:16px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-chip-stack i{width:17px;height:8px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-chip-stack i:nth-child(2){bottom:4px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-chip-stack i:nth-child(3){bottom:8px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-table-options{margin-top:4px}
 body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-stage-controls:not(:has(>section:not([hidden]))){display:none}

/* Public replay keeps its viewing controls and returns the removed rows to the table. */
#rp-workspace.rp-shared-hand :is(#rp-social-shared-like,#rp-social-shared-comments){display:none!important}
body.replay-focus #rp-workspace.rp-shared-hand .rp-record-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.replay-focus #rp-workspace.rp-shared-hand .rp-record-actions:has(#rp-poll-shared:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
body.replay-focus #rp-workspace.rp-shared-hand .rp-record-actions button{min-width:0;min-height:44px;margin:0}
body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-work-layout{flex:0 0 auto}
body.replay-focus #rp-workspace:not(.rp-wide-table) .rp-table{flex:none;height:max(var(--rp-phone-table-height,480px),var(--rp-view-table-height,520px));min-height:max(var(--rp-phone-table-height,480px),var(--rp-view-table-height,520px))}

/* The list button uses the free upper-left corner, without reserving a header. */
#rp-table>#rp-to-list{position:absolute;top:0;left:0;z-index:4;width:44px;min-height:44px;height:44px;padding:4px;font-size:14px;line-height:1.2}

/* Saved and shared replays open at the table. Settings and secondary actions
   remain in normal flow below the viewing area. */
body.replay-focus #rp-workspace.rp-scroll-replay{height:auto;min-height:100%;overflow-anchor:none}
body.replay-focus #rp-workspace.rp-scroll-replay .rp-work-layout{display:flex;flex-direction:column;gap:0}
body.replay-focus #rp-workspace.rp-scroll-replay .rp-table-column{flex:none}
body.replay-focus #rp-workspace.rp-scroll-replay .rp-side-column{flex:none;width:100%;padding:12px 0 8px;gap:6px}
body.replay-focus #rp-workspace.rp-scroll-replay .rp-stage-controls:not(:has(>section:not([hidden]))){display:none}

/* Reuse the editor rows above playback while editing a saved hand. */
.rp-edit-controls:not([hidden]){display:flex;flex-direction:column;flex:none;gap:6px;margin:0 0 6px}
.rp-edit-controls .rp-record-actions{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.rp-edit-controls .rp-record-actions button{min-width:0}
body.replay-focus #rp-workspace .rp-edit-controls .rp-record-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}

/* Saved-hand AI questions open directly from the selected record. */
#rp-saved-list .rp-saved-ai{color:#ffe3a5;border-color:#a88b51;background:#352b1f}
@media(max-width:600px){
 #rp-saved-list .rp-saved-buttons{display:grid;grid-template-columns:1.2fr .8fr 1.2fr 44px .7fr;gap:5px}
 #rp-saved-list .rp-saved-buttons button{min-width:0;min-height:44px;margin:0;padding:8px 3px;font-size:14px;white-space:nowrap;overflow-wrap:normal}
}
@media(max-width:350px){#rp-saved-list .rp-saved-buttons button{font-size:13px;padding:8px 2px}}

/* Hand-vs-hand equity stays next to the cards, independent of chip placement. */
.rp-seat-cards{position:relative}
.rp-seat-equity{position:absolute;top:50%;transform:translateY(-50%);box-sizing:border-box;width:54px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #c3a268;border-radius:8px;background:#092d27f5;box-shadow:0 2px 6px #0006;color:#fff0bd;font-size:14px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.rp-seat-equity[data-equity-side="left"]{right:calc(100% + 5px)}
.rp-seat-equity[data-equity-side="right"]{left:calc(100% + 5px)}
.rp-seat-equity[data-equity-side="above"]{left:50%;top:-4px;transform:translate(-50%,-100%)}
.rp-seat-equity.is-empty{visibility:hidden}
/* Reserve the space left of Hero's information box throughout playback. */
.rp-seat.hero .rp-seat-box{position:relative}
.rp-hero-bluff{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%);box-sizing:border-box;width:84px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #a88b51;border-radius:8px;background:#272017f5;box-shadow:0 2px 6px #0006;color:#ffe3a5;line-height:12px;white-space:nowrap;pointer-events:none}
.rp-hero-bluff>span{font-size:11px;font-weight:600}
.rp-hero-bluff>strong{font-size:17px;line-height:19px;font-weight:800;font-variant-numeric:tabular-nums}
.rp-hero-bluff.is-empty{visibility:hidden}
@media(max-width:599px){
 .rp-seat-equity{width:clamp(36px,11.5cqw,46px);height:25px;font-size:clamp(11px,3.3cqw,13px);border-radius:7px}
 .rp-seat-equity[data-equity-side="left"]{right:calc(100% + 4px)}
 .rp-seat-equity[data-equity-side="right"]{left:calc(100% + 4px)}
 .rp-hero-bluff{width:74px;height:50px;gap:2px;line-height:11px;border-radius:7px}
 .rp-hero-bluff>span{font-size:10px}
 .rp-hero-bluff>strong{font-size:15px;line-height:18px}
}

/* Portrait hand video export. */
.rp-video-dialog{max-width:660px}.rp-video-dialog [hidden]{display:none!important}
.rp-video-layout{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);align-items:start;gap:18px}
.rp-video-preview canvas,.rp-video-preview video{width:100%;height:auto;aspect-ratio:9/16;display:block;border-radius:12px;background:#17121f;border:1px solid #655b41}
.rp-video-options{display:flex;flex-direction:column;gap:10px}.rp-video-selects{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.rp-video-check{display:flex;align-items:center;gap:8px;min-height:36px;font-size:.9rem}.rp-video-check input{width:19px;height:19px;accent-color:#d9bd83}
.rp-video-options input[type=range]{padding:0;min-height:32px;accent-color:#d9bd83}.rp-video-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.rp-video-actions button,.rp-video-actions a{flex:1;min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:7px;font:inherit;font-weight:700;text-decoration:none;text-align:center;cursor:pointer}
.rp-video-actions a.primary{background:#d6b779;color:#191920;border:1px solid #e7cd96}#rp-video-progress{width:100%;height:12px;margin-top:14px;accent-color:#d6b779}
#rp-video-status{min-height:1.65em;overflow-wrap:anywhere}#rp-video-open{white-space:nowrap}
@media(max-width:480px){.rp-video-layout{grid-template-columns:1fr;gap:12px}.rp-video-preview{max-width:220px;width:100%;margin:auto}.rp-video-options{gap:8px}.rp-video-options .rp-field{font-size:.9rem}}

#rp-sound{min-height:32px;padding:4px 9px;font-size:.8125rem;white-space:nowrap}#rp-sound[aria-pressed="false"]{color:#b7b1a8;border-color:#5c5a55}
.rp-sound-controls{display:flex;align-items:center;gap:5px}
#rp-sound-settings{display:grid;place-items:center;width:36px;min-height:36px;padding:6px;border-radius:8px}
#rp-sound-dialog{max-width:440px}
#rp-sound-title{outline:none}
.rp-sound-enabled{display:flex;align-items:center;gap:9px;margin:5px 0 18px;min-height:36px}
.rp-sound-enabled input{width:20px;height:20px;accent-color:#e9c781}
#rp-sound-status{min-height:1.5em;color:#ffe3a5}
.rp-volume-setting{margin:16px 0}
.rp-volume-setting label{display:flex;align-items:center;justify-content:space-between;gap:12px}
#rp-sound-volume-value{color:#ffe3a5;font-variant-numeric:tabular-nums}
#rp-sound-volume{display:block;width:100%;min-height:36px;margin:4px 0 0;padding:0;accent-color:#e9c781;cursor:pointer}

/* Purple cloth and a padded, gold-edged rail share one theme in both orientations.
   The rail extends outwards so the cards and chip-placement area stay in place. */
body.replay-focus #replay-screen{
 background:
  repeating-linear-gradient(45deg,#e8c98403 0 1px,transparent 1px 24px),
  repeating-linear-gradient(-45deg,#e8c98403 0 1px,transparent 1px 24px),
  radial-gradient(ellipse at 50% 24%,#292136 0,#17131e 48%,#0c0b10 100%);
}
#rp-table{--rp-rail-width:18px}
#rp-workspace.rp-wide-table #rp-table{--rp-rail-width:26px}
#rp-table .rp-felt{
 border-radius:999px;
 pointer-events:none;
 background:
  repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 3px),
  repeating-linear-gradient(90deg,#10092212 0 1px,transparent 1px 3px),
  radial-gradient(ellipse at 48% 35%,#bc83ff38 0,transparent 67%),
  radial-gradient(ellipse at 50% 45%,#8139be 0,#67299d 48%,#381652 100%);
 box-shadow:inset 0 0 0 2px #22142e,inset 0 0 0 18px #26113f66,inset 0 8px 20px #160b2c99,
  0 0 0 calc(var(--rp-rail-width) - 1px) #201019,
  0 0 0 calc(var(--rp-rail-width) + 1px) #6c452b,
  0 0 0 calc(var(--rp-rail-width) + 4px) #efcb84,
  0 7px 0 calc(var(--rp-rail-width) + 4px) #977044,
  0 12px 0 calc(var(--rp-rail-width) + 3px) #35251f,0 26px 28px 12px #000a;
}
#rp-table .rp-felt::before{
 content:"";position:absolute;inset:calc(0px - var(--rp-rail-width));border-radius:inherit;
 padding:var(--rp-rail-width);box-sizing:border-box;
 background:radial-gradient(circle,#120d17 1.5px,transparent 2px) 0 0/7px 7px,
  linear-gradient(180deg,#3b1e30,#8a334b 48%,#471d31 85%,#21131c);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
}
#rp-table .rp-felt::after{
 content:"REGULUS";position:absolute;top:72%;left:8%;width:84%;transform:translateY(-50%);
 color:#d9b1ff1f;font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,6cqw,34px);
 line-height:1.2;font-weight:700;letter-spacing:.16em;text-align:center;text-shadow:0 1px 1px #10051e77;
}
#rp-workspace.rp-wide-table #rp-table .rp-felt::after{top:66%;font-size:clamp(28px,3.5cqw,42px);letter-spacing:.22em}
#rp-table .rp-table-brand{display:none}
#rp-table .rp-seat:not(.active):not(.winner) .rp-seat-box{
 background:linear-gradient(180deg,#302638f5,#17121ff5);border-color:#8d7555;
 box-shadow:inset 0 1px 0 #ecd4a51a,0 4px 8px #0008;
}
#rp-table .rp-seat.hero:not(.active):not(.winner) .rp-seat-box{border-color:#c5a06a}
#rp-table .rp-seat.active .rp-seat-box{
 background:linear-gradient(180deg,#604741,#382539);border-color:#f6d99b;
 box-shadow:inset 0 1px 0 #fff0b844,0 0 16px #e7c06a55,0 4px 8px #0008;
}
#rp-table .rp-pot{color:#fff0c7;text-shadow:0 2px 3px #1a0829,0 0 15px #edc97a26}
#rp-workspace #rp-table #rp-pot-odds{background:#251434e8;color:#f5e1bd;box-shadow:inset 0 0 0 1px #ad879a33}
#rp-workspace #rp-table #rp-tournament-display{background:#281a39c9;border-color:#8b6b96;color:#f2e4ff}
@media(max-width:599px){#rp-table{--rp-rail-width:12px}}

/* Revealed cards use the same full-size pair at every seat.
   Opponent portraits sit above their cards so neither card hides the face. */
#rp-workspace #rp-table{--rp-open-card-width:38px;--rp-open-card-height:52px;--rp-seat-card-height:92px}
#rp-workspace.rp-wide-table #rp-table{--rp-open-card-width:44px;--rp-open-card-height:60px}
#rp-workspace #rp-table .rp-seat-cards{display:block;position:relative;width:100%;height:var(--rp-seat-card-height);flex:none;isolation:isolate}
#rp-workspace #rp-table .rp-seat-portrait{position:absolute;left:0;bottom:2px;width:calc(100% - 22px);max-width:78px;aspect-ratio:9/10;overflow:hidden;border-radius:48%;pointer-events:none;filter:drop-shadow(0 3px 4px #0007)}
#rp-workspace #rp-table .rp-seat-avatar{position:absolute;left:50%;top:0;transform:translateX(-50%);width:220%;height:auto;max-width:none;pointer-events:none;user-select:none}
#rp-workspace #rp-table .rp-hole-cards{position:absolute;right:0;bottom:4px;display:flex;gap:2px;align-items:flex-end;z-index:1}
#rp-workspace #rp-table .rp-seat .rp-hole-cards .rp-card{width:var(--rp-open-card-width);height:var(--rp-open-card-height);margin:0;flex:none;transform:none;box-shadow:0 2px 5px #0008}
body.replay-focus #rp-workspace #rp-table .rp-seat.hero{width:148px}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-cards{height:78px}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-portrait{width:64px}
#rp-workspace #rp-table .rp-seat.hero .rp-hole-cards{gap:2px;bottom:8px}
#rp-workspace #rp-table .rp-seat-equity{z-index:2}
#rp-workspace #rp-table .rp-seat.active .rp-seat-portrait{filter:drop-shadow(0 0 5px #e9b85b99) drop-shadow(0 3px 4px #0008)}
#rp-workspace #rp-table .rp-seat.winner .rp-seat-portrait{filter:drop-shadow(0 0 6px #8edca2aa)}
#rp-workspace.rp-wide-table #rp-table .rp-seat-cards{height:clamp(86px,9cqw,108px)}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-seat.hero{width:168px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.hero .rp-seat-cards{height:92px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.hero .rp-seat-portrait{width:74px}
body.replay-focus #rp-workspace.rp-wide-table .rp-table-options,body.replay-focus #rp-workspace.rp-wide-table .rp-playback,body.replay-focus #rp-workspace.rp-wide-table .rp-progress{width:100%;max-width:1180px;margin-left:auto;margin-right:auto}
body.replay-focus #rp-workspace.rp-wide-table.rp-shared-hand .rp-record-actions{display:flex;flex-wrap:wrap}
body.replay-focus #rp-workspace.rp-wide-table .rp-stage-controls:not(:has(>section:not([hidden]))){display:none}
@media(max-width:599px){
 #rp-workspace #rp-table{--rp-seat-card-height:84px}
 #rp-workspace #rp-table .rp-seat.hero .rp-seat-cards{height:78px}
}

/* Unknown hands use compact avatar rows. Only configured, known hands reserve
   a second row for full-size open cards; reveal never changes this footprint.
   Every row grows upward from the same name-box baseline. */
body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-table .rp-seat:not(.hero){width:clamp(78px,22cqw,88px);left:clamp(39px,var(--rp-seat-x),calc(100% - 39px))!important}
#rp-workspace #rp-table .rp-seat:not(.hero){--rp-portrait-row-height:var(--rp-seat-card-height)}
#rp-workspace #rp-table .rp-seat:not(.hero)[data-rp-card-side="bottom"]{--rp-portrait-row-height:108px}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:136px}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-cards{height:var(--rp-portrait-row-height)}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){--rp-portrait-row-height:clamp(86px,9cqw,108px)}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero)[data-rp-card-side="bottom"]{--rp-portrait-row-height:126px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:154px}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){top:calc(var(--rp-seat-y) * (100% - 176px) + 96px - (var(--rp-portrait-row-height) - clamp(86px,9cqw,108px))/2)!important}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-portrait{bottom:calc(var(--rp-open-card-height) + 6px)}

/* Playback and mobile action entry stay visible above the device safe area. */
.rp-transport{flex:none;width:100%;min-width:0}
body.replay-focus #rp-workspace.rp-fitted{padding-bottom:calc(var(--rp-transport-height,132px) + 12px)}
body.replay-focus #rp-workspace.rp-fitted .rp-transport{position:fixed;z-index:5;left:max(6px,env(safe-area-inset-left,0px));right:max(6px,env(safe-area-inset-right,0px));bottom:0;width:auto;max-width:1180px;margin:0 auto;box-sizing:border-box;padding:6px 4px max(4px,env(safe-area-inset-bottom,0px));border-top:1px solid #776346;border-radius:10px 10px 0 0;background:#17141ef7;box-shadow:0 -6px 20px #0006}
body.replay-focus #rp-workspace.rp-fitted .rp-transport .rp-table-options{margin-top:0;margin-bottom:4px}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-transport{max-height:calc(100dvh - 56px);overflow-y:auto;overscroll-behavior:contain}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-work-layout{display:flex;flex-direction:column;gap:0;flex:none}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-table-column{flex:none;width:100%;min-width:0}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-side-column{flex:none;align-self:center;width:100%;padding:8px 0}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-edit-controls .rp-record-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
body.replay-focus #rp-workspace.rp-mobile-editor .rp-record-actions button{min-height:44px;padding:5px 2px;font-size:13px;white-space:nowrap}

/* The whole table has its own viewport above the fixed transport. Keeping
   unscaled overflow inside this wrapper also prevents a hidden scroll tail.
   Desktop editing keeps its normal, full-size table in document flow. */
.rp-table-viewport{display:contents}
body.replay-focus #rp-workspace.rp-fitted .rp-table-viewport{display:block;position:relative;flex:none;width:100%;height:var(--rp-stage-height,calc(100dvh - 160px));min-height:0;overflow:hidden;overflow-anchor:none}
body.replay-focus #rp-workspace.rp-fitted .rp-table{position:absolute;left:0;top:0;margin:0;transform-origin:0 0;transform:var(--rp-table-transform,none)}
body.replay-focus #rp-workspace.rp-wide-table .rp-table{min-height:var(--rp-wide-table-height,580px)}
body.replay-focus #rp-workspace.rp-fitted.rp-wide-table .rp-table{width:max(100%,960px)}
body.replay-focus #rp-workspace.rp-fitted #rp-to-list{transform-origin:0 0;transform:scale(var(--rp-list-scale,1))}

/* Account portraits are already cropped by the profile editor. */
#rp-workspace #rp-table .rp-seat.hero .rp-seat-portrait{aspect-ratio:1;border-radius:50%;background:#211827;box-shadow:0 0 0 1px #b29160}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-avatar{left:0;top:0;width:100%;height:100%;transform:none;object-fit:cover}

/* Smaller backs free visible space without changing stable seat measurements. */
#rp-workspace #rp-table{--rp-back-card-width:20px;--rp-back-card-height:28px}
#rp-workspace.rp-wide-table #rp-table{--rp-back-card-width:24px;--rp-back-card-height:34px}
#rp-workspace #rp-table .rp-seat .rp-hole-cards .rp-card.back{width:var(--rp-back-card-width);height:var(--rp-back-card-height);border-radius:3px;box-shadow:0 1px 3px #0006}

/* Small overlapping backs are held at the table-facing shoulder. Known hands
   reserve their revealed row even while concealed, keeping playback stable. */
#rp-workspace #rp-table .rp-seat.rp-concealed-hand .rp-seat-portrait{bottom:2px}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand .rp-hole-cards{display:block;width:calc(var(--rp-back-card-width) * 1.42);height:calc(var(--rp-back-card-height) + 7px);bottom:3px;right:1px;left:auto}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand .rp-hole-cards .rp-card.back{position:absolute;top:auto;bottom:0;left:auto;right:0;transform-origin:50% 85%;transform:rotate(5deg);box-shadow:0 1px 3px #0008}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand .rp-hole-cards .rp-card.back:first-child{right:auto;left:0;bottom:6px;transform:rotate(-5deg)}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="left"] .rp-seat-portrait{left:auto;right:0}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="left"] .rp-hole-cards{left:1px;right:auto}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="left"] .rp-hole-cards .rp-card.back{left:0;right:auto;transform:rotate(-5deg)}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="left"] .rp-hole-cards .rp-card.back:first-child{left:auto;right:0;transform:rotate(5deg)}
/* The seat directly across Hero holds its hand below the portrait, toward
   the center. Side seats, including the upper corners, stay mirrored. */
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="bottom"] .rp-seat-portrait{left:50%;right:auto;transform:translateX(-50%);bottom:calc(var(--rp-back-card-height) + 3px)}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand[data-rp-card-side="bottom"] .rp-hole-cards{left:50%;right:auto;transform:translateX(-50%)}
/* Keep an unknown Hero hand next to the account portrait as well. */
#rp-workspace #rp-table .rp-seat.hero.rp-concealed-hand .rp-seat-portrait{left:calc(50% - 48px)}
#rp-workspace #rp-table .rp-seat.hero.rp-concealed-hand .rp-hole-cards{right:calc(50% - 50px)}

/* Hand-history import follows the existing dark / gold sheets. */
.rp-home-actions{display:flex;flex-wrap:wrap;gap:10px}
.rp-home-actions>button{flex:1 1 190px;min-height:48px}
#rp-import-dialog{max-width:640px;line-height:1.6}
#rp-import-dialog [hidden]{display:none!important}
#rp-import-dialog .rp-section-top{gap:8px;align-items:center;margin-bottom:6px}
#rp-import-dialog h2{margin:0;line-height:1.4}
#rp-import-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;background:transparent;box-shadow:none;color:#c7bdcd}
#rp-import-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#rp-import-help{margin:0 0 16px;font-size:.8125rem;color:#bfb5c7}
.rp-import-source{display:grid;gap:14px}
.rp-import-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:10px;background:#141119}
.rp-import-tabs button{min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:7px;background:transparent;color:#bfb5c7;font-size:.875rem;box-shadow:none}
.rp-import-tabs button[aria-selected="true"]{background:#4b3925;color:#ffe1a4;font-weight:700}
#rp-import-file-select{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:120px;padding:20px 12px;border:1px dashed #8a7650;border-radius:12px;background:#19151f;color:#ffe1a4;font-size:1rem;box-shadow:none}
#rp-import-file-select small{font-size:.8125rem;font-weight:400;color:#bfb5c7}
#rp-import-file-summary{margin:8px 0 0;font-size:.8125rem;overflow-wrap:anywhere;color:#d7c8ae}
#rp-import-text{width:100%;height:150px;min-height:150px;padding:12px;resize:none;box-sizing:border-box;border:0;border-radius:12px;background:#141119;font:14px/1.6 ui-monospace,monospace;white-space:pre-wrap}
#rp-import-formats{margin-top:4px}
#rp-import-formats>summary{width:fit-content;margin-left:auto;padding:10px 0;cursor:pointer;font-size:.8125rem;color:#bfb5c7;list-style:none}
#rp-import-formats>summary::-webkit-details-marker{display:none}
#rp-import-formats[open]>summary{color:#ffe1a4}
#rp-import-formats .rp-help{padding:0 10px 8px;border-radius:8px;background:#19151f;font-size:.8125rem}
#rp-import-formats p{margin:8px 0}
#rp-import-status{margin:10px 0;color:#ffe0a0;font-size:.875rem;font-variant-numeric:tabular-nums}
#rp-import-status:empty,#rp-import-file-summary:empty{display:none}
#rp-import-results{border:0;border-radius:10px;background:#19151f;padding:10px 12px;margin:10px 0;max-height:240px;overflow:auto;overflow-wrap:anywhere}
.rp-import-list,.rp-import-issues{list-style:none;padding:0;margin:0}
.rp-import-list li{padding:9px 0;display:grid;gap:2px;border-bottom:1px solid #ffffff12}
.rp-import-list li:last-child{border:0}
.rp-import-list span{color:#bfb2c9;font-size:.875rem}
#rp-import-results summary{padding:8px 0;color:#f1c28a;cursor:pointer}
.rp-import-issues li{margin-top:12px;font-size:.875rem}
.rp-import-issues p{margin:4px 0;color:#d6c8d4}
.rp-import-footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.rp-import-footer button{flex:1 1 190px;min-height:48px}
.rp-import-caption{margin:10px 0 0;text-align:center;font-size:.75rem;color:#aaa0b4}
#rp-import-dialog :is(button,summary,textarea):focus-visible{outline:2px solid #ffe1a4;outline-offset:3px}

/* Rake shares the cash label's existing slot, so switches never move the table. */
.rp-rake-display{box-sizing:border-box;visibility:hidden;pointer-events:none;grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:2px;width:210px;max-width:100%;height:40px;min-height:40px;margin:0;padding:3px 6px;border:1px solid #b9935659;border-radius:8px;background:#241a24ed;color:#e2c8a1;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}
.rp-rake-display[hidden]{display:none!important}.rp-rake-display span,.rp-rake-display strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rp-rake-display strong{font-size:13px;color:#ffe0a0}
body.replay-focus #rp-workspace #rp-tournament-display{grid-column:1}
body.replay-focus #rp-workspace.rp-cash-hand #rp-rake-display{grid-row:2}
body.replay-focus #rp-workspace.rp-cash-hand:not(.rp-wide-table) #rp-rake-display{grid-row:3}
#rp-workspace.rp-rake-visible #rp-rake-display{visibility:visible}#rp-workspace.rp-rake-visible #rp-tournament-display{visibility:hidden;pointer-events:none}
.rp-cash-tools{display:flex;justify-content:center;margin:0}.rp-cash-tools[hidden]{display:none!important}
#rp-rake-open{width:100%;min-height:36px;padding:5px 12px;font-size:13px;color:#f2d498;border-color:#8a704c;background:#2a2230}
.rp-display-settings{padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #6e5a3c}
.rp-display-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:5px 0;font-size:1rem;line-height:1.5;cursor:pointer}
.rp-display-switch small{display:block;color:#c4b7c9;font-size:.8rem;font-weight:400;line-height:1.5}
.rp-display-switch input{appearance:none;flex:none;width:42px;height:24px;border:1px solid #8b7b8f;border-radius:99px;background:#48404e;position:relative;cursor:pointer;padding:0;margin:0}
.rp-display-switch input:before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;background:#eee7ef;border-radius:50%;transition:transform .15s}
.rp-display-switch input:checked{background:#bb914a;border-color:#ebc782}.rp-display-switch input:checked:before{transform:translateX(18px);background:#fff2cc}
.rp-display-switch input:focus-visible{outline:2px solid #ffe0a0;outline-offset:4px}
.rp-rake-model{margin-top:10px;padding:10px 12px;border:1px solid #61516a;border-radius:9px}.rp-rake-model summary{cursor:pointer;color:#f0d39f;min-height:28px;line-height:28px;font-size:.9rem}
.rp-rake-model .rp-settings-grid{margin-top:12px}.rp-rake-model .rp-help{font-size:.8rem}.rp-rake-setting-actions{display:flex;gap:8px;flex-wrap:wrap}.rp-rake-setting-actions button{min-height:40px;padding:6px 10px;font-size:.8rem}
#rp-view-status:empty{display:none}.rp-settings-subheading{font-size:1rem;color:#f2d39c;margin:0 0 10px}
#rp-rake-dialog{max-width:620px}#rp-rake-heading{outline:none}.rp-rake-guide{font-size:.9375rem;line-height:1.7}.rp-rake-guide p{margin:10px 0}.rp-rake-guide a{color:#ffe0a0;text-underline-offset:3px}
.rp-rake-summary{padding:14px 16px;margin:14px 0;border:1px solid #987848;border-radius:12px;background:linear-gradient(120deg,#3c2c22,#271e32)}.rp-rake-summary>strong{color:#ffe2a1;font-size:1rem}.rp-rake-summary p{font-size:.875rem;color:#e0d5d4;margin:8px 0 0}
.rp-rake-table-wrap{overflow-x:auto}.rp-rake-table{border-collapse:collapse;width:100%;font-size:.875rem;margin:12px 0;text-align:left;font-variant-numeric:tabular-nums}.rp-rake-table caption{text-align:left;color:#cdbed0;font-size:.8rem;padding-bottom:8px}.rp-rake-table th,.rp-rake-table td{padding:10px 8px;border-bottom:1px solid #68526d;white-space:nowrap}.rp-rake-table thead{color:#ddc395;background:#2b2133}.rp-rake-table tbody th{color:#f6ebd9;font-weight:600}
.rp-rake-site{margin:12px 0;border:1px solid #68563e;border-radius:10px;padding:12px 14px}.rp-rake-site summary{cursor:pointer;color:#f2d39f;font-weight:700;min-height:28px;line-height:28px}.rp-rake-site p{font-size:.875rem;color:#e0d5d4}.rp-rake-notes h3{font-size:1rem;color:#f2d39f}.rp-rake-notes ul{padding-left:20px;font-size:.85rem;color:#d6cbd8}.rp-rake-notes li{margin:8px 0}
@media(prefers-reduced-motion:reduce){.rp-display-switch input:before{transition:none}}
/* Compact hand library: content first, lightweight social actions. */
#rp-home .rp-saved-item{padding:16px;background:#1e1b25;border:1px solid #ffffff0d;border-radius:14px;margin-bottom:12px}
#rp-home .rp-list-heading{justify-content:flex-end;border:0;margin:16px 0 12px;padding:0;min-height:40px}
#rp-home .rp-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 10px;gap:10px}
#rp-home .rp-home-actions #rp-new{min-width:0;padding:10px 8px;font-size:.875rem;white-space:nowrap}
#rp-home .rp-home-actions #rp-import-open{flex:1;min-width:0;padding:10px;font-size:.875rem;line-height:1.45}
#rp-home .rp-saved-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 4px;min-height:40px}
#rp-home .rp-visibility-label{padding:3px 8px;font-size:.75rem;border-color:transparent;background:#353020}
#rp-home .rp-public-menu summary{border:0;background:transparent;min-width:40px;min-height:40px;color:#c7bbcc;font-size:24px}
#rp-home .rp-public-menu-items{min-width:152px;border-color:#ffffff18;background:#302938;z-index:10}
#rp-home .rp-public-menu-items button{color:#ede5f2;font-size:.9375rem}
#rp-home .rp-public-menu-items .rp-delete,#rp-home [data-rp-public-delete]{color:#efb0b6}
#rp-home .rp-public-menu-items button:hover{background:#ffffff0b}
#rp-home .rp-saved-content{display:block;margin:0 0 16px}
#rp-home .rp-saved-item h3{font-size:1.125rem;line-height:1.5;letter-spacing:-.02em}
#rp-home .rp-hand-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 0;margin:7px 0 0;color:#b6adbd;font-size:.8125rem;line-height:1.65}
#rp-home .rp-hand-meta>*{min-width:0;overflow-wrap:anywhere}
#rp-home .rp-hand-meta>*+*::before{content:'·';padding:0 6px;color:#817888}
#rp-home .rp-view-count{margin:0;font:inherit;color:inherit}
#rp-home .rp-public-cardsets{margin:14px 0;gap:16px;flex-wrap:nowrap}
#rp-home .rp-public-cardsets>div>span{font-size:.75rem;margin-bottom:6px;color:#c5b79d}
#rp-home .rp-public-cards .rp-card{width:clamp(27px,7.2vw,40px);height:clamp(39px,10.3vw,57px)}
#rp-home .rp-saved-note,#rp-home .rp-public-memo{border:0;padding:0;margin:0 0 14px}
#rp-home .rp-saved-note p,#rp-home .rp-public-memo p{margin:0;white-space:pre-wrap;color:#e0d8e6;font-size:.9375rem;line-height:1.65;overflow-wrap:anywhere}
#rp-home .rp-public-memo .text-button{min-height:40px;padding:4px 0;margin:0;color:#bba8ca;font-size:.8125rem}
#rp-home .rp-saved-buttons{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
#rp-home .rp-saved-buttons>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;margin:0;padding:9px 16px;font-size:.9375rem;white-space:nowrap}
#rp-home .rp-saved-buttons svg,#rp-home .rp-feed-poll svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#rp-home .rp-saved-ai{background:transparent;border-color:#ffffff14;color:#e2c68b}
#rp-home .rp-public-heading{align-items:center;min-height:36px;gap:6px;margin:-2px 0 10px}
#rp-home .rp-public-author[data-reward-photo]{display:flex;flex:1;min-width:0;align-items:center;flex-wrap:nowrap;gap:7px;margin:0;font-size:.875rem;line-height:1.4}
#rp-home .rp-public-author>strong{flex:0 1 auto;min-width:0;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#rp-home .rp-public-author img{width:32px;height:32px;min-width:32px;object-fit:cover;flex:none;border-radius:50%}
#rp-home .rp-public-author>.reward-avatar-shell{width:32px;height:32px;flex:none}
#rp-home .rp-public-author>.reward-public-decoration{flex:0 0 auto;margin:0;gap:4px;flex-wrap:nowrap;min-width:0}
#rp-home .rp-public-author .reward-badge{padding:1px 5px;border:0;border-radius:5px;background:#ffffff06;font-size:10px}
#rp-home .rp-public-author .reward-title-pill{padding:2px 5px!important;gap:3px;border-width:0!important;border-radius:5px!important;font-size:10px;box-shadow:none;max-width:110px;white-space:nowrap}
#rp-home .rp-public-buttons{justify-content:space-between;padding:0;gap:8px}
#rp-home .rp-social-actions{display:flex;align-items:center;gap:10px;min-width:0}
#rp-home .rp-social-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:0;box-shadow:none;background:transparent;color:#beb2c8;font-size:.875rem;padding:6px;min-width:36px}
#rp-home .rp-social-actions .rp-like-group{display:inline-flex;align-items:center;gap:0;flex:none}
#rp-home .rp-social-actions .rp-likers-button{min-width:24px;padding:6px 4px;border-radius:6px}
#rp-home .rp-social-actions [aria-pressed=true]{color:#edb6bb;background:transparent}
#rp-home .rp-social-actions [aria-pressed=true] svg{fill:currentColor}
#rp-home .rp-public-buttons>.rp-feed-replay{flex:0 0 auto;padding:9px 13px;font-size:.875rem}
#rp-home .rp-feed-poll{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;gap:8px;margin:4px 0 12px;padding:10px 12px;border:0;border-radius:8px;background:#ffffff06;color:#dec88f;font-size:.875rem;white-space:normal;text-align:left}
#rp-home .rp-feed-poll small{margin-left:auto;color:#aaa0b3;font-size:.75rem;white-space:nowrap}
#rp-home .rp-ranking-score{gap:10px;margin:0 0 12px;padding:0;border:0;justify-content:space-between}
#rp-home .rp-rank-place{display:inline-flex;align-items:center;gap:5px;min-height:28px;min-width:0;padding:3px 8px;border:0;border-radius:6px;background:#ffffff08;color:#c8bacf;font-size:.8125rem}
#rp-home .rp-rank-place[data-rank="1"]{background:#e9c67d18;color:#f1d596}
#rp-home .rp-rank-place svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
#rp-home .rp-ranking-score>span{font-size:.75rem;color:#a99db2}
#rp-home .rp-ranking-periods{margin:12px 0 16px}
#rp-home :is(button,summary):focus-visible{outline:2px solid #efd494;outline-offset:2px}
#rp-settings-dialog .rp-icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;font-size:28px;color:#c7b8cf}
#rp-settings-dialog .rp-section-top{margin-bottom:12px}
#rp-settings-dialog .rp-setup-choice{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:.875rem}
#rp-settings-dialog .rp-segments{display:flex;align-items:stretch;gap:4px;padding:4px;border-radius:10px;background:#15131d}
#rp-settings-dialog .rp-segments button,#rp-settings-dialog .rp-count-other{flex:1;display:flex;align-items:center;justify-content:center;min-height:40px;min-width:0;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:#bfb2c9;font-size:.9375rem;white-space:nowrap}
#rp-settings-dialog .rp-segments button[aria-pressed=true]{background:#4b3b26;color:#ffe4ac;font-weight:700}
#rp-settings-dialog .rp-table-options-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:12px;margin-top:14px;align-items:end}
#rp-settings-dialog .rp-count-segments{gap:1px;padding:3px}
#rp-settings-dialog .rp-count-segments button,#rp-settings-dialog .rp-count-other{padding:5px 3px;font-size:.8125rem}
#rp-settings-dialog .rp-count-other{position:relative;flex:1.2}
#rp-settings-dialog .rp-count-other select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#rp-settings-dialog .rp-count-other:focus-within{outline:2px solid #efd494;outline-offset:1px}
#rp-settings-dialog .rp-settings-stacks{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
#rp-settings-dialog .rp-settings-stacks .rp-help{grid-column:1/-1;font-size:.75rem;line-height:1.6;color:#b5a7bf}
#rp-settings-dialog .rp-field input,#rp-settings-dialog .rp-field select{border-color:#ffffff20;background:#17141f;border-radius:8px;padding:9px 8px}
#rp-settings-dialog .rp-settings-hero,#rp-settings-dialog .rp-settings-opponent{margin:14px 0 0;gap:12px}
#rp-settings-dialog .rp-settings-info{padding-top:14px;margin-top:16px;border-color:#ffffff10}
@media(max-width:380px){
 #rp-home .rp-saved-item{padding:12px}
 #rp-home .rp-social-actions{gap:3px}
 #rp-home .rp-public-buttons>.rp-feed-replay{padding:9px 10px}
 #rp-home .rp-public-author[data-reward-photo]{gap:5px}
 #rp-home .rp-public-author .reward-title-pill{font-size:9px;max-width:100px}
 #rp-settings-dialog{padding:14px}
 #rp-settings-dialog .rp-table-options-grid{gap:8px}
}

/* Analysis replay: metadata stays outside the measured table and its scale. */
body.replay-focus #rp-workspace .rp-replay-header{display:flex;align-items:center;gap:8px;flex:none;width:100%;min-height:48px;margin:0 auto 4px;padding:2px 6px;box-sizing:border-box;max-width:1180px}
body.replay-focus #rp-workspace .rp-replay-header button{border:0;background:transparent;box-shadow:none;min-height:44px;color:#d4c6de}
body.replay-focus #rp-workspace #rp-replay-header #rp-to-list{position:static;flex:none;width:auto;height:44px;padding:4px 6px;font-size:14px;transform:none;white-space:nowrap;color:#f0d49b}
body.replay-focus #rp-workspace #rp-replay-header #rp-tournament-display{position:static;display:block;flex:1;min-width:0;width:auto;max-width:none;height:44px;max-height:none;margin:0;padding:0 4px;font-size:13px;line-height:44px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;visibility:visible;pointer-events:auto}
body.replay-focus #rp-workspace .rp-replay-header .rp-tournament-name,body.replay-focus #rp-workspace .rp-replay-header .rp-tournament-context{display:inline;font-size:inherit;line-height:inherit;color:inherit;white-space:nowrap}
body.replay-focus #rp-workspace .rp-replay-header .rp-tournament-name+.rp-tournament-context:before{content:' · '}
body.replay-focus #rp-workspace #rp-replay-header #rp-video-open{flex:none;width:44px;padding:10px;opacity:1;color:#c2b0ce}
#rp-workspace .rp-icon-control svg,#rp-workspace .rp-playback svg,#rp-reveal-toggle svg{display:block;flex:none;width:22px;height:22px}

/* Retain purple and gold, with quieter cloth and position-first player seats. */
#rp-workspace #rp-table{--rp-rail-width:10px;--rp-seat-card-height:54px}
#rp-workspace.rp-wide-table #rp-table{--rp-rail-width:16px;--rp-seat-card-height:58px}
#rp-workspace #rp-table .rp-felt{background:radial-gradient(ellipse at 50% 40%,#633b7b 0,#482c61 52%,#291b3d 100%);box-shadow:inset 0 0 0 1px #bda37624,inset 0 0 26px #10071b88,0 0 0 var(--rp-rail-width) #211927,0 0 0 calc(var(--rp-rail-width) + 2px) #c8a66c,0 5px 0 calc(var(--rp-rail-width) + 2px) #645030,0 14px 20px #0007}
#rp-workspace #rp-table .rp-felt::before{background:linear-gradient(180deg,#302138,#241b2b)}
#rp-workspace #rp-table .rp-felt::after{color:#d9b1ff18;text-shadow:none;top:74%}
#rp-workspace #rp-table .rp-seat:not(.hero){--rp-portrait-row-height:54px}
#rp-workspace #rp-table .rp-seat:not(.hero)[data-rp-card-side="bottom"]{--rp-portrait-row-height:54px}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:96px}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){--rp-portrait-row-height:58px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:106px}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-portrait{width:42px;max-width:none;height:42px;aspect-ratio:1;left:2px;right:auto;bottom:4px;transform:none;border-radius:50%;overflow:visible;filter:none}
#rp-workspace #rp-table .rp-seat.rp-concealed-hand:not(.hero)[data-rp-card-side="left"] .rp-seat-portrait{left:auto;right:2px;bottom:4px;transform:none}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero) .rp-seat-portrait{left:50%;right:auto;bottom:calc(var(--rp-open-card-height) + 8px);width:34px;height:34px;transform:translateX(-50%)}
#rp-workspace #rp-table .rp-position-badge{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;border:1px solid #b8995c70;background:#211c2c;color:#f2d69e;font-size:12px;font-weight:750;letter-spacing:-.04em;box-shadow:0 2px 5px #0003}
#rp-workspace #rp-table .rp-seat.active .rp-position-badge{color:#fff0c9;background:#55412b;border-color:#e3bf74}
#rp-workspace #rp-table .rp-seat.winner .rp-position-badge{color:#b3efcf;background:#173b2d;border-color:#65a981}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-pos{display:none}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-meta{display:flex;align-items:center;justify-content:center}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-box{border:1px solid #b99a6333;border-radius:10px;background:#201b2bef;box-shadow:none;padding:4px 3px}
#rp-workspace #rp-table .rp-seat:not(.active):not(.winner) .rp-seat-box{background:#201b2bef;border-color:#b99a6333;box-shadow:none}
#rp-workspace #rp-table .rp-seat.hero:not(.active):not(.winner) .rp-seat-box{border-color:#c5a06a66}
#rp-workspace #rp-table .rp-seat.active .rp-seat-box{border-color:#e3bf74;outline:0;box-shadow:none;background:#463629}
#rp-workspace #rp-table .rp-seat.winner .rp-seat-box{border-color:#65a981;background:#173b2d;box-shadow:none}
#rp-workspace #rp-table .rp-seat-stack{font-weight:700;color:#f5e5bd;font-variant-numeric:tabular-nums}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-name{font-size:11px;color:#b8a9c4;line-height:14px}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero) .rp-hole-cards{left:50%;right:auto;bottom:2px;transform:translateX(-50%);justify-content:center}
body.replay-focus #rp-workspace #rp-table .rp-seat.hero{width:138px}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-cards{height:62px}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-portrait{width:44px;height:44px;left:2px;bottom:8px}
#rp-workspace #rp-table .rp-seat.hero .rp-hole-cards{bottom:4px;right:0}
#rp-workspace #rp-table .rp-seat.hero.rp-concealed-hand .rp-seat-portrait{left:22px}
#rp-workspace #rp-table .rp-seat.hero.rp-concealed-hand .rp-hole-cards{right:20px}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-seat.hero{width:150px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.hero .rp-seat-cards{height:70px}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){top:calc(var(--rp-seat-y) * (100% - 176px) + 96px - (var(--rp-portrait-row-height) - 58px)/2)!important}

/* Three fixed rows keep the board in the same place through every street. */
body.replay-focus #rp-workspace #rp-table{--rp-phone-center-height:142px}
body.replay-focus #rp-workspace.rp-cash-hand #rp-table{--rp-phone-center-height:190px}
body.replay-focus #rp-workspace #rp-table .rp-table-center{top:46%;left:20%;width:60%;transform:translateY(-50%);grid-template-rows:30px 62px 34px;gap:8px}
body.replay-focus #rp-workspace.rp-cash-hand #rp-table .rp-table-center{grid-template-rows:30px 62px 34px 40px}
body.replay-focus #rp-workspace:not(.rp-wide-table) #rp-table .rp-table-center{top:calc(46% - var(--rp-phone-center-height)/2 + var(--rp-phone-center-offset,0px));transform:none}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-table-center{left:25%;width:50%}
body.replay-focus #rp-workspace #rp-table #rp-board{grid-row:2;gap:5px;height:62px;min-height:62px}
#rp-workspace #rp-table #rp-board .rp-card.empty{visibility:visible;background:#ffffff05;border:1px dashed #ffffff21;box-shadow:none;color:transparent}
body.replay-focus #rp-workspace #rp-table #rp-pot-odds{grid-row:3;border:0;background:transparent;box-shadow:none;color:#d8c6e1;width:auto;min-height:28px;height:auto;padding:4px;font-size:12px}
body.replay-focus #rp-workspace #rp-table #rp-rake-display{grid-row:4;border:0;background:#21182d77;box-shadow:none}
#rp-workspace #rp-table .rp-pot{text-shadow:none}

/* Familiar transport: roomy step buttons and compact icon toggles. */
body.replay-focus #rp-workspace .rp-transport{border-color:#ffffff0d;box-shadow:0 -4px 16px #0003}
body.replay-focus #rp-workspace .rp-table-options{min-height:40px;padding:0 6px;margin-bottom:4px;gap:8px;flex-wrap:nowrap;justify-content:space-between}
#rp-workspace .rp-table-options button{border:0;background:transparent;box-shadow:none;min-height:40px;color:#ab9fb7}
#rp-workspace #rp-reveal-toggle{display:flex;align-items:center;gap:7px;padding:4px 8px;font-size:13px;white-space:nowrap}
#rp-workspace #rp-reveal-toggle[aria-pressed="true"],#rp-workspace #rp-sound[aria-pressed="true"]{color:#efd293}
#rp-workspace #rp-sound,#rp-workspace #rp-sound-settings{width:44px;min-height:40px;padding:9px}
body.replay-focus #rp-workspace .rp-playback{display:grid;grid-template-columns:44px minmax(58px,1fr) 52px minmax(58px,1fr) 48px;gap:8px;max-width:560px;margin:0 auto}
body.replay-focus #rp-workspace .rp-playback button{height:50px;min-height:50px;border:0;border-radius:10px;padding:10px;box-shadow:none;display:flex;align-items:center;justify-content:center}
#rp-workspace #rp-prev,#rp-workspace #rp-next{background:#302936;color:#f4e6cf}
#rp-workspace #rp-prev svg,#rp-workspace #rp-next svg{width:25px;height:25px}
#rp-workspace #rp-first,#rp-workspace #rp-speed{background:transparent;color:#b9a9c4;font-size:14px;font-weight:650}
#rp-workspace #rp-play{background:#ebcd91;color:#271e15}
body.replay-focus #rp-workspace .rp-progress{height:24px;min-height:24px;margin:2px 0 0}
@media(max-width:360px){body.replay-focus #rp-workspace .rp-replay-header{gap:3px;padding:0 2px}body.replay-focus #rp-workspace #rp-replay-header #rp-tournament-display{font-size:12px}body.replay-focus #rp-workspace .rp-playback{gap:5px;grid-template-columns:40px minmax(48px,1fr) 48px minmax(48px,1fr) 44px}}

#rp-workspace.rp-wide-table #rp-table .rp-seat.hero .rp-seat-portrait{width:44px;height:44px}

/* Compact editing dock returns vertical space to larger cards and positions. */
body.replay-focus #rp-workspace.rp-fitted .rp-transport{padding:4px 4px max(4px,env(safe-area-inset-bottom,0px));background:#17141e}
body.replay-focus #rp-workspace .rp-table-options{min-height:36px;margin:0 0 2px;padding:0 4px}
body.replay-focus #rp-workspace .rp-table-options button{height:36px;min-height:36px;padding:6px}
body.replay-focus #rp-workspace #rp-reveal-toggle{flex:none;margin-left:auto;width:auto;min-width:0;padding:6px 8px;gap:5px;border-radius:8px;background:#352b3e;color:#ffe2a0;font-size:14px;font-weight:700}
body.replay-focus #rp-workspace #rp-reveal-toggle[aria-pressed="true"]{background:#ebcd91;color:#271e15}
body.replay-focus #rp-workspace #rp-sound,body.replay-focus #rp-workspace #rp-sound-settings{width:40px;height:36px;min-height:36px;padding:7px}
body.replay-focus #rp-workspace .rp-edit-controls:not([hidden]){gap:4px;margin-bottom:4px}
body.replay-focus #rp-workspace .rp-edit-controls .rp-stage-controls{grid-template-rows:44px;min-height:44px}
body.replay-focus #rp-workspace .rp-edit-controls .rp-action-panel{border:0;background:transparent;padding:0;margin:0;box-shadow:none}
body.replay-focus #rp-workspace .rp-edit-controls .rp-actions{gap:6px;margin:0}
body.replay-focus #rp-workspace .rp-edit-controls .rp-actions button{height:44px;min-height:44px;padding:4px 6px;font-size:16px;line-height:18px;border-radius:9px}
body.replay-focus #rp-workspace .rp-edit-controls #rp-call{flex-direction:row;flex-wrap:wrap;column-gap:6px;row-gap:0}
body.replay-focus #rp-workspace .rp-edit-controls .rp-call-amount{font-size:14px;line-height:16px;max-width:100%;overflow-wrap:anywhere}
body.replay-focus #rp-workspace .rp-edit-controls .rp-record-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:min(100%,320px);margin:0 0 0 auto}
body.replay-focus #rp-workspace .rp-edit-controls .rp-record-actions button{height:36px;min-height:36px;padding:4px 7px;font-size:14px;line-height:18px;border-radius:8px}
body.replay-focus #rp-workspace .rp-edit-controls #rp-undo,body.replay-focus #rp-workspace .rp-edit-controls #rp-redo{border-color:transparent;background:#ffffff06}
body.replay-focus #rp-workspace .rp-playback{grid-template-columns:40px minmax(48px,1fr) 44px minmax(48px,1fr) 44px;gap:6px;max-width:460px}
body.replay-focus #rp-workspace .rp-playback button{height:40px;min-height:40px;padding:7px;border-radius:8px}
body.replay-focus #rp-workspace .rp-progress{height:20px;min-height:20px;margin:0}

/* Wide position pills fit UTG+1 at a readable size without taller avatar rows. */
#rp-workspace #rp-table{--rp-open-card-width:42px;--rp-open-card-height:58px;--rp-seat-card-height:68px}
#rp-workspace.rp-wide-table #rp-table{--rp-open-card-width:48px;--rp-open-card-height:66px;--rp-seat-card-height:68px}
#rp-workspace #rp-table .rp-seat:not(.hero),#rp-workspace #rp-table .rp-seat:not(.hero)[data-rp-card-side="bottom"]{--rp-portrait-row-height:68px}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:100px}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){--rp-portrait-row-height:68px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.rp-known-cards:not(.hero){--rp-portrait-row-height:108px}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-seat-portrait,
#rp-workspace #rp-table .rp-seat.rp-concealed-hand:not(.hero)[data-rp-card-side="left"] .rp-seat-portrait,
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero) .rp-seat-portrait{left:50%;right:auto;top:2px;bottom:auto;width:72px;height:30px;transform:translateX(-50%)}
#rp-workspace #rp-table .rp-position-badge{font-size:18px;font-weight:800;letter-spacing:0;line-height:1;border-radius:15px;background:#211b2b;color:#ffe7b3;border-color:#bda273;box-shadow:none}
#rp-workspace #rp-table .rp-seat:not(.hero) .rp-hole-cards{bottom:0}
#rp-workspace #rp-table .rp-seat.rp-known-cards:not(.hero) .rp-hole-cards{bottom:0}
#rp-workspace #rp-table .rp-seat .rp-seat-meta .rp-seat-stack{font-size:17px;line-height:1.25;color:#fff0d0}
#rp-workspace #rp-table .rp-seat .rp-seat-meta.long-stack .rp-seat-stack{font-size:14px}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-meta .rp-seat-pos{font-size:18px;line-height:1.25;color:#ffe0a0}
#rp-workspace #rp-table .rp-seat.hero .rp-seat-cards{height:70px}
#rp-workspace.rp-wide-table #rp-table .rp-seat.hero .rp-seat-cards{height:78px}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-seat.hero{width:158px}
#rp-workspace.rp-wide-table #rp-table .rp-seat:not(.hero){top:calc(var(--rp-seat-y) * (100% - 176px) + 96px - (var(--rp-portrait-row-height) - 68px)/2)!important}

body.replay-focus #rp-workspace #rp-table{--rp-phone-center-height:150px}
body.replay-focus #rp-workspace.rp-cash-hand #rp-table{--rp-phone-center-height:198px}
body.replay-focus #rp-workspace #rp-table .rp-table-center{left:18%;width:64%;grid-template-rows:30px 70px 34px}
body.replay-focus #rp-workspace.rp-cash-hand #rp-table .rp-table-center{grid-template-rows:30px 70px 34px 40px}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-table-center{left:25%;width:50%}
body.replay-focus #rp-workspace #rp-table #rp-board{height:70px;min-height:70px;gap:4px}
body.replay-focus #rp-workspace #rp-table .rp-table-center .rp-card{width:clamp(34px,10.8cqw,46px);height:clamp(50px,15cqw,66px)}
body.replay-focus #rp-workspace.rp-wide-table #rp-table .rp-table-center .rp-card{width:50px;height:70px}

body.replay-focus #rp-workspace .rp-edit-controls .rp-next-panel{margin:0;padding:0 6px;border:0;background:transparent}
body.replay-focus #rp-workspace .rp-edit-controls .rp-next-panel>.primary{min-height:44px;height:44px;margin:0;padding:4px 8px}

/* Position and stack share one rail badge. Every hand stays centered above
   its badge, including top seats in portrait and landscape layouts. */
body.replay-focus #rp-workspace.rp-edge-seats #rp-table{--rp-seat-card-height:32px;--rp-edge-inset-x:44px;--rp-edge-inset-y:48px;width:100%;max-width:none}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-felt{inset:var(--rp-edge-inset-y) var(--rp-edge-inset-x);border-radius:999px}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat,
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero,
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat:not(.hero){width:76px;min-height:0;gap:2px;left:var(--rp-rail-x,50%)!important;top:var(--rp-rail-y,50%)!important;bottom:auto!important;transform:translate(-50%,-50%);justify-content:flex-start}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-cards{height:32px;width:100%;order:0;flex:none;margin-bottom:4px}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.rp-known-cards .rp-seat-cards{height:60px}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-box{position:relative;order:1;display:flex;flex:none;align-items:center;justify-content:center;width:68px;height:68px;min-height:68px;box-sizing:border-box;border:2px solid #9e875f;border-radius:50%;padding:4px;gap:0;background:#211b2b;box-shadow:0 2px 6px #0004;outline:0;animation:none}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-name{display:none}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-meta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;line-height:1;white-space:nowrap}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-meta .rp-seat-pos{display:block;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;background:none;padding:0;font-size:17px;line-height:20px;font-weight:800;letter-spacing:-.03em;text-align:center;color:#ffe7b3}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-meta .rp-seat-stack{display:block;max-width:100%;font-size:17px;line-height:21px;font-weight:750;text-align:center;color:#fff6e0;letter-spacing:-.04em;overflow:hidden;text-overflow:ellipsis}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-meta.long-stack .rp-seat-stack{font-size:13px;letter-spacing:-.05em}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.active .rp-seat-box{border-color:#ffe0a0;background:#483725;box-shadow:0 0 0 2px #e4bc5f40}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-box{border-color:#58bea3}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.winner .rp-seat-box{border-color:#8cdbb1;background:#163d30}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-seat-last{order:2;height:20px;min-height:20px;font-size:12px;padding:2px 4px;line-height:16px;max-width:100%}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-hole-cards{display:flex;flex-wrap:nowrap;align-items:flex-end;justify-content:center;width:max-content;height:auto;left:50%;right:auto;top:auto;bottom:0;gap:4px;transform:translateX(-50%)}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-hole-cards>.rp-card{position:relative;inset:auto;flex:0 0 auto;transform:none;margin:0;overflow:hidden;isolation:isolate}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-hole-cards .rp-card.back,
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat .rp-hole-cards .rp-card.back:first-child{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:22px;height:32px;transform:none;margin:0}
/* Each back owns its absolutely positioned artwork; a static card makes both
   images stretch across the pair and overlap as a single landscape card. */
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-box{width:100%;height:auto;min-height:0;flex-direction:column;padding:0;gap:4px;border:0;border-radius:0;background:transparent;box-shadow:none}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-portrait{display:block;position:relative;flex:none;left:auto;right:auto;top:auto;bottom:auto;width:68px;height:68px;max-width:none;box-sizing:border-box;transform:none;filter:none;overflow:hidden;border:2px solid #58bea3;border-radius:50%;background:#211b2b;box-shadow:0 2px 6px #0004;z-index:2}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero.active .rp-seat-portrait{border-color:#ffe0a0;box-shadow:0 0 0 2px #e4bc5f40}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero.winner .rp-seat-portrait{border-color:#8cdbb1}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-meta{flex-direction:row;gap:6px;min-height:23px}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-meta .rp-seat-pos{flex:none}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-meta .rp-seat-stack{min-width:0}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero .rp-seat-cards{margin-bottom:4px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table{--rp-edge-inset-x:52px;--rp-edge-inset-y:52px;--rp-seat-card-height:36px;--rp-open-card-width:48px;--rp-open-card-height:66px;height:var(--rp-wide-table-height,500px);min-height:var(--rp-wide-table-height,500px);aspect-ratio:auto}
body.replay-focus #rp-workspace.rp-edge-seats.rp-fitted.rp-wide-table #rp-table{width:max(100%,760px)}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat{width:84px;height:auto}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat .rp-seat-cards{height:36px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat.rp-known-cards .rp-seat-cards{height:68px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat .rp-seat-box{width:78px;height:78px;min-height:78px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat .rp-seat-meta .rp-seat-pos{font-size:19px;line-height:22px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat .rp-seat-meta .rp-seat-stack{font-size:19px;line-height:23px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat .rp-seat-meta.long-stack .rp-seat-stack{font-size:14px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat.hero .rp-seat-box{width:100%;height:auto;min-height:0}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat.hero .rp-seat-portrait{width:78px;height:78px}

body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.rp-known-cards{width:92px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat.rp-known-cards{width:104px}
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero{width:112px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-wide-table #rp-table .rp-seat.hero{width:124px}
body.replay-focus #rp-workspace.rp-edge-seats.rp-fitted:not(.rp-wide-table) #rp-table{width:var(--rp-phone-width,100%)}

/* Pulse only the current actor's rail circle; keep cards, text and layout steady. */
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.active:not(.hero) .rp-seat-box,
body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero.active .rp-seat-portrait{
 animation:rp-seat-turn-pulse 1.4s ease-in-out infinite;
}
@keyframes rp-seat-turn-pulse{
 0%,100%{border-color:#fff4c4;box-shadow:0 0 0 4px #f6c55f80,0 0 20px #f6c55fb3}
 50%{border-color:#c5a15c;box-shadow:0 0 0 2px #f6c55f20,0 0 7px #f6c55f33}
}
@media(prefers-reduced-motion:reduce){
 body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.active:not(.hero) .rp-seat-box,
 body.replay-focus #rp-workspace.rp-edge-seats #rp-table .rp-seat.hero.active .rp-seat-portrait{
  animation:none;border-color:#fff4c4;box-shadow:0 0 0 3px #f6c55f66,0 0 12px #f6c55f80;
 }
}

/* Compact, combinable hand-library filters. */
#rp-home .rp-hand-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
#rp-home .rp-hand-filters>label{display:grid;gap:0;flex:1;min-width:0;margin:0;color:#bcb2c5;font-size:.75rem}
#rp-home .rp-hand-filters select{width:100%;min-width:0;min-height:42px;margin:0;padding:8px 24px 8px 10px;border:0;border-radius:8px;background-color:#27212f;color:#f7e8c9;font-size:.875rem}
#rp-home #rp-filter-reset{min-height:42px;padding:6px 8px;border:0;background:transparent;color:#dfc48e;font-size:.8125rem}
#rp-home .rp-hand-tags{display:flex;flex-wrap:wrap;gap:6px 10px;margin:6px 0 0;color:#e6ca90;font-size:.75rem;line-height:1.5}
#rp-home .rp-hand-tags span+span{color:#bcb2c5}
#rp-home .rp-hand-filters select:focus-visible{outline:2px solid #e6ca90;outline-offset:2px}

#rp-home .rp-hand-filters[hidden],#rp-filter-reset[hidden]{display:none!important}

/* The title's native button covers the card; independent controls sit above it. */
#rp-home .rp-compact-hand{position:relative;padding:14px;isolation:isolate}
#rp-home .rp-compact-hand:has(.rp-public-menu[open]){z-index:5}
#rp-home .rp-compact-hand .rp-saved-heading{gap:8px;margin:-4px 0 2px;min-height:40px}
#rp-home .rp-compact-hand .rp-saved-heading h3{flex:1;min-width:0;margin:0}
#rp-home .rp-compact-hand h3{margin:0;font-size:1rem;line-height:1.45}
#rp-home .rp-compact-hand .rp-visibility-label{flex:none;margin:0;padding:2px 7px;font-size:.6875rem;white-space:nowrap}
#rp-home .rp-compact-hand .rp-card-open{position:static;display:block;width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;filter:none;transform:none;text-align:left;color:inherit;font:inherit;font-weight:700;line-height:inherit;letter-spacing:inherit;white-space:normal;overflow-wrap:anywhere}
#rp-home .rp-compact-hand .rp-card-open::after{content:'';position:absolute;inset:0;border-radius:14px;z-index:1;cursor:pointer}
#rp-home .rp-compact-hand .rp-card-open:hover::after{box-shadow:inset 0 0 0 1px #e9c47f45}
#rp-home .rp-compact-hand .rp-card-open:focus-visible{outline:0}
#rp-home .rp-compact-hand .rp-card-open:focus-visible::after{outline:2px solid #e9c47f;outline-offset:2px}
#rp-home .rp-compact-hand .rp-public-menu{z-index:3}
#rp-home .rp-compact-hand .rp-public-heading,#rp-home .rp-compact-hand .rp-social-actions,#rp-home .rp-compact-hand .rp-feed-poll{position:relative;z-index:2}
#rp-home .rp-compact-hand .rp-public-heading:has(.rp-public-menu[open]){z-index:4}
#rp-home .rp-compact-hand .rp-hand-meta{gap:3px 0;margin:3px 0 0;font-size:.75rem;line-height:1.6}
#rp-home .rp-compact-hand .rp-hand-meta>span:first-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#rp-home .rp-compact-hand .rp-hand-tags{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0 0 0 7px;font-size:.6875rem}
#rp-home .rp-compact-hand .rp-hand-tags>span{padding:0 5px;border-radius:4px;background:#ffffff06;white-space:nowrap}
#rp-home .rp-compact-hand .rp-hand-meta>.rp-hand-tags::before,#rp-home .rp-compact-hand .rp-hand-meta>.rp-hero-position::before{content:none}
#rp-home .rp-compact-hand .rp-hero-position{margin-left:7px;padding:0 5px;border-radius:4px;background:#3a3023;color:#f0d6a4;font-size:.6875rem;white-space:nowrap}
#rp-home .rp-compact-hand .rp-hand-visual{display:flex;align-items:center;gap:6px;margin:10px 0 0;min-width:0}
#rp-home .rp-compact-hand .rp-public-cardsets{margin:10px 0 0;gap:10px;min-width:0}
#rp-home .rp-compact-hand .rp-hand-visual .rp-public-cardsets{margin:0}
#rp-home .rp-compact-hand .rp-public-cards{gap:2px}
#rp-home .rp-compact-hand .rp-public-cards .rp-card{width:clamp(26px,7vw,40px);height:clamp(37px,10vw,57px)}
#rp-home .rp-compact-hand .rp-saved-ai{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;margin:0 0 0 auto;border:0;border-radius:10px;background:transparent;color:#d7bc83}
#rp-home .rp-compact-hand .rp-saved-ai:hover{background:#ffffff08}
#rp-home .rp-compact-hand .rp-saved-ai svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#rp-home .rp-compact-hand .rp-saved-note,#rp-home .rp-compact-hand .rp-public-memo{margin:8px 0 0;padding:0;border:0}
#rp-home .rp-compact-hand .rp-saved-note p,#rp-home .rp-compact-hand .rp-public-memo p{display:block;overflow:visible;max-height:none;line-height:1.55;font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}
#rp-home .rp-compact-hand .rp-public-buttons{margin-top:8px}
#rp-home .rp-compact-hand .rp-public-heading{margin-bottom:6px}
@media(max-width:350px){#rp-home .rp-compact-hand{padding:12px}#rp-home .rp-home-actions{gap:8px}#rp-home .rp-home-actions #rp-new,#rp-home .rp-home-actions #rp-import-open{font-size:.8125rem}#rp-home .rp-hand-filters select{padding-left:7px;font-size:.8125rem}}

/* Bad-beat ranking reuses the compact hand feed and its replay controls. */
#rp-home .rp-ranking-kinds{display:flex;gap:8px;margin:0 0 12px}
#rp-home .rp-ranking-kinds button{flex:1;min-height:42px;padding:8px 12px;border:0;background:#26212e;border-radius:9px;color:#bbb1c4;font-size:.9375rem}
#rp-home .rp-ranking-kinds button[aria-pressed=true]{background:#4c3c24;color:#ffe2a1;font-weight:700}
#rp-home .rp-badbeat-guide{font-size:.8125rem;line-height:1.65;color:#c8bbce;margin:0 0 12px}
#rp-home .rp-badbeat-guide summary{cursor:pointer;padding:5px 0;color:#e5c990}
#rp-home .rp-badbeat-guide p{font-size:inherit;margin:6px 0;max-width:76ch}
#rp-home .rp-badbeat-detail{margin-top:12px;padding:10px 12px;border-radius:10px;background:#292132}
#rp-home .rp-badbeat-detail p{font-size:.8125rem;margin:0 0 8px;color:#ebd19e}
#rp-home .rp-badbeat-detail small{display:block;margin-top:8px;color:#aea2b9;font-size:.6875rem}
#rp-home .rp-badbeat-match{display:flex;align-items:start;flex-wrap:wrap;gap:10px 16px}
#rp-home .rp-badbeat-match>div>span{display:block;font-size:.6875rem;color:#bdb0c7;margin:0 0 4px}
#rp-home .rp-badbeat-match .rp-card{width:28px;height:39px;font-size:1.125rem}
#rp-home .rp-badbeat-match .rp-card span{font-size:.75rem}
#rp-share-dialog .rp-share-badbeat{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #403649}
#rp-share-badbeat>div{flex:1;min-width:160px}
#rp-share-badbeat>div>span{display:block;font-size:.75rem;margin-top:4px}
#rp-share-badbeat-toggle{min-height:42px;padding:8px 12px;font-size:.875rem}
#rp-share-badbeat-status{flex-basis:100%;font-size:.8125rem;line-height:1.5;margin:0}

.rp-ranking-prizes{margin:12px 0 16px;padding:12px 14px;border-radius:12px;background:#29212f;color:#dbbd80;font-size:13px}.rp-ranking-prizes summary{cursor:pointer;min-height:26px;line-height:1.7}.rp-ranking-prizes p{margin:12px 0 0;color:#c4b8cc;line-height:1.7}.rp-prize-frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.rp-prize-frames figure{margin:0;text-align:center}.rp-prize-frames img{max-width:100%;height:auto}.rp-prize-frames figcaption{font-size:12px;margin-top:6px;color:#f4dfb5}

#rp-import-image-select{display:grid;gap:6px;place-content:center;width:100%;min-height:110px;padding:18px 12px;border:1px dashed #8a7650;border-radius:12px;background:#19151f;color:#ffe1a4}#rp-import-image-select small{font-size:.75rem;color:#bfb5c7}#rp-import-image-preview{display:block;max-width:100%;max-height:240px;margin:12px auto;border-radius:8px;object-fit:contain}#rp-import-image-review{margin-top:12px;padding:12px;border-radius:12px;background:#141119}#rp-import-image-review h3{margin:0 0 6px;color:#ffe1a4;font-size:1rem}#rp-import-image-review .rp-help{font-size:.75rem;margin:8px 0}.rp-image-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rp-image-wide{grid-column:1/-1}#rp-import-image-review label{display:grid;gap:4px;font-size:.75rem;color:#c7bdcd}#rp-import-image-review :is(input:not([type=checkbox]),select){min-width:0;width:100%;min-height:40px;box-sizing:border-box;padding:7px;border:1px solid #65566c;border-radius:7px;background:#211b29;color:#fff0cc;font-size:.8rem}#rp-import-image-review summary{padding:12px 0;color:#efd69c;cursor:pointer}#rp-import-image-review .rp-image-players{display:grid;gap:10px}.rp-image-players>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 0;border-bottom:1px solid #ffffff12}.rp-image-players strong{grid-column:1/-1;font-size:.8rem;color:#ffe1a4}.rp-image-players label:last-child{grid-column:1/-1}.rp-image-actions>div{display:grid;grid-template-columns:1fr .8fr 1fr .8fr 30px;gap:4px;margin:8px 0}.rp-image-actions .is-hero{padding-left:5px;border-left:3px solid #edcb7b}.rp-image-actions button{padding:0;border:0;background:transparent;color:#c7bdcd}.rp-image-actions select{padding:4px!important;font-size:.7rem!important}#rp-import-image-review .rp-image-confirm{display:flex;align-items:center;gap:8px;padding:14px 0 4px;font-size:.8125rem;color:#ffe1a4}.rp-image-confirm input{width:20px;height:20px;accent-color:#edcb7b;flex:none}.rp-image-warning{font-size:.75rem;color:#efbd82}.rp-image-stack-label{margin-bottom:6px}

#rp-import-image-review .rp-image-allin{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#ffe1a4}.rp-image-allin input{width:18px;height:18px;accent-color:#edcb7b}

/* Result-only imports show known cards without simulated betting controls. */
.rp-card-snapshot .rp-seat-stack,.rp-card-snapshot .rp-seat-last{display:none!important}
.rp-card-snapshot .rp-seat{cursor:default}
.rp-card-snapshot .rp-pot{font-size:clamp(.85rem,2.7vw,1.15rem);color:#d6c5a1}
#rp-import-image-review .rp-royal-players{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.rp-royal-players>div{grid-template-columns:1fr}

/* Result-image conversion keeps every recognized player visible. */
.rp-snapshot-setup .rp-settings-stacks,.rp-snapshot-setup .rp-settings-hero,.rp-snapshot-setup .rp-settings-opponent{display:none}
#rp-snapshot-players{display:grid;gap:10px}
.rp-snapshot-player{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px;border:1px solid #534b40;border-radius:12px;align-items:center}
.rp-snapshot-player label{display:grid;gap:5px;min-width:0;font-size:.85rem}
.rp-snapshot-player input,.rp-snapshot-player select{width:100%;min-width:0;box-sizing:border-box}
.rp-snapshot-cards{display:flex;justify-content:flex-end;gap:3px;background:transparent;border:0;padding:0;min-width:0}
.rp-snapshot-cards .rp-card{width:29px;height:40px}
.rp-snapshot-player strong{color:#ffe0a0;font-size:.95rem}

/* Compact setup: each player owns one row, with optional context collapsed. */
#rp-settings-dialog{max-width:560px;scrollbar-gutter:stable}
#rp-settings-dialog .rp-settings-players{margin-top:16px}
#rp-settings-dialog .rp-player-row{display:grid;grid-template-columns:44px minmax(70px,.85fr) minmax(76px,.9fr) minmax(90px,1.1fr);gap:8px;align-items:center;margin-top:8px;min-width:0}
#rp-settings-dialog .rp-player-row>strong{font-size:.875rem;color:#f2d8a1}
#rp-settings-dialog .rp-player-column-labels{margin-top:0;color:#b8aabd;font-size:.75rem}
#rp-settings-dialog .rp-position-button{min-width:0;min-height:48px;padding:8px 5px;border:1px solid #ffffff20;border-radius:8px;background:#17141f;font-size:.9375rem;color:#f4e8d1;white-space:nowrap}
#rp-settings-dialog .rp-position-button[aria-expanded=true]{border-color:#cfaf70;background:#342a20}
#rp-settings-dialog .rp-stack-input{display:flex;align-items:center;min-width:0;min-height:48px;border:1px solid #ffffff20;border-radius:8px;background:#17141f;overflow:hidden}
#rp-settings-dialog .rp-stack-input input{width:100%;min-width:0;min-height:46px;padding:8px 0 8px 8px;border:0;background:transparent;box-shadow:none;color:#fff9ec;font-size:1rem}
#rp-settings-dialog .rp-stack-input>span{flex:none;padding:0 7px 0 3px;color:#bbaeac;font-size:.75rem}
#rp-settings-dialog .rp-stack-input:focus-within{outline:2px solid #efd494;outline-offset:2px}
#rp-settings-dialog .rp-stack-input input:focus{outline:none}
#rp-settings-dialog :is(#rp-setup-hero-cards,#rp-setup-opponent-cards){height:48px;min-width:0;overflow:hidden}
#rp-settings-dialog .rp-position-picker{margin-top:10px;padding:10px;border:1px solid #796241;border-radius:10px;background:#17131f}
#rp-settings-dialog .rp-position-picker[hidden]{display:none}
.rp-position-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#efd9ac;font-size:.875rem}
#rp-settings-dialog #rp-position-close{width:44px;min-height:36px;padding:0;border:0;background:transparent;color:#c7b8cf;font-size:24px}
.rp-position-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#rp-settings-dialog .rp-position-chips button{min-width:0;min-height:44px;padding:6px 2px;border:1px solid #67543a;border-radius:22px;background:#211a28;font-size:.8125rem;color:#e0d5e6}
#rp-settings-dialog .rp-position-chips button[aria-pressed=true],#rp-settings-dialog .rp-setup-stack-presets button[aria-pressed=true]{background:#4b3b26;border-color:#d1ae69;color:#ffe4ac}
#rp-settings-dialog .rp-settings-stacks{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:12px 0}
.rp-average-field{display:flex;align-items:center;gap:6px;min-width:0;font-size:.8125rem;color:#c6b9cb}
#rp-settings-dialog .rp-average-field>.rp-stack-input{width:104px;min-height:40px}
#rp-settings-dialog .rp-average-field input{min-height:38px}
.rp-stack-presets-field{display:flex;align-items:center;gap:8px;min-width:0;color:#b9aabd;font-size:.75rem}
.rp-setup-stack-presets{display:flex;gap:5px}
#rp-settings-dialog .rp-setup-stack-presets button{min-height:40px;min-width:46px;padding:5px 7px;border:1px solid #68553b;border-radius:20px;background:#201a28;color:#dfc891;font-size:.8125rem;white-space:nowrap}
.rp-setup-stack-presets small{font-size:.625rem;margin-left:2px}
.rp-setup-help{position:relative}
.rp-setup-help>summary{display:grid;place-items:center;width:32px;min-height:40px;cursor:pointer;list-style:none;color:#bea779}
.rp-setup-help>summary::-webkit-details-marker{display:none}
.rp-setup-help>p{position:absolute;left:-90px;top:100%;z-index:5;width:230px;box-sizing:border-box;margin:0;padding:12px;border:1px solid #6b5940;border-radius:8px;background:#302737;box-shadow:0 8px 20px #0008;font-size:.8125rem;line-height:1.6;color:#e5d7ea}
#rp-settings-dialog details.rp-settings-info{padding:0;margin-top:12px;border-top:1px solid #ffffff16}
#rp-settings-dialog .rp-settings-info>summary{display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer;list-style:none;color:#e6ce9d;font-size:.875rem}
#rp-settings-dialog .rp-settings-info>summary::-webkit-details-marker{display:none}
#rp-settings-dialog .rp-settings-info>summary::before{content:'＋';font-size:1.125rem}
#rp-settings-dialog .rp-settings-info[open]>summary::before{content:'−'}
#rp-settings-dialog .rp-settings-info>summary small{margin-left:auto;color:#b3a6bf;font-size:.75rem}
#rp-settings-dialog .rp-settings-details-body{padding:4px 0 12px}
#rp-settings-dialog .rp-settings-details-body>.rp-field{margin-bottom:12px}
#rp-settings-dialog .rp-settings-footer{z-index:3;margin-top:8px;padding-top:10px}
#rp-settings-dialog :is(button,summary):focus-visible{outline:2px solid #efd494;outline-offset:2px}
#rp-settings-dialog.rp-snapshot-setup :is(.rp-settings-players,.rp-settings-stacks){display:none}
@media(max-width:380px){
 #rp-settings-dialog{width:calc(100% - 16px);padding:12px;scrollbar-gutter:auto}
 #rp-settings-dialog .rp-player-row{grid-template-columns:36px minmax(62px,.85fr) minmax(72px,.9fr) minmax(76px,1.1fr);gap:6px}
 #rp-settings-dialog .rp-position-button{font-size:.8125rem}
 #rp-settings-dialog .rp-settings-footer{bottom:-12px}
 .rp-stack-presets-field{width:100%}
 .rp-setup-stack-presets{flex:1;min-width:0}
 #rp-settings-dialog .rp-setup-stack-presets button{flex:1;min-width:0;padding:5px 4px}
 .rp-position-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* One persistent note preference for both hand libraries. */
#rp-home .rp-notes-toggle{flex:none;min-height:40px;padding:7px 8px;color:#cdbbd8;font-size:.8125rem;white-space:nowrap}
#rp-home .rp-notes-toggle:focus-visible{outline:2px solid #e9c47f;outline-offset:2px}
.rp-notes-toggle[hidden],#rp-home .rp-saved-note[hidden],#rp-home .rp-public-memo[hidden]{display:none!important}

#rp-home .rp-public-list-tools{display:flex;justify-content:flex-end;margin:0 0 8px}
