/* TJK-Chess v15.1.232 integration fixes */

/* Desktop navigation: modestly larger without reintroducing the overlap problem. */
@media (min-width:1450px){
  .site-header .site-nav{gap:clamp(9px,1.05vw,20px)}
  .site-header .site-nav>button,
  .site-header .site-nav>.site-nav-link,
  .site-header .site-nav>.site-nav-item>button{min-height:45px;padding-left:17px;padding-right:17px;font-size:15px}
}

/* A computer analysis opened in a new tab is the page, not a floating dialog. */
.game-review-overlay.is-standalone{inset:0!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;padding:0!important;background:#15191f!important}
.game-review-overlay.is-standalone .game-review-dialog{zoom:1!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.game-review-overlay.is-standalone .game-review-head{border-radius:0!important}

/* Required result selector for analyses that do not come from a finished played game. */
.game-review-result-prompt{position:fixed;z-index:10050;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(7,13,24,.58);backdrop-filter:blur(3px)}
.game-review-result-dialog{width:min(430px,calc(100vw - 32px));padding:24px;border:1px solid #d6dfeb;border-radius:14px;background:#fff;color:#10213f;box-shadow:0 22px 70px rgba(9,24,50,.3)}
.game-review-result-dialog h2{margin:0 0 7px;font-size:22px}.game-review-result-dialog p{margin:0 0 18px;color:#66758d;font-size:14px;line-height:1.45}
.game-review-result-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.game-review-result-buttons button{min-height:48px;border:1px solid #aac0e2;border-radius:9px;background:#f5f8fd;color:#102b59;font-size:18px;font-weight:800;cursor:pointer}.game-review-result-buttons button:hover{border-color:#1260d6;background:#eaf2ff}
.game-review-result-cancel{width:100%;margin-top:11px;padding:9px;border:0;background:transparent;color:#68768b;cursor:pointer}

/* Personal database delete control. */
.analysis-db-personal-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;gap:4px}.analysis-db-personal-row>.analysis-db-game{min-width:0}.analysis-db-personal-delete{align-self:center;width:28px;height:28px;border:1px solid #d9e1ed;border-radius:6px;background:#fff;color:#9b3041;font-size:18px;line-height:1;cursor:pointer}.analysis-db-personal-delete:hover{background:#fff0f2;border-color:#efb6bf}

/* Broadcast database now uses the same source/player controls as the analysis database. */
.broadcast-db-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.8fr);gap:6px;min-width:0;flex:1}.broadcast-db-controls select,.broadcast-db-controls input{min-width:0;height:32px;padding:0 8px;border:1px solid #ccd7e6;border-radius:7px;background:#fff;color:#17243c;font:650 11px/1.2 inherit}.broadcast-db-controls input{padding-inline:9px}
@media(max-width:1180px){.broadcast-db-controls{grid-template-columns:1fr}.broadcast-db-controls select,.broadcast-db-controls input{height:30px}}
