/* TJK-Chess v15.1.236 — computer-analysis rebuild + database diagnostics */

/* Database: never leave a mysterious empty lower pane when the statistical
   opening index has counts but no concrete game-reference index. */
.analysis-db-reference-note{margin:10px 12px;padding:10px 12px;border:1px solid #cbd7e8;border-radius:9px;background:#f8fbff;color:#53657f;display:grid;gap:3px;line-height:1.35}
.analysis-db-reference-note strong{color:#123f91;font-size:.88rem}.analysis-db-reference-note span{font-size:.78rem}

/* Computer analysis is a normal integrated tool page. Keep the same visual
   language and proportions as Analysebrett instead of a stretched review modal. */
.game-review-page{padding:12px 20px 34px!important;background:#f4f7fb!important}
.game-review-page>.game-review-overlay.is-page{position:static!important;inset:auto!important;width:100%!important;display:block!important;background:transparent!important;padding:0!important;overflow:visible!important;backdrop-filter:none!important}
.game-review-overlay.is-page .game-review-dialog{width:min(1510px,100%)!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0 auto!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;color:#10213f!important;zoom:1!important}
.game-review-overlay.is-page .game-review-head{position:static!important;min-height:44px!important;padding:0 2px 9px!important;margin:0!important;border:0!important;background:transparent!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.game-review-overlay.is-page .game-review-head h2{margin:0!important;font-size:1.24rem!important;line-height:1.15!important;color:#0d2857!important}.game-review-overlay.is-page .game-review-head p{margin:2px 0 0!important;font-size:.78rem!important;color:#75849b!important}
.game-review-overlay.is-page .game-review-head-actions{display:flex!important;align-items:center!important;gap:7px!important}.game-review-overlay.is-page .game-review-favorite,.game-review-overlay.is-page .game-review-close{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border:1px solid #cbd6e5!important;border-radius:8px!important;background:#fff!important;color:#17315e!important;box-shadow:none!important;font-size:1.05rem!important}
.game-review-overlay.is-page .game-review-progress{height:3px!important;margin:0 0 8px!important;background:#dfe6ef!important;border-radius:999px!important;overflow:hidden!important}.game-review-overlay.is-page .game-review-body{padding:0!important;overflow:visible!important;max-height:none!important}

.game-review-overlay.is-page .game-review-interactive{display:grid!important;grid-template-columns:minmax(480px,640px) minmax(500px,1fr)!important;gap:14px!important;align-items:start!important}
.game-review-overlay.is-page .game-review-board-panel{padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;position:sticky!important;top:88px!important}
.game-review-overlay.is-page .game-review-playerbar{width:min(100%,640px)!important;min-height:28px!important;margin:0 auto!important;padding:2px 28px!important;color:#31425d!important;font-size:.8rem!important}
.game-review-overlay.is-page .game-review-board-row.analysis-board-wrap{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:5px!important;width:min(100%,640px)!important;margin:0 auto!important}
.game-review-overlay.is-page .game-review-evalbar.analysis-eval-bar{border-radius:4px!important;overflow:hidden!important;background:#253247!important}
.game-review-overlay.is-page .game-review-board-wrap.analysis-board-stage{width:100%!important;aspect-ratio:1!important;overflow:visible!important;background:transparent!important;border:0!important}
.game-review-overlay.is-page .game-review-board.analysis-chessboard{width:100%!important;height:100%!important;min-width:0!important;border:2px solid #263246!important;border-radius:4px!important;overflow:hidden!important;background:#789b59!important}
.game-review-overlay.is-page .game-review-square.analysis-square.is-light{background:#eeeecf!important}.game-review-overlay.is-page .game-review-square.analysis-square.is-dark{background:#789b59!important}
.game-review-overlay.is-page .game-review-piece.analysis-piece{width:100%!important;height:100%!important}.game-review-overlay.is-page .game-review-piece.analysis-piece>.tjk-chess-piece{width:92%!important;height:92%!important}
.game-review-overlay.is-page .game-review-navigation.analysis-board-controls{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:5px!important;width:min(100%,640px)!important;margin:6px auto 0!important;padding-left:27px!important}
.game-review-overlay.is-page .game-review-navigation.analysis-board-controls button{min-height:36px!important;padding:0 8px!important;border:1px solid #c8d3e1!important;border-radius:7px!important;background:#fff!important;color:#22334e!important;font:inherit!important;font-size:.84rem!important}

.game-review-overlay.is-page .game-review-detail-panel{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible!important;max-height:none!important;min-height:0!important}
.game-review-overlay.is-page .analysis-card,.game-review-overlay.is-page .game-review-current,.game-review-overlay.is-page .game-review-options,.game-review-overlay.is-page .game-review-notation,.game-review-overlay.is-page .game-review-training-actions,.game-review-overlay.is-page .game-review-mistake-trainer{border:1px solid #d7e0eb!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;color:#21324d!important}

/* Engine stays at the very top and mirrors the analysis-board engine card. */
.game-review-overlay.is-page .game-review-analysis-engine{order:0!important;overflow:hidden!important}
.game-review-overlay.is-page .analysis-card-heading{min-height:51px!important;padding:8px 11px!important;border-bottom:1px solid #dfe6ef!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.game-review-overlay.is-page .analysis-card-heading .analysis-kicker{font-size:.68rem!important;letter-spacing:.06em!important;color:#075bd8!important;font-weight:900!important}.game-review-overlay.is-page .analysis-card-heading h2{margin:1px 0 0!important;font-size:1rem!important;color:#10213f!important}
.game-review-overlay.is-page .analysis-engine-settings{display:grid!important;grid-template-columns:minmax(150px,1fr) 82px 76px 96px 96px!important;gap:6px!important;align-items:end!important;padding:7px 10px 5px!important;background:#fff!important}
.game-review-overlay.is-page .analysis-engine-settings label{display:grid!important;gap:2px!important;font-size:.68rem!important;font-weight:800!important;color:#59697f!important}.game-review-overlay.is-page .analysis-engine-settings select{height:32px!important;min-height:32px!important;padding:2px 6px!important;border:1px solid #c8d3e1!important;border-radius:6px!important;background:#fff!important;color:#1c2d48!important;font:inherit!important}
.game-review-overlay.is-page .analysis-engine-settings button{height:32px!important;min-height:32px!important;padding:0 8px!important;border:1px solid #c8d3e1!important;border-radius:6px!important;background:#fff!important;color:#1c2d48!important;font:inherit!important;font-size:.78rem!important}.game-review-overlay.is-page .analysis-engine-settings button.is-active{background:#edf4ff!important;border-color:#8fb3ef!important;color:#064faf!important}
.game-review-overlay.is-page .game-review-engine-state{min-height:21px!important;padding:2px 10px 5px!important;font-size:.7rem!important;color:#748299!important;background:#fff!important}
.game-review-overlay.is-page .game-review-pv-list.analysis-pv-list{display:grid!important;gap:3px!important;max-height:none!important;padding:0 8px 8px!important;background:#fff!important}
.game-review-overlay.is-page .analysis-pv-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) 34px!important;align-items:center!important;gap:5px!important;min-height:34px!important;width:100%!important;padding:5px 7px!important;border:1px solid #e3e9f1!important;border-radius:7px!important;background:#f9fbfe!important;color:#14294b!important;text-align:left!important}
.game-review-overlay.is-page button.analysis-pv-row{cursor:pointer!important}.game-review-overlay.is-page button.analysis-pv-row:hover{background:#edf4ff!important;border-color:#b9cdf0!important}.game-review-overlay.is-page .analysis-pv-score{font-weight:900!important;color:#0b4aa8!important}.game-review-overlay.is-page .analysis-pv-line{min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;font-weight:650!important;font-size:.82rem!important}.game-review-overlay.is-page .analysis-pv-row small{text-align:right!important;color:#78869a!important;font-size:.68rem!important}

/* Metadata is deliberately compact; it must not dominate the analysis. */
.game-review-overlay.is-page .game-review-metadata{overflow:hidden!important}.game-review-overlay.is-page .game-review-meta-heading{min-height:38px!important;padding:5px 10px!important}.game-review-overlay.is-page .game-review-meta-heading h2{font-size:.86rem!important}.game-review-metadata-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 105px!important;gap:7px!important;padding:7px 9px 9px!important;background:#fff!important}.game-review-metadata-grid label{display:grid!important;gap:2px!important;color:#64748b!important;font-size:.68rem!important;font-weight:800!important}.game-review-metadata-grid input,.game-review-metadata-grid select{height:32px!important;min-height:32px!important;padding:3px 7px!important;border:1px solid #cbd5e1!important;border-radius:6px!important;background:#fff!important;color:#1f2f49!important;font:inherit!important;font-size:.82rem!important}

.game-review-overlay.is-page .game-review-current{min-height:52px!important;padding:7px 10px!important;margin:0!important}.game-review-overlay.is-page .game-review-current>div{min-width:0!important}.game-review-overlay.is-page .game-review-current strong{font-size:.94rem!important}.game-review-overlay.is-page .game-review-current span,.game-review-overlay.is-page .game-review-current small{font-size:.71rem!important;color:#738198!important}

/* Move list: analysis-board style, compact two moves per row. No huge wide pills. */
.game-review-overlay.is-page .game-review-notation{max-height:310px!important;overflow:auto!important;padding:4px 0!important}
.game-review-overlay.is-page .game-review-move-row{display:grid!important;grid-template-columns:38px minmax(110px,1fr) minmax(110px,1fr)!important;align-items:stretch!important;min-height:35px!important;border-bottom:1px solid #edf1f6!important;background:#fff!important}.game-review-overlay.is-page .game-review-move-row:last-child{border-bottom:0!important}.game-review-overlay.is-page .game-review-move-row:nth-child(odd){background:#fafcff!important}.game-review-overlay.is-page .game-review-move-number{display:flex!important;align-items:center!important;justify-content:flex-end!important;padding-right:7px!important;color:#7a8799!important;font-size:.76rem!important;background:transparent!important}
.game-review-overlay.is-page .game-review-notation-move.analysis-tree-move{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;width:100%!important;min-width:0!important;min-height:34px!important;margin:0!important;padding:4px 8px!important;border:0!important;border-left:1px solid #edf1f6!important;border-radius:0!important;background:transparent!important;color:#1d2f4c!important;text-align:left!important;font-size:.82rem!important;font-weight:750!important;box-shadow:none!important}.game-review-overlay.is-page .game-review-notation-move:hover{background:#eef4ff!important}.game-review-overlay.is-page .game-review-notation-move.is-current{background:#dfeeff!important;color:#0a428f!important;box-shadow:inset 3px 0 #1265d8!important}.game-review-overlay.is-page .game-review-notation-move>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.game-review-overlay.is-page .game-review-mini-icon{flex:0 0 auto!important;width:20px!important;height:20px!important;font-size:.68rem!important}

.game-review-overlay.is-page .game-review-options{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:7px!important}.game-review-overlay.is-page .game-review-options button,.game-review-overlay.is-page .game-review-training-actions button{min-height:32px!important;padding:5px 9px!important;border:1px solid #cbd5e1!important;border-radius:6px!important;background:#fff!important;color:#21324d!important;font:inherit!important;font-size:.77rem!important}.game-review-overlay.is-page .game-review-options button:hover,.game-review-overlay.is-page .game-review-training-actions button:hover{background:#eef4ff!important}
.game-review-overlay.is-page .game-review-training-actions,.game-review-overlay.is-page .game-review-mistake-trainer{padding:9px 10px!important}

/* Secondary review material is below the main analysis and no longer competes
   for space with board, lines and moves. */
.game-review-overlay.is-page .game-review-overview{margin:10px 0 0!important;border:1px solid #d7e0eb!important;border-radius:10px!important;background:#fff!important;color:#21324d!important;overflow:hidden!important}.game-review-overlay.is-page .game-review-overview>summary{padding:9px 12px!important;background:#f8fafc!important;color:#21324d!important;font-size:.86rem!important;font-weight:850!important}.game-review-overlay.is-page .game-review-actions{display:none!important}

@media(max-width:1120px){.game-review-overlay.is-page .game-review-interactive{grid-template-columns:1fr!important}.game-review-overlay.is-page .game-review-board-panel{position:static!important;max-width:690px!important;width:100%!important;margin:0 auto!important}.game-review-overlay.is-page .game-review-detail-panel{max-width:820px!important;width:100%!important;margin:0 auto!important}}
@media(max-width:720px){.game-review-page{padding:4px!important}.game-review-overlay.is-page .game-review-head{padding:4px 4px 8px!important}.game-review-overlay.is-page .game-review-board-row.analysis-board-wrap{grid-template-columns:18px minmax(0,1fr)!important;width:100%!important;gap:3px!important}.game-review-overlay.is-page .game-review-navigation.analysis-board-controls{width:100%!important;padding-left:21px!important}.game-review-overlay.is-page .analysis-engine-settings{grid-template-columns:1fr 72px 68px!important}.game-review-overlay.is-page .analysis-engine-settings button{grid-column:auto!important}.game-review-metadata-grid{grid-template-columns:1fr 1fr!important}.game-review-metadata-grid label:last-child{grid-column:1/-1!important}.game-review-overlay.is-page .game-review-move-row{grid-template-columns:32px minmax(90px,1fr) minmax(90px,1fr)!important}}
