/* KTV v112 functional restore: fixes missing Player/Team/Search content and removes destructive dim overlays. */
body.ktv-v112-functional-restore main.ktv-content,
body.ktv-v112-functional-restore .ktv-content,
main.ktv-content,
.ktv-content{opacity:1!important;filter:none!important;visibility:visible!important;}

/* Never let prior visual passes hide operational workstations. */
.pit-shell,.pit-search,#out,#sourceBox,#player,#market,#discoverBtn,#refreshPropsBtn,
.team-hero,#kpis,.team-grid,#trendChart,#marketChart,#gameLog,#agents,#memo,#splits,#events,#routing,
.search-hero,#query,#type,#sort,#refresh,#results,#sourceGrid,#selectedPanel,#memo{
  visibility:visible!important;opacity:1!important;filter:none!important;pointer-events:auto!important;
  height:auto!important;max-height:none!important;overflow:visible!important;position:relative!important;left:auto!important;top:auto!important;
}
.pit-shell.ktv-v108-hide,.pit-search.ktv-v108-hide,#out.ktv-v108-hide,#sourceBox.ktv-v108-hide,
.team-hero.ktv-v108-hide,#kpis.ktv-v108-hide,.team-grid.ktv-v108-hide,#trendChart.ktv-v108-hide,#marketChart.ktv-v108-hide,#gameLog.ktv-v108-hide,#agents.ktv-v108-hide,#memo.ktv-v108-hide,#splits.ktv-v108-hide,#events.ktv-v108-hide,#routing.ktv-v108-hide,
.search-hero.ktv-v108-hide,#results.ktv-v108-hide,#sourceGrid.ktv-v108-hide,#selectedPanel.ktv-v108-hide{
  display:revert!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
body.ktv-v72-player-page .pit-shell{display:grid!important;grid-template-columns:360px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;margin-top:18px!important;}
body.ktv-v72-player-page .pit-search{display:block!important;position:sticky!important;top:86px!important;}
body.ktv-v72-player-page #out{display:block!important;min-height:320px!important;}
body.ktv-v72-team-page #kpis{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;margin:16px 0!important;}
body.ktv-v72-team-page .team-grid{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr)!important;gap:18px!important;margin-top:16px!important;}
body.ktv-v72-team-page .team-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:18px!important;align-items:start!important;}

/* Remove the heavy black curtain effect while preserving the green terminal theme. */
.ktv-hero,.ktv-panel,.terminal-card,.card,.panel,.module,.widget,.box,.tile{
  filter:none!important;opacity:1!important;backdrop-filter:none!important;
}
.ktv-content:before,.ktv-content:after,main:before,main:after,.page:before,.page:after,.terminal-shell:before,.terminal-shell:after{
  content:none!important;display:none!important;
}

/* Compact heroes: visual polish only, no content replacement. */
.ktv-hero{min-height:0!important;padding:20px 22px!important;margin-bottom:16px!important;}
.ktv-title,h1{line-height:1!important;}

@media(max-width:980px){
  body.ktv-v72-player-page .pit-shell,
  body.ktv-v72-team-page .team-grid,
  body.ktv-v72-team-page .team-hero{grid-template-columns:1fr!important;}
  body.ktv-v72-player-page .pit-search{position:relative!important;top:auto!important;}
  body.ktv-v72-team-page #kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
