/* Board, analysis/history, match statistics. Geometry never depends on results. */
body.analysis-table.analysis-report-layout .study-layout{grid-template-columns:minmax(0,1fr) clamp(calc(320px * var(--ui-scale, 1)),24vw,calc(420px * var(--ui-scale, 1))) clamp(calc(300px * var(--ui-scale, 1)),24vw,calc(420px * var(--ui-scale, 1)));gap:calc(8px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1)) calc(44px * var(--ui-scale, 1));--analysis-panel-room:0px}
body.analysis-table.analysis-report-layout .study-center{grid-column:1;grid-row:1;padding:calc(28px * var(--ui-scale, 1)) 0;margin-right:calc(32px * var(--ui-scale, 1));overflow:visible}
body.analysis-table.analysis-report-layout .study-board,body.analysis-table.analysis-report-layout .study-board #board-canvas{overflow:visible}
body.analysis-table.analysis-report-layout .study-panel,body.analysis-table.analysis-report-layout .study-panel:has(#pane-position:not([hidden])){grid-column:2;grid-row:1;left:calc(0px - var(--analysis-panel-room));min-width:0;width:auto;height:100%;max-height:100%;align-self:stretch;--study-summary-height:0px;--study-roll-height:calc(44px * var(--ui-scale, 1));--study-analysis-extra:calc(36px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .study-panel #pane-analysis>.engine-panel{grid-template-rows:calc(44px * var(--ui-scale, 1)) minmax(0,1fr);grid-template-columns:minmax(0,1fr) auto;height:100%;min-height:0}
body.analysis-table.analysis-report-layout #analysis-dice-entry,body.analysis-table.analysis-report-layout .compact-luck-menu{grid-row:1}
body.analysis-table.analysis-report-layout #candidates{grid-row:2;grid-column:1/-1}
body.analysis-table.analysis-report-layout #analysis-overview{grid-column:1/-1;grid-row:3;position:static;padding:calc(3px * var(--ui-scale, 1)) 0;margin:0;height:calc(24px * var(--ui-scale, 1));min-height:calc(24px * var(--ui-scale, 1));border:0}
body.analysis-table.analysis-report-layout #analysis-overview .analysis-match-chances{display:flex;justify-content:space-between;align-items:center;font-size:max(11px, calc(14px * var(--ui-scale, 1)));margin:0;line-height:max(14px, calc(18px * var(--ui-scale, 1)))}
.analysis-match-chances>span:not([data-player]){order:1}
.analysis-match-console[data-first-side="0"] .analysis-match-chances>[data-player="0"],.analysis-match-console[data-first-side="1"] .analysis-match-chances>[data-player="1"]{order:0}
.analysis-match-console[data-first-side="0"] .analysis-match-chances>[data-player="1"],.analysis-match-console[data-first-side="1"] .analysis-match-chances>[data-player="0"]{order:2}
body.analysis-table.analysis-report-layout .analysis-match-console .position-strip{padding-bottom:calc(6px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .analysis-stats-column{grid-column:3;grid-row:1;display:flex;flex-direction:column;position:relative;z-index:12;left:calc(0px - var(--analysis-panel-room));width:calc(100% + var(--analysis-panel-room));min-width:0;min-height:0;height:100%;border:1px solid var(--line);border-radius:calc(5px * var(--ui-scale, 1));background:var(--ui-panel);overflow:visible;font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
.analysis-session-summary h3{font-size:max(11px, calc(15px * var(--ui-scale, 1)));font-weight:500;color:var(--text);margin:calc(12px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1)) calc(7px * var(--ui-scale, 1))}
#analysis-match-stats{flex:0 1 auto;min-height:calc(120px * var(--ui-scale, 1));overflow:auto;padding:0 calc(2px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));scrollbar-width:thin}
.report-stat-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:max(11px, calc(12px * var(--ui-scale, 1)));table-layout:fixed}
.report-stat-table th,.report-stat-table td{padding:calc(5px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));vertical-align:middle;text-align:right;overflow-wrap:anywhere}
.report-stat-table th{font-weight:400;color:var(--muted)}
.report-stat-table thead th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-stat-table tbody th{white-space:normal;overflow:visible;text-overflow:clip}
.report-stat-table th:first-child{width:43%;text-align:left}
.report-stat-table thead th:first-child{width:45%}
.analysis-session-summary .report-stat-table thead th:first-child{width:43%}
.analysis-session-summary .report-stat-table :is(th,td){padding:calc(7px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)));line-height:max(14px, calc(20px * var(--ui-scale, 1)))}
.analysis-session-summary .report-stat-table thead th{font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
.analysis-session-summary .report-stat-table td{white-space:nowrap}
.report-stat-table [data-player="0"]{color:#dd7782}.report-stat-table [data-player="1"]{color:#48add6}
.report-stat-table [data-quality="best"],.report-stat-table [data-quality="good"]{color:#8ccbae}
.report-stat-table [data-quality="inaccuracy"]{color:#dfc574}.report-stat-table [data-quality="mistake"]{color:#e9a46c}.report-stat-table [data-quality="blunder"]{color:#ef8387}
#analysis-game-list{flex:1;min-height:calc(60px * var(--ui-scale, 1));overflow:auto;border-top:1px solid var(--line);scrollbar-width:thin}
#analysis-game-list button{display:block;width:100%;min-height:calc(38px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1));text-align:left;font-size:max(11px, calc(14px * var(--ui-scale, 1)));background:transparent;border:0;border-left:calc(2px * var(--ui-scale, 1)) solid transparent;border-radius:0;box-shadow:none}
#analysis-game-list button[aria-current="true"]{border-left-color:var(--accent,#eda740);background:#ffffff06}
#analysis-quick-report{margin:calc(8px * var(--ui-scale, 1));min-height:calc(38px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel{flex:none;padding:calc(8px * var(--ui-scale, 1));gap:calc(4px * var(--ui-scale, 1));border-top:1px solid var(--line)}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-play-console{display:block!important}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-play-console[hidden]{display:none!important}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-game-actions{display:flex!important;flex-direction:column;padding:0;margin:0;border:0;gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-game-actions>button{font-size:max(11px, calc(14px * var(--ui-scale, 1)));min-height:calc(36px * var(--ui-scale, 1));height:auto;white-space:normal;padding:calc(7px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .turn-panel{min-height:0;height:auto}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .turn-panel>.primary{height:auto;min-height:calc(38px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .cube-actions button{min-height:calc(32px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .settings-switch{height:calc(36px * var(--ui-scale, 1));min-height:calc(36px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .settings-switch::before{font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .compact-tools-footer{padding-top:0;border:0}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel :is(.compact-action-menu,.compact-file-menu)>summary{font-size:max(11px, calc(14px * var(--ui-scale, 1)));min-height:calc(36px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .study-panel .compact-quick-panel :is(.compact-menu-content,.file-menu-content){inset:auto 0 calc(100% + calc(6px * var(--ui-scale, 1))) auto;width:min(calc(320px * var(--ui-scale, 1)),calc(100vw - calc(30px * var(--ui-scale, 1))));max-height:65dvh;z-index:60}
body.analysis-table.analysis-report-layout #analysis-settings{position:fixed;inset:calc(70px * var(--ui-scale, 1)) calc(18px * var(--ui-scale, 1)) auto auto;width:calc(340px * var(--ui-scale, 1));max-height:calc(100dvh - calc(90px * var(--ui-scale, 1)));max-width:calc(100vw - calc(36px * var(--ui-scale, 1)));overflow:auto;z-index:100;box-shadow:0 calc(12px * var(--ui-scale, 1)) calc(40px * var(--ui-scale, 1)) #0009}
body.analysis-table.analysis-report-layout #analysis-settings :is(.compact-mode-label,#computer-controls,.compact-action-menu,.compact-tools-footer){margin:calc(10px * var(--ui-scale, 1)) 0}
body.analysis-table.analysis-report-layout #analysis-settings :is(.compact-menu-content,.file-menu-content){position:static;inset:auto;width:100%;max-height:none;box-shadow:none;border:0;padding:calc(6px * var(--ui-scale, 1)) 0}
body.analysis-table.analysis-report-layout .compact-tools-footer{display:block}
.analysis-board-metrics{position:absolute;inset:0;z-index:8;pointer-events:none;--clock-left:0px;--clock-right:100%;--clock-top:0px;--clock-bottom:100%}
.analysis-board-metrics .analysis-board-pips{position:absolute;left:var(--clock-right);transform:translateX(-100%);white-space:nowrap;padding:calc(3px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));border:1px solid var(--line);border-radius:calc(3px * var(--ui-scale, 1));background:var(--ui-panel);font-size:max(11px, calc(14px * var(--ui-scale, 1)));line-height:max(14px, calc(16px * var(--ui-scale, 1)));font-variant-numeric:tabular-nums}
.analysis-board-metrics .analysis-board-pips [id]{display:inline!important}
.analysis-board-metrics[data-you="0"] [data-player="1"].analysis-board-pips,.analysis-board-metrics[data-you="1"] [data-player="0"].analysis-board-pips{top:calc(var(--clock-top) - calc(27px * var(--ui-scale, 1)))}
.analysis-board-metrics[data-you="0"] [data-player="0"].analysis-board-pips,.analysis-board-metrics[data-you="1"] [data-player="1"].analysis-board-pips{top:calc(var(--clock-bottom) + calc(5px * var(--ui-scale, 1)))}
.analysis-board-pips[data-player="0"]{color:#dd7782}.analysis-board-pips[data-player="1"]{color:#48add6}
#analysis-game-chance{position:absolute;top:var(--table-top,var(--clock-top));left:calc(var(--clock-left) - calc(36px * var(--ui-scale, 1)));height:calc(var(--table-bottom,var(--clock-bottom)) - var(--table-top,var(--clock-top)));width:calc(30px * var(--ui-scale, 1));display:flex;flex-direction:column;border-radius:calc(3px * var(--ui-scale, 1));overflow:hidden;background:#555;pointer-events:auto}
#analysis-game-chance span{display:flex;justify-content:center;align-items:center;flex-shrink:0;min-height:0;font:600 max(11px, calc(11px * var(--ui-scale, 1)))/1.2 sans-serif;writing-mode:horizontal-tb;color:#fff;text-shadow:0 1px calc(2px * var(--ui-scale, 1)) #0008;overflow:hidden}
#analysis-game-chance .blue{background:#318cae}#analysis-game-chance .red{background:#aa5a65}
#analysis-game-chance[data-pending="true"]{opacity:.4}
.analysis-board-metrics[data-you="1"] #analysis-game-chance{flex-direction:column-reverse}
body.analysis-table.analysis-report-layout #analysis-settings-toggle{position:absolute;left:calc(var(--clock-right) + calc(6px * var(--ui-scale, 1)));top:var(--clock-top);transform:none;width:calc(30px * var(--ui-scale, 1));height:calc(28px * var(--ui-scale, 1));min-height:calc(28px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1));border:1px solid var(--line);pointer-events:auto;background:var(--ui-panel);border-radius:calc(3px * var(--ui-scale, 1))}
#analysis-settings-toggle span{display:none}#analysis-settings-toggle svg{width:calc(17px * var(--ui-scale, 1));height:calc(17px * var(--ui-scale, 1))}
.quick-game-report{box-sizing:border-box;width:min(calc(740px * var(--ui-scale, 1)),calc(100vw - calc(28px * var(--ui-scale, 1))));height:min(calc(920px * var(--ui-scale, 1)),calc(100dvh - calc(28px * var(--ui-scale, 1))));max-height:calc(100dvh - calc(28px * var(--ui-scale, 1)));overflow:auto;padding:calc(24px * var(--ui-scale, 1)) calc(28px * var(--ui-scale, 1));background:#242423;color:#e8e7e3;border:1px solid #50504b;border-radius:calc(8px * var(--ui-scale, 1));box-shadow:0 calc(20px * var(--ui-scale, 1)) calc(90px * var(--ui-scale, 1)) #000b;font-size:max(11px, calc(16px * var(--ui-scale, 1)))}
.quick-game-report[open]{display:flex;flex-direction:column}
.quick-game-report>*{flex:none}
.quick-game-report::backdrop{background:#0009}
.quick-game-report header{display:flex;align-items:center;justify-content:space-between;gap:calc(20px * var(--ui-scale, 1))}.quick-game-report h2{font-size:max(11px, calc(24px * var(--ui-scale, 1)));margin:0}
.quick-game-report .report-close{min-width:calc(32px * var(--ui-scale, 1));min-height:calc(32px * var(--ui-scale, 1));padding:0;font-size:max(11px, calc(24px * var(--ui-scale, 1)));background:none;border:0}
.report-scope{display:flex;gap:calc(8px * var(--ui-scale, 1));margin:calc(12px * var(--ui-scale, 1)) 0 calc(6px * var(--ui-scale, 1))}.report-scope button{background:transparent;border:0;border-bottom:calc(2px * var(--ui-scale, 1)) solid transparent;padding:calc(8px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));font-size:max(11px, calc(16px * var(--ui-scale, 1)))}.report-scope button[aria-pressed=true]{border-bottom-color:#eda740}
.report-result{font-size:max(11px, calc(17px * var(--ui-scale, 1)));line-height:max(14px, calc(24px * var(--ui-scale, 1)));margin:calc(6px * var(--ui-scale, 1)) 0 calc(16px * var(--ui-scale, 1))}
.report-graph svg{width:100%;height:calc(156px * var(--ui-scale, 1));display:block;background:#1d1d1c;border-radius:calc(4px * var(--ui-scale, 1));overflow:hidden}
.report-graph .report-area.red{fill:#a95763}.report-graph .report-area.blue{fill:#337e9d}
.report-graph .report-midline{fill:none;stroke:#ffffff35;stroke-width:1;pointer-events:none}
.report-graph .report-boundary{fill:none;stroke:#e9d9d0;stroke-width:1.5;stroke-linejoin:round;pointer-events:none}
.report-graph .report-point{fill:transparent;stroke:transparent;cursor:pointer;outline:none}
.report-graph .report-point:hover,.report-graph .report-point:focus-visible{fill:#f5e9dc;stroke:#292725;stroke-width:2}
.report-graph-legend{display:flex;align-items:center;justify-content:space-between;gap:calc(8px * var(--ui-scale, 1));padding:calc(10px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1));font-size:max(11px, calc(13px * var(--ui-scale, 1)));color:#aaa}
.report-graph-legend .red{color:#dd7782}.report-graph-legend .blue{color:#48add6}
.quick-game-report .report-stat-table{font-size:max(11px, calc(16px * var(--ui-scale, 1)));line-height:max(14px, calc(22px * var(--ui-scale, 1)));margin:calc(8px * var(--ui-scale, 1)) 0 0}
.quick-game-report .report-stat-table :is(th,td){padding:calc(6px * var(--ui-scale, 1)) calc(12px * var(--ui-scale, 1));border-bottom:1px solid #ffffff0c;text-align:center}
.quick-game-report .report-stat-table th:first-child{width:40%;text-align:left}
.quick-game-report .report-stat-table thead th{font-size:max(11px, calc(15px * var(--ui-scale, 1)));font-weight:500;padding-bottom:calc(12px * var(--ui-scale, 1))}
.quick-game-report .report-stat-table td{font-weight:500}
.quick-game-report footer{display:grid;grid-template-columns:1fr 1fr;gap:calc(8px * var(--ui-scale, 1));margin-top:auto;padding-top:calc(20px * var(--ui-scale, 1))}
.quick-game-report footer :is(button,a){font-size:max(11px, calc(16px * var(--ui-scale, 1)));min-height:calc(44px * var(--ui-scale, 1))}
.quick-game-report footer .primary{grid-column:1/-1;min-height:calc(46px * var(--ui-scale, 1))}.quick-game-report footer a{text-align:center;padding:calc(12px * var(--ui-scale, 1))}
@media(max-width:600px),(max-height:650px){.quick-game-report{padding:calc(18px * var(--ui-scale, 1));width:min(calc(740px * var(--ui-scale, 1)),calc(100vw - calc(20px * var(--ui-scale, 1))));height:calc(100dvh - calc(20px * var(--ui-scale, 1)));max-height:calc(100dvh - calc(20px * var(--ui-scale, 1)))}.quick-game-report h2{font-size:max(11px, calc(21px * var(--ui-scale, 1)))}.quick-game-report .report-stat-table :is(th,td){padding:calc(6px * var(--ui-scale, 1))}.report-graph svg{height:calc(120px * var(--ui-scale, 1))}.report-graph-legend{font-size:max(11px, calc(11px * var(--ui-scale, 1)))}}
@media(max-width:1100px){body.analysis-table.analysis-report-layout:not(.analysis-mobile) .study-layout{grid-template-columns:minmax(0,1fr) calc(300px * var(--ui-scale, 1)) calc(300px * var(--ui-scale, 1))}.report-stat-table th,.report-stat-table td{padding:calc(4px * var(--ui-scale, 1))}}
@media(max-height:800px){body.analysis-report-layout:not(.analysis-mobile) .analysis-session-summary h3{margin:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1))}body.analysis-report-layout:not(.analysis-mobile) .analysis-session-summary .report-stat-table :is(th,td){padding:calc(4px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1))}}
/* On a phone the statistics stay after history inside the existing scrollable
   sidebar; no third narrow column steals the board's 60% width. */
body.analysis-table.analysis-report-layout.analysis-mobile-wide .study-layout{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr);padding:calc(28px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1)) calc(28px * var(--ui-scale, 1)) calc(40px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout.analysis-mobile-wide .study-center{grid-column:1;grid-row:1;padding:0;margin-right:0}
body.analysis-table.analysis-report-layout.analysis-mobile-wide .study-panel{grid-column:2;grid-row:1;height:100%;max-height:100%;overflow:auto}
body.analysis-table.analysis-report-layout.analysis-mobile .study-panel .analysis-stats-column{display:flex;width:100%;height:auto;min-height:calc(360px * var(--ui-scale, 1));flex:none;overflow:visible}
body.analysis-table.analysis-report-layout.analysis-mobile .study-panel .compact-quick-panel :is(.compact-menu-content,.file-menu-content){position:static;width:100%;max-height:none}
body.analysis-table.analysis-report-layout.analysis-mobile #analysis-settings-toggle{left:calc(var(--clock-right) - calc(82px * var(--ui-scale, 1)));top:calc(var(--clock-top) - calc(28px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout.analysis-mobile-wide #analysis-settings{position:absolute;inset:calc(5px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1)) calc(5px * var(--ui-scale, 1)) auto;max-height:none;width:calc(320px * var(--ui-scale, 1));max-width:calc(100% - calc(10px * var(--ui-scale, 1)))}
body.analysis-report-layout.analysis-mobile .analysis-stats-column #analysis-game-list{max-height:calc(180px * var(--ui-scale, 1));min-height:calc(80px * var(--ui-scale, 1))}
@media(max-width:800px){body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .study-layout{display:flex;padding-left:calc(40px * var(--ui-scale, 1))}body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .study-center{height:auto}body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .study-panel{height:auto;max-height:none}}
/* Best moves and direct controls stay next to the board; history has its own column. */
body.analysis-table.analysis-report-layout .study-panel{gap:0;overflow:hidden}
body.comfort-ui.analysis-table.analysis-report-layout .study-panel>#pane-analysis{flex:1 1 calc(280px * var(--ui-scale, 1));min-height:calc(190px * var(--ui-scale, 1));max-height:none;overflow:hidden}
body.analysis-table.analysis-report-layout .study-panel #pane-analysis>.engine-panel{grid-template-rows:calc(94px * var(--ui-scale, 1)) minmax(0,1fr);grid-template-columns:minmax(0,1fr);padding:0 calc(10px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout #analysis-dice-entry{grid-column:1/-1;display:flex;align-items:center;flex-wrap:nowrap;height:calc(94px * var(--ui-scale, 1));min-height:calc(94px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1)) 0;gap:calc(10px * var(--ui-scale, 1));position:relative}
body.analysis-table.analysis-report-layout #analysis-dice-entry label{position:static;font-size:max(11px, calc(18px * var(--ui-scale, 1)));font-weight:600;line-height:max(14px, calc(24px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout #analysis-quick-dice{flex:none;width:calc(84px * var(--ui-scale, 1));min-width:calc(84px * var(--ui-scale, 1));height:calc(60px * var(--ui-scale, 1));min-height:calc(60px * var(--ui-scale, 1));padding:0 0 0 calc(9px * var(--ui-scale, 1));font-size:max(11px, calc(32px * var(--ui-scale, 1)));line-height:max(14px, calc(60px * var(--ui-scale, 1)));letter-spacing:calc(9px * var(--ui-scale, 1));font-weight:600;border-radius:calc(6px * var(--ui-scale, 1))}
.analysis-dice-faces{display:flex;align-items:center;gap:calc(8px * var(--ui-scale, 1));margin-left:auto}
.analysis-die{width:calc(54px * var(--ui-scale, 1));height:calc(54px * var(--ui-scale, 1));flex:none;filter:drop-shadow(0 calc(3px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1)) #0005)}
.analysis-die.light .die-edge{fill:#a4a299}.analysis-die.light .die-surface{fill:#eee9dc}.analysis-die.light circle{fill:#262624}
.analysis-die.dark .die-edge{fill:#090909}.analysis-die.dark .die-surface{fill:#353534;stroke:#66665f;stroke-width:1}.analysis-die.dark circle{fill:#eee9dc}
.analysis-die[data-value="0"]{opacity:.28}
body.analysis-table.analysis-report-layout #analysis-restore-dice{position:absolute;right:0;bottom:0;width:auto;min-height:calc(20px * var(--ui-scale, 1));height:calc(20px * var(--ui-scale, 1));padding:1px calc(2px * var(--ui-scale, 1));font-size:max(11px, calc(11px * var(--ui-scale, 1)));line-height:max(14px, calc(16px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout #analysis-restore-dice::after{content:none}
body.analysis-table.analysis-report-layout #analysis-overview:empty{display:none!important}
body.analysis-table.analysis-report-layout .study-panel>.compact-quick-panel{flex:none;padding:calc(8px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1));gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .compact-quick-panel #analysis-quick-report{margin:0;min-height:calc(34px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .compact-quick-panel .analysis-automation{display:grid;grid-template-columns:1fr 1fr;gap:calc(12px * var(--ui-scale, 1));padding:0 0 calc(5px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .compact-quick-panel .settings-switch::before{font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .compact-quick-panel .analysis-game-actions{gap:calc(4px * var(--ui-scale, 1))!important;margin-top:calc(4px * var(--ui-scale, 1))!important}
body.analysis-table.analysis-report-layout .compact-quick-panel .analysis-game-actions>button{min-height:calc(34px * var(--ui-scale, 1));height:calc(34px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .compact-direct-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(5px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .compact-direct-actions .resign-actions{display:contents}
body.analysis-table.analysis-report-layout .compact-direct-actions button{height:auto;min-height:calc(36px * 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)));white-space:normal}
body.analysis-table.analysis-report-layout .compact-direct-actions #offer-cube:not([hidden]){grid-column:1/-1}
body.comfort-ui.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-play-console{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:calc(5px * var(--ui-scale, 1))}
body.comfort-ui.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-play-console[hidden]{display:none!important}
body.comfort-ui.analysis-table.analysis-report-layout .study-panel .compact-quick-panel .analysis-game-actions{display:contents!important}
body.analysis-table.analysis-report-layout .compact-quick-panel #pane-play{grid-column:1;grid-row:1}
body.analysis-table.analysis-report-layout .compact-quick-panel #undo-move{grid-column:2;grid-row:1;align-self:stretch;min-height:calc(40px * var(--ui-scale, 1));height:auto}
body.analysis-table.analysis-report-layout .compact-quick-panel :is(.compact-direct-actions,#study-game-result,#next-study-game,.analysis-route-choice){grid-column:1/-1}
body.analysis-table.analysis-report-layout .compact-quick-panel .compact-file-menu>summary{min-height:calc(30px * var(--ui-scale, 1));height:calc(30px * var(--ui-scale, 1));padding:calc(4px * var(--ui-scale, 1)) calc(9px * var(--ui-scale, 1));font-size:max(11px, calc(13px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .analysis-session-summary{flex:0 1 auto;min-height:calc(100px * var(--ui-scale, 1));max-height:27%;overflow:auto;scrollbar-width:thin;border-top:1px solid var(--line);background:var(--ui-panel);padding:0 calc(8px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .analysis-session-summary #analysis-match-stats{min-height:0;overflow:visible;padding:0}
body.analysis-table.analysis-report-layout .analysis-session-summary h3{margin:calc(8px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1)) calc(2px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .analysis-session-summary .report-stat-table :is(th,td){padding:calc(3px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1));font-size:max(11px, calc(14px * var(--ui-scale, 1)));line-height:max(14px, calc(20px * var(--ui-scale, 1)))}
body.analysis-table.analysis-report-layout .analysis-session-summary .report-stat-table th:first-child{width:34%}
body.analysis-table.analysis-report-layout .analysis-session-summary #analysis-game-list{min-height:0;overflow:visible;margin-top:calc(6px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .analysis-session-summary #analysis-game-list button{min-height:calc(30px * var(--ui-scale, 1));padding:calc(5px * var(--ui-scale, 1))}
.report-stat-table [data-stat="luck"] :is(th,td){color:#e8e7e3}
.report-luck-value{display:flex;align-items:center;justify-content:flex-end;gap:calc(8px * var(--ui-scale, 1));white-space:nowrap}
.report-luck-value .luck-face{width:calc(24px * var(--ui-scale, 1));height:calc(24px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout .analysis-history-column{overflow:hidden}
body.analysis-table.analysis-report-layout .analysis-history-column #pane-history{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;max-height:none;overflow:hidden;border:0;background:transparent}
body.analysis-table.analysis-report-layout .analysis-history-column #pane-history[hidden]{display:none}
body.analysis-table.analysis-report-layout .analysis-history-column #pane-history>.line-panel{flex:1;min-height:0;overflow:auto;padding:0;scrollbar-width:thin}
body.analysis-table.analysis-report-layout .analysis-history-column #timeline{max-height:none;overflow:visible}
body.analysis-table.analysis-report-layout .analysis-history-column .history-toolbar{flex:none;grid-template-columns:repeat(5,minmax(0,1fr))}
body.analysis-table.analysis-report-layout .compact-file-menu .line-picker{flex-direction:column;align-items:stretch;font-size:max(11px, calc(13px * var(--ui-scale, 1)));gap:calc(6px * var(--ui-scale, 1));padding:calc(8px * var(--ui-scale, 1)) 0 0;margin:calc(8px * var(--ui-scale, 1)) 0 0;border-top:1px solid var(--line)}
body.analysis-table.analysis-report-layout .compact-file-menu .line-picker select{font-size:max(11px, calc(14px * var(--ui-scale, 1)));min-height:calc(38px * var(--ui-scale, 1));color:var(--text);background:var(--ui-control)}
body.analysis-table.analysis-report-layout.analysis-mobile .study-panel{overflow:auto}
body.analysis-table.analysis-report-layout.analysis-mobile #analysis-dice-entry{width:auto}
body.comfort-ui.analysis-table.analysis-report-layout.analysis-mobile .study-panel>#pane-analysis{flex:none;height:calc(380px * var(--ui-scale, 1));min-height:calc(380px * var(--ui-scale, 1))}
body.analysis-table.analysis-report-layout.analysis-mobile .analysis-session-summary{flex:none;max-height:none;overflow:visible}
body.analysis-table.analysis-report-layout.analysis-mobile .study-panel .analysis-history-column{height:calc(460px * var(--ui-scale, 1));min-height:calc(460px * var(--ui-scale, 1));overflow:hidden}
@media(max-width:1400px){body.analysis-table.analysis-report-layout #analysis-dice-entry{gap:calc(7px * var(--ui-scale, 1))}body.analysis-table.analysis-report-layout #analysis-dice-entry label{font-size:max(11px, calc(16px * var(--ui-scale, 1)))}.analysis-dice-faces{gap:calc(6px * var(--ui-scale, 1))}.analysis-die{width:calc(46px * var(--ui-scale, 1));height:calc(46px * var(--ui-scale, 1))}}
@media(max-height:800px) and (min-width:801px){body.comfort-ui.analysis-table.analysis-report-layout:not(.analysis-mobile) .study-panel>#pane-analysis{min-height:calc(120px * var(--ui-scale, 1))}body.analysis-table.analysis-report-layout:not(.analysis-mobile) #candidates{overflow:auto;scrollbar-width:thin}}
@media(max-width:800px){body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .study-panel>#pane-analysis{flex:none;height:calc(380px * var(--ui-scale, 1))}body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .analysis-session-summary{max-height:none}body.analysis-table.analysis-report-layout:not(.analysis-mobile-wide) .analysis-history-column{height:calc(460px * var(--ui-scale, 1));min-height:calc(460px * var(--ui-scale, 1))}}
