/* Analysis uses the same three-part table, surfaces and controls as a live game. */
body.analysis-table{--accent:var(--blue);--panel:var(--surface);--edge:var(--line);--muted:#a6a6a6;color:var(--text);background:linear-gradient(var(--header),var(--bg) calc(220px * var(--ui-scale, 1)))}
.analysis-table .site-header{height:calc(60px * var(--ui-scale, 1));min-height:calc(60px * var(--ui-scale, 1));max-width:none;padding:0 calc(20px * var(--ui-scale, 1));flex-wrap:nowrap}
.analysis-table .site-nav>.active{border-bottom-color:var(--orange)}
.analysis-table .study-layout,.analysis-table.workspace-expanded .study-layout{width:100%;max-width:none;height:calc(100dvh - calc(60px * var(--ui-scale, 1)));margin:0;padding:calc(8px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));display:grid;grid-template-columns:clamp(calc(180px * var(--ui-scale, 1)),12vw,calc(260px * var(--ui-scale, 1))) minmax(0,1fr) clamp(calc(310px * var(--ui-scale, 1)),23vw,calc(400px * var(--ui-scale, 1)));grid-template-rows:minmax(0,1fr);gap:calc(12px * var(--ui-scale, 1));align-items:stretch}
.analysis-table .study-center,.analysis-table.workspace-expanded .study-center{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.analysis-session-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:calc(10px * var(--ui-scale, 1));flex:none;margin-bottom:calc(8px * var(--ui-scale, 1));align-items:stretch}
.analysis-session-bar>.analysis-match-console,.analysis-session-bar>.analysis-play-console{padding:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1));min-height:0;max-height:none;margin:0}
.analysis-session-bar .turn-panel .played-moves{display:none}
.analysis-session-bar .analysis-score-columns{display:none}
.analysis-table .study-board{flex:1;min-height:0;display:flex;background:transparent!important;border:0;overflow:hidden;box-shadow:none;border-radius:calc(4px * var(--ui-scale, 1))}
.analysis-table .study-board #board-canvas,.analysis-table.workspace-expanded .study-board #board-canvas{position:relative;flex:1;min-height:0;height:100%;width:100%;aspect-ratio:auto}
.analysis-table #board-loading{inset:0;background:var(--bg)}
.analysis-table .board-hint,.analysis-table .workspace-tag,.analysis-table .workspace-name .tiny{display:none}
.analysis-tools{grid-column:1;grid-row:1;align-self:center;display:flex;flex-direction:column;gap:calc(10px * var(--ui-scale, 1));min-width:0;min-height:0;max-height:100%;overflow-y:auto;scrollbar-width:thin}
.analysis-study-tools,.analysis-table .view-controls,.analysis-table .board-notes,.analysis-match-console,.analysis-play-console,.analysis-table .study-panel>.tool-pane{border:1px solid var(--line);border-radius:calc(8px * var(--ui-scale, 1));background:var(--surface);box-shadow:0 calc(3px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1)) #0002}
.analysis-study-tools{padding:calc(12px * var(--ui-scale, 1))}
.analysis-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:calc(6px * var(--ui-scale, 1));margin-bottom:calc(12px * var(--ui-scale, 1))}
.analysis-table .workspace-name{min-width:0}
.analysis-table .workspace-name h1{font-size:max(11px, calc(17px * var(--ui-scale, 1)));margin:0;font-weight:500;letter-spacing:0}
.analysis-table .file-menu>summary{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(6px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1));background:var(--soft)}
.analysis-table .file-menu-content{position:fixed;left:calc(12px * var(--ui-scale, 1));top:calc(100px * var(--ui-scale, 1));background:var(--surface);border-color:var(--line);max-width:calc(100vw - calc(24px * var(--ui-scale, 1)));max-height:75dvh;overflow:auto;z-index:20}
.analysis-table .file-menu-content button,.analysis-table .file-menu-content a{color:var(--text)}
.analysis-table .variant-switch{background:var(--bg)}
.analysis-table .variant-switch .active{background:var(--hover);color:var(--blue)}
.analysis-table .workspace-mode{display:flex;flex-direction:column;align-items:stretch;gap:calc(8px * var(--ui-scale, 1))}
.analysis-table .mode-switch{display:grid;gap:calc(5px * var(--ui-scale, 1));padding:0;border:0;background:none;width:100%}
.analysis-table .mode-switch button{padding:calc(8px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)));min-height:calc(34px * var(--ui-scale, 1))}
.analysis-table .workspace-mode>#editor{margin:0;padding:calc(8px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1));min-height:calc(34px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table #computer-controls{flex-direction:column;align-items:stretch;gap:calc(7px * var(--ui-scale, 1))}
.analysis-table #computer-controls label{font-size:max(11px, calc(11px * var(--ui-scale, 1)));justify-content:space-between}
.analysis-table #human-side{width:100%;font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table #computer-status{font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-study-tools>#share{margin-top:calc(8px * var(--ui-scale, 1));width:100%;padding:calc(8px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1));min-height:calc(34px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .workspace-status{display:block;text-align:left;margin:calc(10px * var(--ui-scale, 1)) 0 0;font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:1.6;overflow-wrap:anywhere}
.analysis-table #connection-badge{color:var(--muted)}
.analysis-table .view-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:calc(8px * var(--ui-scale, 1));gap:calc(6px * var(--ui-scale, 1));flex:none}
.analysis-table .view-controls button{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(6px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1));min-height:calc(34px * var(--ui-scale, 1));min-width:0;line-height:1.3;white-space:normal}
.analysis-table #top-arrows,.analysis-table #analysis-fullscreen{grid-column:1/-1}
.analysis-table #top-arrows{order:1}.analysis-table #analysis-fullscreen{order:2}.analysis-table .board-size-control{order:3}
.analysis-table .view-controls #expand-board{margin:0}
.analysis-table .board-notes{margin:0;max-height:none;flex:none;overflow:visible}
.analysis-table .board-notes>summary{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(10px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));color:var(--muted)}
.analysis-table .notes-panel{display:flex;flex-direction:column;align-items:stretch;padding:0 calc(10px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1))}
.analysis-table .notes-panel label{display:none}
.analysis-table .notes-panel textarea{min-height:calc(80px * var(--ui-scale, 1));background:var(--bg);color:var(--text)}
.analysis-table .site-footer{display:flex!important;width:100%;padding:0 calc(4px * var(--ui-scale, 1));margin:0;gap:calc(8px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table .site-footer>span{display:none}.analysis-table .site-footer nav{margin:0}.analysis-table .site-footer button{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .study-panel,.analysis-table.workspace-expanded .study-panel,.analysis-table .study-panel:has(#pane-position:not([hidden])){grid-column:3;grid-row:1;position:static;display:flex;flex-direction:column;gap:calc(10px * var(--ui-scale, 1));height:100%;max-height:100%;min-height:0;padding:0;border:0;background:none;overflow:hidden}
.analysis-match-console{flex:none;padding:calc(12px * var(--ui-scale, 1))}
.analysis-match-console .back-lobby{font-size:max(11px, calc(12px * var(--ui-scale, 1)));display:inline-block;margin-bottom:calc(8px * var(--ui-scale, 1))}
.analysis-table .study-top{display:block;padding:0 0 calc(10px * var(--ui-scale, 1));min-height:0}
.analysis-table .study-top>div{display:block}
.analysis-table .study-top #study-title{font-size:max(11px, calc(15px * var(--ui-scale, 1)));font-weight:500;letter-spacing:0;color:var(--text);padding:calc(4px * var(--ui-scale, 1)) 0 0}
.analysis-table .study-top .tiny{font-size:max(10px, calc(10px * var(--ui-scale, 1)));letter-spacing:0;color:var(--muted)}
#analysis-match-label{font-size:max(11px, calc(12px * var(--ui-scale, 1)));color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:calc(10px * var(--ui-scale, 1)) 0;line-height:1.4}
.analysis-score-columns{display:flex;justify-content:space-between;padding-top:calc(8px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table .position-strip{display:flex;flex-direction:column;gap:0;background:none;border:0;padding:0;border-radius:0}
.analysis-table .position-strip>[data-side]{display:grid;grid-template-columns:calc(10px * var(--ui-scale, 1)) minmax(0,1fr) calc(38px * var(--ui-scale, 1));gap:calc(4px * var(--ui-scale, 1)) calc(7px * var(--ui-scale, 1));min-height:calc(52px * var(--ui-scale, 1));padding:calc(10px * var(--ui-scale, 1)) 0;border-bottom:1px solid var(--line)}
.analysis-table .position-strip>[data-side]:last-child{border:0;padding-bottom:0}
.analysis-table .position-strip>[data-side]::after{display:none}
.analysis-table .position-strip .checker-dot{grid-column:1;grid-row:1;width:calc(8px * var(--ui-scale, 1));height:calc(8px * var(--ui-scale, 1));align-self:center;opacity:.45;box-shadow:none;border:0}
.analysis-table .position-strip .active .checker-dot{opacity:1;box-shadow:0 0 0 calc(3px * var(--ui-scale, 1)) #ffffff12}
.analysis-table .position-strip strong{display:block;grid-column:2;grid-row:1;font-size:max(11px, calc(13px * var(--ui-scale, 1)));color:var(--text)}
.analysis-table .position-strip span span{grid-column:2;grid-row:2;font-size:max(10px, calc(10px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table .analysis-player-score{grid-column:3;grid-row:1/3;align-self:center;text-align:center;font-size:max(11px, calc(26px * var(--ui-scale, 1)));font-weight:500;font-variant-numeric:tabular-nums}
.analysis-table [data-side="0"] .analysis-player-score{color:#e36974}.analysis-table [data-side="1"] .analysis-player-score{color:#56b0ed}
.analysis-table .checker-dot.white{background:#ba4854}.analysis-table .checker-dot.red{background:#288bd1}
.analysis-play-console{flex:0 1 auto;max-height:34%;min-height:calc(120px * var(--ui-scale, 1));padding:calc(12px * var(--ui-scale, 1));overflow:auto;scrollbar-width:thin}
.analysis-table .playback{flex:none;display:flex;flex-wrap:wrap;padding:calc(4px * var(--ui-scale, 1));gap:calc(4px * var(--ui-scale, 1));border:1px solid #ffffff0a;border-radius:calc(6px * var(--ui-scale, 1));background:#00000012}
.analysis-table .playback>button{flex:1;min-width:calc(26px * var(--ui-scale, 1));height:calc(30px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1))}
.analysis-table .playback svg{display:block;margin:auto;width:calc(18px * var(--ui-scale, 1));height:calc(18px * var(--ui-scale, 1))}
.analysis-table .playback select{margin:0;font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(5px * var(--ui-scale, 1)) calc(3px * var(--ui-scale, 1));max-width:calc(50px * var(--ui-scale, 1));background:var(--soft)}
.analysis-table .playback #step-label{width:100%;text-align:center;padding:calc(4px * var(--ui-scale, 1)) 0 0;margin:0;font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table #pane-play{flex:none;height:auto;max-height:none;min-height:0;border:0;background:none;overflow:visible;box-shadow:none}
.analysis-table #pane-play>.turn-panel{padding:calc(8px * var(--ui-scale, 1)) 0 0;border:0}
.analysis-table .turn-heading h2{font-size:max(11px, calc(15px * var(--ui-scale, 1)));font-weight:500;letter-spacing:0}
.analysis-table .turn-panel #turn-state{font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:1.45;min-height:0;margin:calc(4px * var(--ui-scale, 1)) 0 calc(8px * var(--ui-scale, 1))}
.analysis-table .turn-heading #remaining-dice{gap:calc(4px * var(--ui-scale, 1))}.analysis-table .die-face{width:calc(23px * var(--ui-scale, 1));height:calc(23px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1))}
.analysis-table .turn-actions{display:flex;gap:calc(6px * var(--ui-scale, 1))}.analysis-table .turn-actions button{min-height:calc(34px * var(--ui-scale, 1));padding:calc(6px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .turn-panel>.cube-actions{margin-top:calc(6px * var(--ui-scale, 1));gap:calc(6px * var(--ui-scale, 1))}.analysis-table .turn-panel>.cube-actions:not(:has(button:not([hidden]))){display:none}
.analysis-table .turn-panel>.cube-actions button{flex:1;min-height:calc(34px * var(--ui-scale, 1))}
.analysis-table .analysis-automation{display:flex;gap:calc(6px * var(--ui-scale, 1));flex-wrap:nowrap;margin:calc(8px * var(--ui-scale, 1)) 0}
.analysis-table .analysis-automation label{flex:1;min-height:calc(36px * var(--ui-scale, 1));border:1px solid var(--line);border-radius:calc(4px * var(--ui-scale, 1));padding:calc(6px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)));gap:calc(5px * var(--ui-scale, 1));color:var(--muted)}
.analysis-table .analysis-automation input{width:calc(13px * var(--ui-scale, 1));height:calc(13px * var(--ui-scale, 1));flex:none;margin:0}
.analysis-position-tools{padding-top:calc(8px * var(--ui-scale, 1));border-top:1px solid var(--line);margin-top:calc(8px * var(--ui-scale, 1))}
.analysis-position-tools>summary{font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted);cursor:pointer}
.analysis-table .analysis-position-tools>.cube-panel{display:block;padding:calc(10px * var(--ui-scale, 1)) 0;border:0}
.analysis-table .analysis-position-tools>.legal-panel{padding:0!important}
.analysis-table .cube-panel #context-summary{margin:calc(6px * var(--ui-scale, 1)) 0}
.analysis-table .cube-panel .cube-actions{justify-content:flex-start}
.analysis-panel-tabs{display:flex;flex:none;gap:calc(6px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1));background:var(--surface);border:1px solid var(--line);border-radius:calc(6px * var(--ui-scale, 1))}
.analysis-panel-tabs button{flex:1;min-height:calc(32px * var(--ui-scale, 1));font-size:max(11px, calc(12px * var(--ui-scale, 1)));border-radius:calc(4px * var(--ui-scale, 1));border-bottom:calc(2px * var(--ui-scale, 1)) solid transparent;color:var(--muted)}
.analysis-panel-tabs [aria-selected=true]{border-bottom-color:var(--blue);color:var(--blue);background:var(--soft)}
.analysis-table .study-panel>#pane-analysis,.analysis-table .study-panel>#pane-history,.analysis-table .study-panel>#pane-position{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;display:block;scrollbar-width:thin}
.analysis-table .study-panel #pane-history>.line-panel{display:block;overflow:visible;padding:calc(12px * var(--ui-scale, 1));flex:none}
.analysis-table .study-panel #timeline{max-height:none;overflow:visible}
.analysis-table .study-panel .review-details{padding:calc(12px * var(--ui-scale, 1))}
.analysis-table .study-panel .engine-panel{padding:calc(12px * var(--ui-scale, 1))}
.analysis-table .study-panel .engine-panel h2{font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
.analysis-table .study-panel #calculation-status{padding:0;min-height:0;clear:both}
.analysis-table .study-panel .engine-badge{float:none;font-size:calc(8px * var(--ui-scale, 1));color:var(--muted);border-color:var(--line);margin:calc(4px * var(--ui-scale, 1)) 0}
.analysis-table .analysis-depth-controls{margin:calc(10px * var(--ui-scale, 1)) 0}.analysis-table .analysis-depth-controls label{font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table .analysis-depth-controls select{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(6px * var(--ui-scale, 1))}
.analysis-engine-settings{font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted);margin:calc(8px * var(--ui-scale, 1)) 0}.analysis-engine-settings>summary{cursor:pointer;padding:calc(3px * var(--ui-scale, 1)) 0}
.analysis-table #analysis-tool-toggle{display:none}
.analysis-table .candidate{background:var(--soft);border-color:var(--line)}
.analysis-table .candidate:first-of-type,.analysis-table .candidate.active{background:#69aeec0a;border-color:#69aeec70}
.analysis-table .candidate strong,.analysis-table .candidate-heading b,.analysis-table .evaluation-perspective{color:var(--text)}
.analysis-table .candidate small,.analysis-table .candidate-probabilities,.analysis-table .candidate-explanation,.analysis-table .evaluation-legend,.analysis-table .evaluation-benefit{color:var(--muted)}
.analysis-table #timeline .active{background:#69aeec12;color:var(--blue)}
.analysis-table .primary{background:var(--blue);color:#122333;border-radius:calc(5px * var(--ui-scale, 1));box-shadow:inset 0 1px #ffffff22,0 calc(2px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1)) #0003}
.analysis-table .primary:hover:not(:disabled){background:#86bef0}
.analysis-table :is(.view-controls,.playback,.turn-actions,.mode-switch) button,.analysis-table .secondary,.analysis-table .cube-actions button{background:linear-gradient(#ffffff07,#ffffff02),var(--soft);border:1px solid #ffffff16;border-radius:calc(5px * var(--ui-scale, 1));box-shadow:inset 0 1px #ffffff07,0 calc(2px * var(--ui-scale, 1)) calc(3px * var(--ui-scale, 1)) #0002;color:var(--text);transition:background-color .15s,border-color .15s,box-shadow .15s}
.analysis-table :is(.view-controls,.playback,.turn-actions,.mode-switch) button:hover:not(:disabled),.analysis-table .secondary:hover:not(:disabled){background:var(--hover);border-color:#ffffff40}
.analysis-table :is(.view-controls,.mode-switch) button.active,.analysis-table :is(.view-controls,.mode-switch) button[aria-pressed=true]{border-color:#a4b7c255;background:linear-gradient(#ffffff10,#ffffff04),var(--soft)}
.analysis-table .context-grid input,.analysis-table .context-grid select,.analysis-table .line-picker select{background:var(--soft);border-color:var(--line)}
.analysis-table .editor-brush button{color:var(--text);border-color:var(--line)}.analysis-table .editor-brush [aria-pressed=true]{background:#69aeec18;border-color:var(--blue)}
.analysis-table #edit-panel{background:var(--surface)}.analysis-table #edit-panel #finish-edit{background:var(--blue);color:#122333}
.analysis-table #before-roll{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1));border:1px solid var(--line);background:var(--soft);border-radius:calc(5px * var(--ui-scale, 1));color:var(--text)}
.analysis-table #preview-bar{border:1px solid var(--blue);border-radius:calc(6px * var(--ui-scale, 1));background:var(--surface);margin:0 0 calc(8px * var(--ui-scale, 1));padding:calc(10px * var(--ui-scale, 1));flex:none}
.analysis-table #preview-bar strong{color:var(--blue)}
.analysis-table #study-error{position:fixed;bottom:calc(12px * var(--ui-scale, 1));left:calc(12px * var(--ui-scale, 1));right:calc(12px * var(--ui-scale, 1));z-index:30}
.analysis-table.workspace-expanded .study-layout{height:100dvh}
.analysis-table.workspace-expanded .study-top,.analysis-table.workspace-expanded .workspace-mode{display:flex}
/* Ten ranked moves; further moves scroll inside the list. */
.analysis-table .analysis-match-console{padding:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1))}
.analysis-table .analysis-match-console .back-lobby{margin:0 0 calc(4px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .study-top{padding:0 0 calc(5px * var(--ui-scale, 1))}
.analysis-table .study-top>div{display:flex;align-items:center;gap:calc(8px * var(--ui-scale, 1))}
.analysis-table .study-top .tiny{font-size:calc(9px * var(--ui-scale, 1));flex:none}
.analysis-table .study-top #study-title{font-size:max(11px, calc(12px * var(--ui-scale, 1)));padding:0;min-width:0}
.analysis-table #analysis-match-label{padding:calc(5px * var(--ui-scale, 1)) 0;font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .analysis-score-columns{display:none}
.analysis-table .position-strip{flex-direction:row;gap:calc(12px * var(--ui-scale, 1))}
.analysis-table .position-strip>[data-side],.analysis-table .position-strip>[data-side]:last-child{flex:1;min-width:0;min-height:calc(38px * var(--ui-scale, 1));padding:calc(6px * var(--ui-scale, 1)) 0 0;border:0;grid-template-columns:calc(7px * var(--ui-scale, 1)) minmax(0,1fr) calc(24px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1))}
.analysis-table .position-strip strong{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}.analysis-table .position-strip span span{font-size:calc(9px * var(--ui-scale, 1));white-space:nowrap}
.analysis-table .analysis-player-score{font-size:max(11px, calc(21px * var(--ui-scale, 1)))}
.analysis-table .analysis-play-console{padding:calc(8px * var(--ui-scale, 1));max-height:calc(190px * var(--ui-scale, 1));min-height:calc(100px * var(--ui-scale, 1));flex:0 1 auto}
.analysis-table .study-panel>.analysis-play-console{padding:calc(8px * var(--ui-scale, 1));flex:none;max-height:none;min-height:0}
.analysis-table .study-panel{overflow-y:auto}
.analysis-table .analysis-study-tools .analysis-position-tools{margin-top:calc(10px * var(--ui-scale, 1));padding-top:calc(8px * var(--ui-scale, 1))}
.analysis-table .analysis-study-tools .dice-fields{grid-template-columns:minmax(0,1fr) calc(42px * var(--ui-scale, 1)) calc(42px * var(--ui-scale, 1));gap:calc(4px * var(--ui-scale, 1))}
.analysis-table .analysis-study-tools .dice-fields select{padding:calc(5px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .analysis-study-tools .cube-panel .section-title{gap:calc(4px * var(--ui-scale, 1))}.analysis-table .analysis-study-tools .cube-panel h2{font-size:max(11px, calc(12px * var(--ui-scale, 1)))}
.analysis-table .analysis-study-tools .cube-panel #context-summary{font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table .analysis-study-tools .analysis-automation{flex-direction:column}
.analysis-table .playback{padding:calc(3px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1))}
.analysis-table .playback>button{height:calc(27px * var(--ui-scale, 1))}
.analysis-table .playback #step-label{padding:0;line-height:calc(12px * var(--ui-scale, 1));font-size:calc(9px * var(--ui-scale, 1))}
.analysis-table #pane-play>.turn-panel{padding-top:calc(5px * var(--ui-scale, 1))}
.analysis-table .turn-heading{min-height:calc(24px * var(--ui-scale, 1))}.analysis-table .turn-heading h2{font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
.analysis-table .turn-panel #turn-state{font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:1.3;margin:calc(2px * var(--ui-scale, 1)) 0 calc(4px * var(--ui-scale, 1))}
.analysis-table .turn-panel>.primary{min-height:calc(30px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1));font-size:max(11px, calc(12px * var(--ui-scale, 1)))}
.analysis-table .analysis-position-tools{padding-top:calc(5px * var(--ui-scale, 1));margin-top:calc(5px * var(--ui-scale, 1))}
.analysis-table .analysis-position-tools>summary{font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table .analysis-position-tools>.turn-actions{margin:calc(5px * var(--ui-scale, 1)) 0 calc(8px * var(--ui-scale, 1))}
.analysis-table .analysis-panel-tabs{padding:calc(3px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1))}
.analysis-table .analysis-panel-tabs button{min-height:calc(28px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .study-panel>#pane-analysis{flex:0 0 auto;min-height:0;max-height:none;overflow:visible;scrollbar-gutter:auto}
.analysis-table .study-panel .engine-panel{padding:calc(8px * var(--ui-scale, 1));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 calc(8px * var(--ui-scale, 1))}
.analysis-table .engine-panel>.section-title{grid-column:1;grid-row:1;min-width:0;gap:calc(4px * var(--ui-scale, 1))}
.analysis-table .engine-panel>.section-title h2{font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
.analysis-table .engine-panel .automatic-badge{display:none}
.analysis-table .analysis-engine-settings{grid-column:2;grid-row:1;margin:0;align-self:center;font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table .analysis-engine-settings>summary{padding:calc(4px * var(--ui-scale, 1)) 0;white-space:nowrap}
.analysis-table .analysis-engine-settings[open]{grid-column:1/-1;grid-row:2}
.analysis-table .study-panel #calculation-status{grid-column:1/-1;grid-row:3;margin:calc(3px * var(--ui-scale, 1)) 0 calc(5px * var(--ui-scale, 1));padding:0;font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:calc(13px * var(--ui-scale, 1));min-height:calc(13px * var(--ui-scale, 1))}
.analysis-table .study-panel #calculation-status[data-state="ready"],.analysis-table .study-panel #calculation-status:empty{display:none}
.analysis-table #analysis-overview{grid-column:1/-1;grid-row:4;padding:calc(14px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-caption{font-size:max(11px, calc(12px * var(--ui-scale, 1)));color:var(--muted);margin-bottom:calc(10px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-sides{display:grid;grid-template-columns:1fr 1fr;gap:calc(14px * var(--ui-scale, 1));margin-bottom:calc(12px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-side{display:flex;flex-direction:column;gap:calc(4px * var(--ui-scale, 1));padding:0 calc(10px * var(--ui-scale, 1));font-size:max(11px, calc(12px * var(--ui-scale, 1)))}
.analysis-table .analysis-chance-side strong{font-size:max(11px, calc(29px * var(--ui-scale, 1)));font-weight:500;line-height:1.15;font-variant-numeric:tabular-nums}
.analysis-table .analysis-chance-side.blue{color:#68bbdf;border-left:calc(3px * var(--ui-scale, 1)) solid #318eae}
.analysis-table .analysis-chance-side.red{color:#df8a8c;border-right:calc(3px * var(--ui-scale, 1)) solid #b4686c;text-align:right}
.analysis-table .analysis-chance-bar{display:flex;gap:calc(2px * var(--ui-scale, 1));height:calc(6px * var(--ui-scale, 1));overflow:hidden;border-radius:calc(4px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-bar .blue{background:#318eae}.analysis-table .analysis-chance-bar .red{background:#b4686c}
.analysis-table #roll-luck{grid-column:1/-1;grid-row:5;padding:0 calc(6px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));margin:0 0 calc(5px * var(--ui-scale, 1));border-bottom:1px solid var(--line);font-size:max(11px, calc(12px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table #roll-luck[hidden]{display:none}
.analysis-table .roll-luck-heading{display:flex;justify-content:space-between;align-items:center;gap:calc(10px * var(--ui-scale, 1))}
.analysis-table #roll-luck-value{font-weight:500;font-variant-numeric:tabular-nums;color:var(--text)}
.analysis-table #roll-luck-value[data-sign="positive"]{color:#8fc09b}.analysis-table #roll-luck-value[data-sign="negative"]{color:#e69b94}
.analysis-table #roll-luck-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:calc(7px * var(--ui-scale, 1));max-width:calc(270px * var(--ui-scale, 1));margin:calc(10px * var(--ui-scale, 1)) auto 0}
.analysis-table .roll-luck-emoji{display:grid;place-items:center;height:calc(38px * var(--ui-scale, 1));font:max(11px, calc(24px * var(--ui-scale, 1)))/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;filter:grayscale(1);opacity:.3;transform:scale(.9);border-radius:calc(9px * var(--ui-scale, 1))}
.analysis-table .roll-luck-emoji[data-active="true"]{filter:none;opacity:1;transform:none;background:#318eae21;box-shadow:inset 0 calc(-2px * var(--ui-scale, 1)) #318eae}
.analysis-table #candidates{grid-column:1/-1;grid-row:6;min-width:0}
.analysis-table .candidate-columns{display:flex;justify-content:space-between;align-items:center;padding:calc(6px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1)) calc(9px * var(--ui-scale, 1));color:var(--text);font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
.analysis-table .analysis-result-dice{display:flex;gap:calc(4px * var(--ui-scale, 1))}.analysis-table .analysis-result-dice span{display:grid;place-items:center;width:calc(22px * var(--ui-scale, 1));height:calc(22px * var(--ui-scale, 1));border-radius:calc(4px * var(--ui-scale, 1));background:#deded4;color:#292923;font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
.analysis-table #candidate-list{--candidate-row-height:calc(44px * var(--ui-scale, 1));height:calc(var(--candidate-row-height)*var(--visible-moves,10));overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior:contain;overflow-anchor:none}
.analysis-table #candidate-list:focus-visible{outline:calc(2px * var(--ui-scale, 1)) solid var(--blue);outline-offset:calc(2px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate{display:block;position:relative;min-height:var(--candidate-row-height);height:var(--candidate-row-height);margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;overflow:hidden}
.analysis-table #candidate-list .candidate.active{background:#69aeec12;box-shadow:inset calc(2px * var(--ui-scale, 1)) 0 var(--blue)}
.analysis-table #candidate-list .candidate-select{display:flex;align-items:center;width:calc(100% - calc(23px * var(--ui-scale, 1)));height:calc(43px * var(--ui-scale, 1));padding:0 calc(3px * var(--ui-scale, 1)) 0 calc(7px * var(--ui-scale, 1));text-align:left;background:none;border:0;border-radius:0;color:var(--text)}
.analysis-table #candidate-list .candidate-select:hover{background:#ffffff05}
.analysis-table #candidate-list .candidate-heading{display:flex;align-items:center;gap:calc(7px * var(--ui-scale, 1));margin:0;line-height:max(14px, calc(20px * var(--ui-scale, 1)));min-width:0;width:100%}
.analysis-table #candidate-list .candidate-rank{flex:none;width:calc(16px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted);font-variant-numeric:tabular-nums}
.analysis-table #candidate-list .candidate-route{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:max(11px, calc(17px * var(--ui-scale, 1)));font-weight:400;line-height:max(14px, calc(20px * var(--ui-scale, 1)))}
.analysis-table #candidate-list .candidate-heading strong{flex:none;font-size:max(11px, calc(13px * var(--ui-scale, 1)));line-height:max(14px, calc(20px * var(--ui-scale, 1)));font-weight:500;color:#68bbdf;font-variant-numeric:tabular-nums}
.analysis-table #candidate-list .candidate-metrics,.analysis-table #candidate-list .candidate-probabilities{display:flex;justify-content:space-between;gap:calc(4px * var(--ui-scale, 1));line-height:calc(12px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)));margin:0;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.analysis-table #candidate-list .candidate-loss{margin:0;font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:calc(12px * var(--ui-scale, 1));color:var(--muted)}
.analysis-table #candidate-list .candidate-details{margin:0;padding:0 calc(6px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table #candidate-list .candidate-details>summary{position:absolute;top:0;right:0;display:grid;place-items:center;list-style:none;height:calc(43px * var(--ui-scale, 1));width:calc(23px * var(--ui-scale, 1));padding:0;cursor:pointer;color:var(--muted);font-size:max(11px, calc(17px * var(--ui-scale, 1)))}
.analysis-table #candidate-list .candidate-details>summary::-webkit-details-marker{display:none}
.analysis-table #candidate-list .candidate-details>summary:hover{color:var(--blue)}
.analysis-table #candidate-list .candidate:has(.candidate-details[open]){height:auto;min-height:var(--candidate-row-height);padding-bottom:calc(34px * var(--ui-scale, 1));overflow:visible}
.analysis-table #candidate-list .candidate-play{display:none;position:absolute;right:calc(8px * var(--ui-scale, 1));bottom:calc(4px * var(--ui-scale, 1));top:auto;width:calc(32px * var(--ui-scale, 1));height:calc(28px * var(--ui-scale, 1));min-height:calc(28px * var(--ui-scale, 1));padding:0;font-size:max(11px, calc(12px * var(--ui-scale, 1)));line-height:max(14px, calc(28px * var(--ui-scale, 1)));border-radius:calc(3px * var(--ui-scale, 1));color:var(--muted);background:transparent;border:0}
.analysis-table #candidate-list .candidate:has(.candidate-details[open]) .candidate-play{display:block}
.analysis-table #candidate-list .candidate-play:hover{background:var(--hover)}
.analysis-table #candidate-list .candidate-explanation{font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:1.45;padding:calc(2px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1));color:var(--muted)}
.analysis-table #candidate-list .candidate-explanation p{margin:calc(4px * var(--ui-scale, 1)) 0;line-height:1.45}
.analysis-table #candidate-list .move-steps{margin:calc(4px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1))}.analysis-table #candidate-list .move-step{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:calc(3px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate-precision{margin:calc(4px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table #candidate-list .candidate-details>.candidate-metrics,.analysis-table #candidate-list .candidate-details>.candidate-probabilities{padding:calc(4px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:max(14px, calc(15px * var(--ui-scale, 1)))}
.analysis-table #analysis-calculation-notes p{font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:1.5}
.analysis-table .analysis-cube-advice{display:flex;justify-content:space-between;gap:calc(12px * var(--ui-scale, 1));padding:calc(13px * var(--ui-scale, 1));background:#318eae14;border-radius:calc(8px * var(--ui-scale, 1));margin-bottom:calc(8px * var(--ui-scale, 1))}
.analysis-table .analysis-cube-advice>div{display:flex;flex-direction:column;gap:calc(4px * var(--ui-scale, 1));min-width:0}.analysis-table .analysis-cube-advice>div+div{text-align:right}
.analysis-table .analysis-cube-advice span{font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted)}.analysis-table .analysis-cube-advice strong{font-size:max(11px, calc(19px * var(--ui-scale, 1)));font-weight:500;color:var(--text);line-height:1.3}
.analysis-table .analysis-cube-advice strong[data-player="1"]{color:#68bbdf}.analysis-table .analysis-cube-advice strong[data-player="0"]{color:#df8a8c}
.analysis-table .analysis-cube-table{width:100%;border-collapse:collapse;font-size:max(11px, calc(12px * var(--ui-scale, 1)))}
.analysis-table .analysis-cube-table :is(th,td){padding:calc(10px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1));border-bottom:1px solid var(--line);text-align:right;font-weight:400;font-variant-numeric:tabular-nums}
.analysis-table .analysis-cube-table th:first-child{text-align:left}.analysis-table .analysis-cube-table thead th{font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table .analysis-cube-table td:nth-child(2){color:#68bbdf}.analysis-table .analysis-cube-table td:nth-child(3){color:#df8a8c}
.analysis-table .analysis-session-bar>.analysis-play-console{min-height:0;max-height:none;overflow:visible}
.analysis-session-bar .pane-footnote{display:none}
.analysis-session-bar .turn-panel{display:grid;grid-template-columns:1fr 1fr;gap:calc(4px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1))}
.analysis-session-bar .turn-heading,.analysis-session-bar #turn-state{grid-column:1/-1}
.analysis-session-bar .turn-panel>.primary{grid-column:1;margin:0}
.analysis-session-bar .turn-panel>.cube-actions{grid-column:2;margin:0}
.analysis-session-bar .turn-panel>.primary:has(+.cube-actions:not(:has(button:not([hidden])))){grid-column:1/-1}
.analysis-table .study-panel:has(.analysis-engine-settings[open]),.analysis-table .study-panel:has(.analysis-position-tools[open]){overflow-y:auto}
@media(min-width:801px) and (max-height:850px){
 .analysis-table #candidate-list{--candidate-row-height:calc(40px * var(--ui-scale, 1))}.analysis-table #candidate-list .candidate-select,.analysis-table #candidate-list .candidate-details>summary{height:calc(39px * var(--ui-scale, 1))}
 .analysis-table #analysis-overview{padding-top:calc(10px * var(--ui-scale, 1));padding-bottom:calc(10px * var(--ui-scale, 1))}.analysis-table .analysis-chance-caption{margin-bottom:calc(7px * var(--ui-scale, 1))}
 .analysis-table #roll-luck{padding-bottom:calc(8px * var(--ui-scale, 1))}.analysis-table #roll-luck-scale{margin-top:calc(7px * var(--ui-scale, 1))}.analysis-table .roll-luck-emoji{height:calc(32px * var(--ui-scale, 1))}
 .analysis-table .study-panel{gap:calc(8px * var(--ui-scale, 1))}.analysis-match-console,.analysis-play-console{padding:calc(10px * var(--ui-scale, 1))}
 .analysis-table .position-strip>[data-side]{min-height:calc(38px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) 0}.analysis-table .analysis-player-score{font-size:max(11px, calc(24px * var(--ui-scale, 1)))}
 .analysis-table .study-top{padding-bottom:calc(6px * var(--ui-scale, 1))}#analysis-match-label{padding:calc(7px * var(--ui-scale, 1)) 0}
 .analysis-match-console .back-lobby{margin-bottom:calc(4px * var(--ui-scale, 1))}.analysis-table .analysis-score-columns{padding-top:calc(5px * var(--ui-scale, 1))}
 .analysis-table .playback #step-label{padding:0}.analysis-table .turn-panel #turn-state{margin:calc(2px * var(--ui-scale, 1)) 0 calc(5px * var(--ui-scale, 1))}
 .analysis-table .analysis-automation label{font-size:calc(9px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) calc(3px * var(--ui-scale, 1))}
 .analysis-tools{gap:calc(8px * var(--ui-scale, 1))}.analysis-study-tools{padding:calc(10px * var(--ui-scale, 1))}.analysis-table .workspace-status{font-size:calc(9px * var(--ui-scale, 1))}
}
@media(min-width:801px) and (max-width:1100px) and (max-height:600px){
 .analysis-table .study-layout,.analysis-table.workspace-expanded .study-layout{grid-template-rows:minmax(0,1fr)}
 .analysis-table .study-panel{grid-row:1;overflow-y:auto}.analysis-table .analysis-play-console{flex:none;max-height:none}
 .analysis-table .study-panel>#pane-analysis,.analysis-table .study-panel>#pane-history{flex:none;min-height:calc(300px * var(--ui-scale, 1));max-height:calc(500px * var(--ui-scale, 1))}
 .analysis-table #analysis-tool-toggle{display:block;font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
 .analysis-table .analysis-tools{display:none;position:fixed;left:calc(8px * var(--ui-scale, 1));top:calc(65px * var(--ui-scale, 1));bottom:calc(8px * var(--ui-scale, 1));width:calc(260px * var(--ui-scale, 1));max-height:none;z-index:25;background:var(--bg);padding:calc(8px * var(--ui-scale, 1));border:1px solid var(--line);border-radius:calc(8px * var(--ui-scale, 1));box-shadow:0 calc(8px * var(--ui-scale, 1)) calc(40px * var(--ui-scale, 1)) #0008;overflow:auto}
 .analysis-table.analysis-tools-open .analysis-tools{display:flex}
}
@media(min-width:801px) and (max-width:1100px){
 .analysis-table .study-layout,.analysis-table.workspace-expanded .study-layout{grid-template-columns:minmax(0,1fr) calc(320px * var(--ui-scale, 1));grid-template-rows:minmax(0,1fr) auto;gap:calc(10px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1))}
 .analysis-table .study-center{grid-column:1;grid-row:1}.analysis-table .study-panel{grid-column:2;grid-row:1/3}
 .analysis-tools{grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;align-self:stretch;max-height:calc(220px * var(--ui-scale, 1));overflow:auto}
 .analysis-table .analysis-study-tools{grid-column:1}.analysis-table .view-controls{grid-column:2;grid-row:1/3}
 .analysis-table .board-notes{grid-column:1}.analysis-table .site-footer{grid-column:1}
 .analysis-table .file-menu-content{top:calc(70px * var(--ui-scale, 1))}.analysis-table .workspace-status{display:none}
}
@media(max-width:800px){
 .analysis-session-bar{display:flex;flex-direction:column;gap:calc(8px * var(--ui-scale, 1));margin-bottom:calc(8px * var(--ui-scale, 1))}
 .analysis-table .site-header{height:calc(56px * var(--ui-scale, 1));min-height:calc(56px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1)) calc(14px * var(--ui-scale, 1))}.analysis-table .site-nav{display:none}
 .analysis-table .study-layout,.analysis-table.workspace-expanded .study-layout{height:auto;min-height:calc(100dvh - calc(56px * var(--ui-scale, 1)));display:flex;flex-direction:column;padding:calc(4px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1)) calc(16px * var(--ui-scale, 1));gap:calc(10px * var(--ui-scale, 1))}
 .analysis-table .study-center{order:0;height:auto;display:block;overflow:visible}
 .analysis-table .study-board{height:calc((100vw - calc(16px * var(--ui-scale, 1)))/var(--study-board-aspect,1.5));display:block;min-height:0}
 .analysis-table .study-board #board-canvas,.analysis-table.workspace-expanded .study-board #board-canvas{height:100%;width:100%}
 .analysis-table .study-panel{order:1;display:flex;height:auto;max-height:none;overflow:visible;gap:calc(10px * var(--ui-scale, 1))}
 .analysis-table .analysis-match-console{padding:calc(10px * var(--ui-scale, 1))}.analysis-table .analysis-score-columns{display:none}
 .analysis-table .position-strip{flex-direction:row;gap:calc(14px * var(--ui-scale, 1))}.analysis-table .position-strip>[data-side]{flex:1;min-width:0;border:0;padding:calc(8px * var(--ui-scale, 1)) 0 0}
 .analysis-table .analysis-play-console{max-height:none;min-height:0;padding:calc(10px * var(--ui-scale, 1))}
 .analysis-table .study-panel>#pane-analysis{height:auto;flex:none;overflow:visible}.analysis-table .study-panel>#pane-history{height:calc(480px * var(--ui-scale, 1));flex:none;overflow:auto}
 .analysis-table .study-panel>#pane-position{height:auto;max-height:none;flex:none}
 .analysis-tools{order:2;display:grid;grid-template-columns:1fr 1fr;align-self:stretch;max-height:none;overflow:visible}
 .analysis-table .analysis-study-tools{grid-column:1}.analysis-table .view-controls{grid-column:2;grid-row:1/3;align-self:start}
 .analysis-table .board-notes{grid-column:1}.analysis-table .site-footer{grid-column:1/-1}
 .analysis-table .file-menu-content{top:calc(70px * var(--ui-scale, 1))}.analysis-table .view-controls button{min-height:calc(36px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
 .analysis-table .workspace-status{font-size:calc(9px * var(--ui-scale, 1))}
 .analysis-table .study-top{display:block!important}.analysis-table .workspace-mode{display:flex!important}
}

/* Compact side panels; the board keeps the uninterrupted middle column. */
.analysis-table .study-panel{align-self:center;height:auto;max-height:100%;gap:calc(7px * var(--ui-scale, 1))}
.analysis-table .analysis-play-console{flex:none;min-height:0;max-height:none;overflow:visible}
.analysis-table .analysis-play-console .played-moves,.analysis-table .analysis-play-console .pane-footnote{display:none}
.analysis-table .analysis-match-console .back-lobby,.analysis-table .analysis-match-console .study-top{display:none!important}
.analysis-table #analysis-match-label{border:0;padding:0 0 calc(4px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .position-strip span span{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table .position-strip>[data-side]{grid-template-columns:calc(7px * var(--ui-scale, 1)) minmax(0,1fr) calc(22px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1))}
.analysis-table .analysis-player-score{font-size:max(11px, calc(20px * var(--ui-scale, 1)))}
.analysis-table .position-strip span span{grid-column:1/-1}
.analysis-table .position-strip .analysis-player-score{grid-row:1}
.analysis-table .analysis-study-tools{padding:calc(9px * var(--ui-scale, 1))}
.analysis-table .analysis-tool-heading{margin-bottom:calc(7px * var(--ui-scale, 1))}
.analysis-table .workspace-mode{gap:calc(5px * var(--ui-scale, 1))}
.analysis-table .mode-switch button,.analysis-table .workspace-mode>#editor,.analysis-table .analysis-study-tools>#share{min-height:calc(30px * var(--ui-scale, 1));padding:calc(6px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1))}
.analysis-table .analysis-play-console .turn-panel>.tiny{display:none}
.analysis-table .view-controls{gap:calc(4px * var(--ui-scale, 1));padding:calc(7px * var(--ui-scale, 1))}
.analysis-table .view-controls button{min-height:calc(30px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) calc(3px * var(--ui-scale, 1))}
.analysis-table .study-panel .engine-panel{padding:calc(8px * var(--ui-scale, 1))}
.analysis-table .engine-panel>.section-title h2{display:none}
.analysis-table .analysis-engine-settings{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table #analysis-overview{padding:calc(8px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-caption{font-size:max(11px, calc(11px * var(--ui-scale, 1)));margin-bottom:calc(6px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-sides{gap:calc(8px * var(--ui-scale, 1));margin-bottom:calc(7px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-side{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:0 calc(7px * var(--ui-scale, 1));gap:calc(2px * var(--ui-scale, 1))}
.analysis-table .analysis-chance-side strong{font-size:max(11px, calc(23px * var(--ui-scale, 1)))}
.analysis-table .analysis-chance-bar{height:calc(4px * var(--ui-scale, 1))}
.analysis-table #roll-luck{font-size:max(11px, calc(11px * var(--ui-scale, 1)));padding:0 calc(2px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));margin-bottom:calc(3px * var(--ui-scale, 1))}
.analysis-table #roll-luck-scale{gap:calc(4px * var(--ui-scale, 1));margin:calc(5px * var(--ui-scale, 1)) 0 0}
.analysis-table .roll-luck-emoji{height:calc(28px * var(--ui-scale, 1));font-size:max(11px, calc(21px * var(--ui-scale, 1)));border-radius:calc(5px * var(--ui-scale, 1))}
.analysis-table .analysis-dice-entry{grid-column:1/-1;grid-row:6;display:flex;align-items:center;gap:calc(8px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1)) calc(3px * var(--ui-scale, 1));min-width:0}
.analysis-table .analysis-dice-entry label{font-size:max(11px, calc(12px * var(--ui-scale, 1)));color:var(--text);margin:0}
.analysis-table #analysis-quick-dice{width:calc(61px * var(--ui-scale, 1));min-width:calc(61px * var(--ui-scale, 1));height:calc(29px * var(--ui-scale, 1));padding:calc(2px * var(--ui-scale, 1)) 0 calc(2px * var(--ui-scale, 1)) calc(7px * var(--ui-scale, 1));margin:0;border:1px solid var(--line);border-radius:calc(5px * var(--ui-scale, 1));background:var(--soft);color:var(--text);font-size:max(11px, calc(17px * var(--ui-scale, 1)));line-height:max(14px, calc(23px * var(--ui-scale, 1)));letter-spacing:calc(8px * var(--ui-scale, 1));text-align:center;font-variant-numeric:tabular-nums;caret-color:var(--blue)}
.analysis-table #analysis-quick-dice:focus{border-color:var(--blue);outline:calc(2px * var(--ui-scale, 1)) solid #318eae55;outline-offset:1px}
.analysis-table #analysis-restore-dice{margin-left:auto;padding:calc(3px * var(--ui-scale, 1)) 0;min-height:calc(28px * var(--ui-scale, 1));min-width:0;background:none;border:0;font-size:max(11px, calc(11px * var(--ui-scale, 1)));color:var(--blue);white-space:normal;text-align:right}
.analysis-table #candidates{grid-row:7}
.analysis-table .candidate-columns{font-size:max(11px, calc(12px * var(--ui-scale, 1)));padding:calc(6px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1))}
.analysis-table #candidate-list{--candidate-row-height:calc(29px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate-select,.analysis-table #candidate-list .candidate-details>summary{height:calc(28px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate-heading{gap:calc(4px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate-rank{width:calc(13px * var(--ui-scale, 1))}
.analysis-table #candidate-list .candidate-route{font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
.analysis-table #candidate-list .candidate-heading strong{font-size:max(11px, calc(12px * var(--ui-scale, 1)));color:var(--muted)}
.analysis-table #candidate-list [data-strength="best"] .candidate-heading strong{color:#86cf9e}
.analysis-table #candidate-list [data-strength="worse"] .candidate-heading strong{color:#e5c16e}
.analysis-table #candidate-list [data-strength="weak"] .candidate-heading strong{color:#ee8d91}
@media(min-width:801px){
 .analysis-table .study-layout,.analysis-table.workspace-expanded .study-layout{grid-template-columns:clamp(calc(180px * var(--ui-scale, 1)),12vw,calc(220px * var(--ui-scale, 1))) minmax(0,1fr) clamp(calc(250px * var(--ui-scale, 1)),20vw,calc(286px * var(--ui-scale, 1)));grid-template-rows:minmax(0,1fr)}
 .analysis-table .study-center{grid-column:2;grid-row:1}
 .analysis-table .study-panel{grid-column:3;grid-row:1;height:auto;align-self:center}
 .analysis-table .analysis-tools{grid-column:1;grid-row:1;display:flex;position:static;width:auto;flex-direction:column;align-self:center;max-height:100%;padding:0;border:0;box-shadow:none;background:transparent}
 .analysis-table .workspace-status{display:none}
 .analysis-table #analysis-tool-toggle{display:none}
 .analysis-table .study-panel>#pane-history{flex:1;max-height:65dvh}
}
@media(max-width:800px){
 .analysis-table .study-panel{align-self:stretch;max-height:none}
 .analysis-table .analysis-tools>.analysis-play-console{grid-column:1/-1}
 .analysis-table #candidate-list{--candidate-row-height:calc(36px * var(--ui-scale, 1))}
 .analysis-table #candidate-list .candidate-select,.analysis-table #candidate-list .candidate-details>summary{height:calc(35px * var(--ui-scale, 1))}
}
@media(pointer:coarse){.analysis-table #analysis-quick-dice,.analysis-table #analysis-restore-dice{min-height:calc(44px * var(--ui-scale, 1))}}

/* A phone can use landscape even while orientation lock is enabled. */
#analysis-mobile-rotate,#analysis-mobile-actions button{min-height:calc(34px * var(--ui-scale, 1));padding:calc(6px * var(--ui-scale, 1)) calc(9px * var(--ui-scale, 1));border:1px solid var(--line);border-radius:calc(5px * var(--ui-scale, 1));background:var(--soft);color:var(--text);font-size:max(11px, calc(12px * var(--ui-scale, 1)));white-space:nowrap}
body.analysis-mobile-wide{overflow:hidden;overscroll-behavior:none}
.analysis-mobile-wide .site-header{display:none}
.analysis-table.analysis-mobile-wide .study-layout{position:fixed;inset:0;width:100svw;height:100svh;min-height:0;padding:calc(5px * var(--ui-scale, 1));display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr) calc(110px * var(--ui-scale, 1));gap:calc(5px * var(--ui-scale, 1));overflow:hidden}
.analysis-table.analysis-mobile-wide.table-rotated .study-layout{inset:auto;top:0;left:100svw;width:100svh;height:100svw;transform-origin:0 0;transform:rotate(90deg)}
.analysis-table.analysis-mobile-wide .study-center{grid-column:1;grid-row:1/3;order:0;height:100%;min-height:0;display:flex;overflow:hidden}
.analysis-table.analysis-mobile-wide .study-board{width:100%;height:100%;min-height:0;flex:1}
.analysis-table.analysis-mobile-wide .study-board #board-canvas{height:100%;width:100%}
.analysis-table.analysis-mobile-wide .analysis-tools{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:calc(72px * var(--ui-scale, 1)) calc(34px * var(--ui-scale, 1));gap:calc(4px * var(--ui-scale, 1));position:static;left:0;width:100%;max-height:none;height:calc(110px * var(--ui-scale, 1));align-self:end;overflow:visible}
.analysis-table.analysis-mobile-wide .analysis-tools>.analysis-play-console{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:calc(32px * var(--ui-scale, 1)) calc(32px * var(--ui-scale, 1));height:calc(72px * var(--ui-scale, 1));align-items:center;gap:calc(2px * var(--ui-scale, 1));padding:calc(3px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .playback{padding:0;gap:calc(2px * var(--ui-scale, 1));display:flex;flex-wrap:wrap;border:0}
.analysis-mobile-wide .analysis-play-console .playback>button{min-width:calc(30px * var(--ui-scale, 1));height:calc(32px * var(--ui-scale, 1));padding:calc(3px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console #step-label{flex-basis:100%;font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:calc(12px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console #pane-play,.analysis-mobile-wide .analysis-play-console .turn-panel{padding:0!important;margin:0;border:0;min-width:0}
.analysis-mobile-wide .analysis-play-console .turn-heading{min-height:calc(18px * var(--ui-scale, 1));justify-content:center}
.analysis-mobile-wide .analysis-play-console .turn-heading h2,.analysis-mobile-wide .analysis-play-console #turn-state{display:none}
.analysis-mobile-wide .analysis-play-console .turn-panel>.primary{min-height:calc(32px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(12px * var(--ui-scale, 1)));margin:calc(3px * var(--ui-scale, 1)) 0 0}
.analysis-mobile-wide .analysis-play-console .cube-actions{margin:calc(3px * var(--ui-scale, 1)) 0 0;gap:calc(3px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .cube-actions button{min-height:calc(30px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-mobile-wide #analysis-mobile-actions{grid-row:2;display:flex;gap:calc(4px * var(--ui-scale, 1));justify-content:space-between}
.analysis-mobile-wide #analysis-mobile-actions button{flex:1;min-width:0;min-height:calc(34px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:calc(12px * var(--ui-scale, 1));padding:calc(3px * var(--ui-scale, 1));white-space:normal}
.analysis-table.analysis-mobile-wide .study-panel,.analysis-table.analysis-mobile-wide .study-panel:has(#pane-position:not([hidden])){grid-column:2;grid-row:1;align-self:stretch;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;min-height:0;gap:calc(4px * var(--ui-scale, 1));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;left:0}
.analysis-table.analysis-mobile-wide .study-panel>#pane-analysis,.analysis-table.analysis-mobile-wide .study-panel>#pane-position,.analysis-table.analysis-mobile-wide .study-panel>#pane-history{flex:none;height:auto;max-height:none;overflow:visible}
.analysis-mobile-wide .analysis-match-console{padding:calc(5px * var(--ui-scale, 1)) calc(7px * var(--ui-scale, 1))}
.analysis-mobile-wide .position-strip span span{font-size:calc(9px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-match-console .position-strip>[data-side]{min-height:calc(30px * var(--ui-scale, 1));padding:calc(3px * var(--ui-scale, 1)) 0 0}
.analysis-mobile-wide .analysis-panel-tabs button{min-height:calc(30px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-mobile-wide #candidate-list{--candidate-row-height:calc(33px * var(--ui-scale, 1))}
.analysis-mobile-wide #candidate-list .candidate-select,.analysis-mobile-wide #candidate-list .candidate-details>summary{height:calc(32px * var(--ui-scale, 1))}
.analysis-mobile-wide #analysis-overview{padding:calc(5px * var(--ui-scale, 1)) 0}.analysis-mobile-wide .analysis-chance-side strong{font-size:max(11px, calc(21px * var(--ui-scale, 1)))}
.analysis-mobile-wide #roll-luck{padding-bottom:calc(4px * var(--ui-scale, 1))}.analysis-mobile-wide .roll-luck-emoji{height:calc(27px * var(--ui-scale, 1));font-size:max(11px, calc(20px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide #analysis-quick-dice,.analysis-table.analysis-mobile-wide #analysis-restore-dice{min-height:calc(34px * var(--ui-scale, 1))}
.analysis-mobile-wide #analysis-mobile-drawer{position:absolute;inset:calc(5px * var(--ui-scale, 1)) auto calc(5px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1));width:min(calc(420px * var(--ui-scale, 1)),calc(100% - calc(10px * var(--ui-scale, 1))));padding:calc(8px * var(--ui-scale, 1));background:var(--bg);border:1px solid var(--line);border-radius:calc(8px * var(--ui-scale, 1));z-index:30;overflow:auto;box-shadow:0 calc(12px * var(--ui-scale, 1)) calc(40px * var(--ui-scale, 1)) #0009}
.analysis-mobile-wide .analysis-mobile-close{position:sticky;top:0;display:block;margin:0 0 calc(8px * var(--ui-scale, 1)) auto;min-height:calc(34px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:calc(5px * var(--ui-scale, 1));z-index:1}
.analysis-mobile-wide #analysis-mobile-drawer>.analysis-study-tools,.analysis-mobile-wide #analysis-mobile-drawer>.view-controls{display:block;margin-bottom:calc(8px * var(--ui-scale, 1))}
.analysis-mobile-wide #analysis-mobile-drawer>.view-controls{display:grid;grid-template-columns:1fr 1fr}
.analysis-mobile-wide #analysis-mobile-drawer .file-menu-content{position:absolute;inset:calc(42px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1)) auto;max-width:none;width:auto;max-height:calc(100% - calc(50px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide .analysis-match-console .position-strip span span{display:none}
.analysis-table.analysis-mobile-wide .analysis-match-console .position-strip>[data-side]{min-height:calc(24px * var(--ui-scale, 1));padding:1px 0 0}
.analysis-table.analysis-mobile-wide #analysis-match-label{font-size:max(10px, calc(10px * var(--ui-scale, 1)));padding-bottom:calc(2px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .engine-panel>.section-title{display:none}
.analysis-table.analysis-mobile-wide #analysis-overview{padding:calc(3px * var(--ui-scale, 1)) 0 calc(6px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-caption{margin-bottom:calc(4px * var(--ui-scale, 1));font-size:max(10px, calc(10px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide .analysis-chance-sides{margin-bottom:calc(4px * var(--ui-scale, 1));gap:calc(6px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-side{font-size:max(10px, calc(10px * var(--ui-scale, 1)));gap:1px}
.analysis-table.analysis-mobile-wide #roll-luck-scale{margin-top:calc(3px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide #analysis-mobile-drawer>.analysis-engine-settings{padding:calc(8px * var(--ui-scale, 1));margin:0 0 calc(8px * var(--ui-scale, 1));border:1px solid var(--line);border-radius:calc(6px * var(--ui-scale, 1))}

/* Reserve result and action slots: asynchronous analysis must never reframe the board. */
.analysis-mobile .study-layout,.analysis-mobile .study-panel{overflow-anchor:none}
.analysis-mobile .study-center{position:relative}
.analysis-mobile #preview-bar{position:absolute;inset:auto calc(6px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));z-index:5;padding:calc(8px * var(--ui-scale, 1));gap:calc(5px * var(--ui-scale, 1));border-radius:calc(6px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-mobile #preview-bar .preview-actions{display:flex;gap:calc(4px * var(--ui-scale, 1));flex-wrap:wrap}
.analysis-mobile #preview-bar button{padding:calc(6px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile .study-panel #calculation-status{display:block;height:calc(26px * var(--ui-scale, 1));min-height:calc(26px * var(--ui-scale, 1));margin:0;overflow:hidden;line-height:calc(13px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile #calculation-status[data-state="ready"],.analysis-table.analysis-mobile #calculation-status:empty{visibility:hidden}
.analysis-table.analysis-mobile #analysis-overview{display:block!important;height:calc(82px * var(--ui-scale, 1));overflow:hidden}
.analysis-table.analysis-mobile #roll-luck{display:block!important;height:calc(55px * var(--ui-scale, 1));overflow:hidden}
.analysis-table.analysis-mobile #analysis-overview[hidden],.analysis-table.analysis-mobile #roll-luck[hidden]{visibility:hidden}
.analysis-table.analysis-mobile #analysis-dice-entry{height:calc(52px * var(--ui-scale, 1));flex-wrap:nowrap}
.analysis-table.analysis-mobile #analysis-restore-dice[hidden]{display:block!important;visibility:hidden}
.analysis-table.analysis-mobile-wide .study-panel #calculation-status{height:calc(13px * var(--ui-scale, 1));min-height:calc(13px * var(--ui-scale, 1));white-space:nowrap;text-overflow:ellipsis}
.analysis-table.analysis-mobile-wide #analysis-overview{height:calc(78px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide #roll-luck{height:calc(53px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide #analysis-dice-entry{height:calc(42px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile #candidates{min-height:calc(calc(30px * var(--ui-scale, 1)) + 10 * calc(36px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide #candidates{min-height:calc(calc(30px * var(--ui-scale, 1)) + 10 * calc(33px * var(--ui-scale, 1)))}
.analysis-mobile-wide .analysis-play-console .turn-panel{display:grid;grid-template-columns:calc(80px * var(--ui-scale, 1)) repeat(2,minmax(0,1fr));grid-template-rows:calc(32px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .turn-heading{grid-column:1;grid-row:1;height:calc(32px * var(--ui-scale, 1));min-height:calc(32px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .turn-panel>.primary{grid-column:2;grid-row:1;height:calc(32px * var(--ui-scale, 1));margin:0;line-height:calc(13px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .turn-panel>.cube-actions{grid-column:3;grid-row:1;height:calc(32px * var(--ui-scale, 1));margin:0}
.analysis-mobile-wide .analysis-play-console .cube-actions:has(#take-cube:not([hidden])){grid-column:2/-1}
.analysis-mobile-wide .analysis-play-console .cube-actions button{margin:0;line-height:calc(13px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console .playback{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) calc(40px * var(--ui-scale, 1));grid-template-rows:calc(32px * var(--ui-scale, 1));height:calc(32px * var(--ui-scale, 1));align-content:center}
.analysis-mobile-wide .analysis-play-console .playback>button{min-width:0}
.analysis-mobile-wide .analysis-play-console .playback>label{grid-column:6;grid-row:1;min-width:0;margin:0}
.analysis-mobile-wide .analysis-play-console .playback select{height:calc(32px * var(--ui-scale, 1));width:100%;padding:1px calc(3px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-play-console #step-label{display:none}

/* Phone controls share the right column, leaving the entire left column to the board. */
.analysis-mobile-wide .analysis-play-console #remaining-dice{display:none}
.analysis-table.analysis-mobile-wide #analysis-dice-entry{width:calc(80px * var(--ui-scale, 1));height:calc(32px * var(--ui-scale, 1));gap:calc(3px * var(--ui-scale, 1));padding:0}
.analysis-mobile-wide #analysis-dice-entry label{display:none}
.analysis-table.analysis-mobile-wide #analysis-quick-dice{width:calc(50px * var(--ui-scale, 1));min-width:calc(50px * var(--ui-scale, 1));min-height:calc(32px * var(--ui-scale, 1));height:calc(32px * var(--ui-scale, 1));padding-left:calc(5px * var(--ui-scale, 1));letter-spacing:calc(5px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide #analysis-restore-dice{width:calc(24px * var(--ui-scale, 1));min-width:calc(24px * var(--ui-scale, 1));min-height:calc(32px * var(--ui-scale, 1));padding:0;font-size:0;text-align:center}
.analysis-mobile-wide #analysis-restore-dice::after{content:'↶';font-size:max(11px, calc(20px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide .analysis-match-console{padding:calc(3px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1))}
.analysis-mobile-wide .analysis-match-console .position-strip{gap:calc(8px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-match-console .position-strip>[data-side]{min-height:calc(20px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-player-score{font-size:max(11px, calc(17px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide #analysis-overview{height:calc(56px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-caption{line-height:calc(12px * var(--ui-scale, 1));margin-bottom:calc(3px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-sides{margin-bottom:calc(4px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-side{flex-direction:row;align-items:baseline;justify-content:space-between;gap:calc(3px * var(--ui-scale, 1));padding:0 calc(5px * var(--ui-scale, 1));font-size:calc(9px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide .analysis-chance-side strong{font-size:max(11px, calc(20px * var(--ui-scale, 1)))}
.analysis-table.analysis-mobile-wide #roll-luck{display:grid!important;grid-template-columns:calc(80px * var(--ui-scale, 1)) minmax(0,1fr);align-items:center;gap:calc(4px * var(--ui-scale, 1));height:calc(36px * var(--ui-scale, 1))}
.analysis-mobile-wide .roll-luck-heading{flex-direction:column;align-items:flex-start;gap:0;font-size:max(10px, calc(10px * var(--ui-scale, 1)));line-height:calc(13px * var(--ui-scale, 1))}
.analysis-table.analysis-mobile-wide #roll-luck-scale{margin:0;gap:calc(2px * var(--ui-scale, 1));min-width:0}

/* Reserve result slots before evaluation so the centered panel stays still. */
@media(min-width:801px){
 .analysis-table:not(.analysis-mobile) .study-panel #calculation-status{display:block;height:calc(18px * var(--ui-scale, 1));min-height:calc(18px * var(--ui-scale, 1));line-height:max(14px, calc(18px * var(--ui-scale, 1)));margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .analysis-table:not(.analysis-mobile) #calculation-status[data-state="ready"],.analysis-table:not(.analysis-mobile) #calculation-status:empty{visibility:hidden}
 .analysis-table:not(.analysis-mobile) #analysis-overview{display:block!important;height:calc(82px * var(--ui-scale, 1));overflow:hidden}
 .analysis-table:not(.analysis-mobile) #analysis-overview[hidden]{visibility:hidden}
 .analysis-table:not(.analysis-mobile) #pane-analysis:is([data-phase="move"],[data-phase="confirm"]) #roll-luck{display:block!important;height:calc(55px * var(--ui-scale, 1));overflow:hidden}
 .analysis-table:not(.analysis-mobile) #roll-luck[hidden]{visibility:hidden}
 .analysis-table:not(.analysis-mobile) #candidates{min-height:calc(92px * var(--ui-scale, 1))}
 .analysis-table:not(.analysis-mobile) #pane-analysis:is([data-phase="move"],[data-phase="confirm"]) #candidates{min-height:calc(calc(30px * var(--ui-scale, 1)) + 10 * calc(29px * var(--ui-scale, 1)))}
}
