/* Unsigned Analyze shows its existing browser Stockfish pane, not the
   repertoire-continuations panel. Scope all changes to unsigned sessions;
   preserve the board and the Analysis/Explain mobile tab geometry. */
html.chess-unsigned .guest-analysis-upsell:not([hidden]){
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.45rem .8rem;
  margin:.7rem .2rem .2rem;
  padding:.65rem .75rem;
  font-size:.85rem;
  line-height:1.35;
  color:var(--ai-color-text-secondary,#576273);
  background:var(--ai-color-surface-2,#f5f7fa);
  border:1px solid var(--ai-color-border,#cfd8e6);
  border-radius:10px;
}
html.chess-unsigned .guest-analysis-upsell[hidden]{display:none!important}
html.chess-unsigned .guest-analysis-upsell a{
  flex:0 0 auto;
  font-weight:600;
  color:var(--ai-color-link,#1d59cc);
  text-decoration:underline;
}
@media (max-width:1000px){
  html.chess-unsigned.mobile-chess-shell-active[data-mobile-mode="explain"][data-mobile-analysis-submode="engine"] #trainerLayout.workspace-analyze>.middle-column>.engine-panel{
    display:flex!important;
    flex:0 0 auto!important;
    flex-direction:column!important;
    min-height:0!important;
  }
}
/* The legacy continuation panel uses !important display rules on mobile and
   desktop; hide it explicitly only within unsigned Analyze, not Navigate/Train. */
html.chess-unsigned[data-mobile-mode="explain"][data-mobile-analysis-submode="engine"] #trainerLayout.workspace-analyze #lichessPanel{
  display:none!important;
}
html.chess-unsigned[data-mobile-mode="explain"][data-mobile-analysis-submode="engine"] #trainerLayout.workspace-analyze #exploreViewToolbar{
  display:none!important;
}
@media (min-width:1001px){
  html.chess-unsigned[data-mobile-mode="explain"][data-mobile-analysis-submode="engine"] #trainerLayout.workspace-analyze>.middle-column{
    display:flex!important;
    grid-column:3/6!important;
  }
  html.chess-unsigned[data-mobile-mode="explain"][data-mobile-analysis-submode="engine"] #trainerLayout.workspace-analyze>.right-column{
    display:none!important;
  }
}
