/* Shared monochrome dice-luck scale and readable move assessments. */
.luck-face{width:calc(24px * var(--ui-scale, 1));height:calc(24px * var(--ui-scale, 1));display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.luck-face[data-rating="0"]{color:#8e969d}.luck-face[data-rating="1"]{color:#b7bdc2}.luck-face[data-rating="2"]{color:#dfa45f}.luck-face[data-rating="3"]{color:#9bce88}.luck-face[data-rating="4"]{color:#59cb8b}
body.analysis-table .roll-luck-emoji{display:flex;align-items:center;justify-content:center;filter:none;opacity:.25;border:1px solid transparent;border-radius:calc(4px * var(--ui-scale, 1));background:none}
body.analysis-table .roll-luck-emoji[data-active=true]{opacity:1;border-color:currentColor;background:#ffffff09;box-shadow:none}
body.analysis-table .roll-luck-emoji[data-rating="0"]{color:#8e969d}body.analysis-table .roll-luck-emoji[data-rating="1"]{color:#b7bdc2}body.analysis-table .roll-luck-emoji[data-rating="2"]{color:#dfa45f}body.analysis-table .roll-luck-emoji[data-rating="3"]{color:#9bce88}body.analysis-table .roll-luck-emoji[data-rating="4"]{color:#59cb8b}
#luck-totals{padding:calc(4px * var(--ui-scale, 1)) 0 calc(6px * var(--ui-scale, 1));border-top:1px solid var(--line);font-size:max(11px, calc(12px * var(--ui-scale, 1)));font-variant-numeric:tabular-nums}
#luck-totals table{width:100%;border-collapse:collapse;table-layout:fixed}
#luck-totals :is(th,td){padding:1px 0;font-size:inherit;line-height:max(14px, calc(16px * var(--ui-scale, 1)));border:0;text-align:right;background:none}
#luck-totals tr>:first-child{text-align:left;color:var(--muted);font-weight:400;width:32%}
#luck-totals th[data-side="0"]{color:#df8a8c}#luck-totals th[data-side="1"]{color:#68bbdf}
#luck-totals td{color:#bcc2c7}#luck-totals td[data-sign=positive]{color:#87cca4}
body.analysis-table #timeline.assessed-history .history-moments{grid-template-columns:calc(65px * var(--ui-scale, 1)) minmax(0,1fr);grid-template-rows:calc(28px * var(--ui-scale, 1)) calc(22px * var(--ui-scale, 1));gap:0}
body.analysis-table #timeline.assessed-history .history-moments>[data-stage=roll]{grid-row:1/3;gap:calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
body.analysis-table #timeline.assessed-history .history-moments>[data-stage=after]{grid-column:2;grid-row:1;font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table .history-roll-rating{width:calc(23px * var(--ui-scale, 1));line-height:max(14px, calc(24px * var(--ui-scale, 1)))}.history-roll-rating .luck-face{width:calc(23px * var(--ui-scale, 1));height:calc(23px * var(--ui-scale, 1))}
body.analysis-table #timeline.assessed-history .history-moments .history-assessment{grid-column:2;grid-row:2;text-align:left;justify-content:flex-start;padding:1px calc(5px * var(--ui-scale, 1));line-height:max(14px, calc(18px * var(--ui-scale, 1)));height:calc(22px * var(--ui-scale, 1));min-height:calc(22px * var(--ui-scale, 1));background:none}
body.analysis-table .history-move-rating{font-size:max(11px, calc(12px * var(--ui-scale, 1)));line-height:max(14px, calc(18px * var(--ui-scale, 1)));font-weight:500;white-space:nowrap}
body.analysis-table #timeline.assessed-history .history-moments:not([data-event=""]){grid-template-rows:calc(32px * var(--ui-scale, 1))}
body.analysis-table #timeline.assessed-history .history-moments:not([data-event=""])>[data-stage=after]{grid-column:1/-1;grid-row:1}
/* All play actions are visible under the automatic-play switches on desktop. */
body.analysis-table .pinned-settings .analysis-play-console{padding:0 0 calc(10px * var(--ui-scale, 1));margin:0 0 calc(10px * var(--ui-scale, 1));border-bottom:1px solid var(--line);min-height:0}
body.analysis-table .pinned-settings .analysis-play-console #pane-play{padding:0;border:0;background:transparent;box-shadow:none}
body.analysis-table .pinned-settings .analysis-game-actions{grid-template-columns:1fr 1fr;margin-top:calc(5px * var(--ui-scale, 1));padding-top:calc(5px * var(--ui-scale, 1));gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table .pinned-settings .analysis-game-actions .resign-actions{display:contents}
body.analysis-table .pinned-settings .analysis-game-actions button{height:auto;min-height:calc(34px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(12px * var(--ui-scale, 1)));line-height:max(14px, calc(16px * var(--ui-scale, 1)))}
body.analysis-table .pinned-settings .analysis-play-console .turn-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:calc(36px * var(--ui-scale, 1));height:calc(36px * var(--ui-scale, 1));min-height:calc(36px * var(--ui-scale, 1));gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table .pinned-settings .analysis-play-console .turn-heading{display:none}
body.analysis-table .pinned-settings .analysis-play-console .turn-panel>.primary{grid-column:1;grid-row:1;min-width:0;font-size:max(11px, calc(13px * var(--ui-scale, 1)));padding:calc(5px * var(--ui-scale, 1));min-height:calc(34px * var(--ui-scale, 1));white-space:normal}
body.analysis-table .pinned-settings .analysis-play-console .cube-actions{grid-column:2;grid-row:1;width:auto;display:flex;gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table .pinned-settings .analysis-play-console .cube-actions:empty{display:none}
body.analysis-table .pinned-settings .analysis-play-console .cube-actions button{flex:1;font-size:max(11px, calc(12px * var(--ui-scale, 1)));min-height:calc(32px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1))}
@media(min-width:801px){
 body.analysis-table:not(.analysis-mobile) .study-panel #pane-analysis>.engine-panel{grid-template-rows:var(--study-summary-height) var(--study-roll-height) calc(64px * var(--ui-scale, 1)) minmax(0,1fr)}
 body.analysis-table:not(.analysis-mobile) #luck-totals{grid-column:1/-1;grid-row:3}
 body.analysis-table:not(.analysis-mobile) #candidates{grid-row:4}
 body.analysis-table:not(.analysis-mobile) .study-panel{--study-history-height:clamp(calc(150px * var(--ui-scale, 1)),22dvh,calc(230px * var(--ui-scale, 1)));--study-roll-height:calc(52px * var(--ui-scale, 1))}
 body.analysis-table:not(.analysis-mobile) #pane-analysis #roll-luck,body.analysis-table:not(.analysis-mobile) #pane-analysis:is([data-phase="move"],[data-phase="confirm"]) #roll-luck{grid-template-rows:calc(18px * var(--ui-scale, 1)) calc(30px * var(--ui-scale, 1))}
 body.analysis-table:not(.analysis-mobile) .roll-luck-emoji{height:calc(30px * var(--ui-scale, 1))}
}
@media(min-width:801px) and (max-height:850px){
 body.analysis-table:not(.analysis-mobile) .study-panel{--study-history-height:calc(136px * var(--ui-scale, 1));--study-roll-height:calc(46px * var(--ui-scale, 1))}
 body.analysis-table:not(.analysis-mobile) #pane-analysis #roll-luck,body.analysis-table:not(.analysis-mobile) #pane-analysis:is([data-phase="move"],[data-phase="confirm"]) #roll-luck{grid-template-rows:calc(15px * var(--ui-scale, 1)) calc(28px * var(--ui-scale, 1))}
 body.analysis-table:not(.analysis-mobile) .roll-luck-emoji{height:calc(28px * var(--ui-scale, 1))}
 body.analysis-table:not(.analysis-mobile) .study-panel #pane-analysis>.engine-panel{grid-template-rows:var(--study-summary-height) var(--study-roll-height) calc(60px * var(--ui-scale, 1)) minmax(0,1fr)}
}
body.analysis-table.analysis-mobile-wide #timeline.assessed-history .history-moments{grid-template-columns:calc(58px * var(--ui-scale, 1)) minmax(0,1fr);grid-template-rows:calc(25px * var(--ui-scale, 1)) calc(20px * var(--ui-scale, 1))}
body.analysis-table.analysis-mobile-wide .history-move-rating{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
body.analysis-table.analysis-mobile-wide #luck-totals{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
body.analysis-table.analysis-mobile-wide .luck-face{width:calc(21px * var(--ui-scale, 1));height:calc(21px * var(--ui-scale, 1))}
body.analysis-table.analysis-mobile-wide #analysis-overview{display:block!important}
body.analysis-table.analysis-mobile-wide #analysis-overview[hidden]{visibility:hidden}
body.analysis-table.analysis-mobile-wide #pane-analysis{overflow-anchor:none}
body.analysis-table.analysis-mobile-wide #pane-analysis>.engine-panel{display:flex;flex-direction:column;align-items:stretch;gap:0}
body.analysis-table.analysis-mobile-wide #pane-analysis>.engine-panel>*{flex:none}
