/* THE CEO VAULT — V36 FINAL DASHBOARD STABILITY RESET
   Loaded last. V35 is the only presentation shell. Older runtimes keep their
   data/logic, but their historical dashboard surfaces cannot paint over it. */

body.ceo-v35 #ceo-v30-frontdoor.v35-public-host,
body.ceo-v35 #ceo-v30-frontdoor.v35-public-host.v33-public-shell,
body.ceo-v35 #ceo-v30-frontdoor.v35-public-host.v34-public-host{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  align-items:initial!important;
  justify-items:initial!important;
  min-height:0!important;
  height:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}

body.ceo-v35 #ceo-v30-home.v35-clean-home,
body.ceo-v35 #ceo-v30-home.v35-clean-home.v32-game-hub,
body.ceo-v35 #ceo-v30-home.v35-clean-home.v33-member-hub,
body.ceo-v35 #ceo-v30-home.v35-clean-home.v34-member-hub{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  align-items:initial!important;
  min-height:0!important;
  height:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* Only the final V35 shell may paint inside V30's mount. */
body.ceo-v35 #ceo-v30-frontdoor.v35-public-host>:not(.v35-public-shell),
body.ceo-v35 #ceo-v30-home.v35-clean-home>:not(.v35-member-shell){
  display:none!important;
}

body.ceo-v35 #ceo-v30-frontdoor.v35-public-host>.v35-public-shell,
body.ceo-v35 #ceo-v30-home.v35-clean-home>.v35-member-shell{
  animation:none!important;
  transition:none!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
}

body.ceo-v35 #ceo-v30-home.v35-clean-home>.v33-member-modebar,
body.ceo-v35 #ceo-v30-home.v35-clean-home>.v34-member-modebar{
  display:none!important;
}

/* Hard kill the historical global/home presentation layers that produced the
   stacked blue/green banners and multiple dashboards shown on production. */
body.ceo-v35 #ceo-member-copilot-v17,
body.ceo-v35 #ceo-v18-daily,
body.ceo-v35 #ceo-v19-member-home,
body.ceo-v35 #ceo-v19-loadout-slots,
body.ceo-v35 #ceo-retention-command-v20,
body.ceo-v35 #ceo-v28-home,
body.ceo-v35 #ceo-v29-home,
body.ceo-v35 #ceo-v29-frontdoor,
body.ceo-v35 #ceo-v28-value-strip,
body.ceo-v35 .v28-landing-proof{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Even if a cached older runtime remounts a historical home surface, Home can
   visually contain only the final V30 -> V35 chain. */
body.ceo-v35[data-ceo-v36-workspace="home"] #ceo-console-v24-home>#ceo-v30-home{
  display:block!important;
}
body.ceo-v35[data-ceo-v36-workspace="home"] #ceo-console-v24-home>:not(#ceo-v30-home){
  display:none!important;
}
body.ceo-v35:not(.v30-member-view) .v24-landing-hero .hero-content>#ceo-v30-frontdoor{
  display:block!important;
}
body.ceo-v35:not(.v30-member-view) .v24-landing-hero .hero-content>:not(#ceo-v30-frontdoor){
  display:none!important;
}

/* One visible navigation authority. */
body.ceo-v35 #view-dashboard .dashboard-tabs{
  display:none!important;
}
body.ceo-v35 #view-dashboard{
  min-height:100vh!important;
  background:#05070b!important;
  overflow-x:clip!important;
}
body.ceo-v35 #view-dashboard>.dashboard-layout{
  width:min(100%,1800px)!important;
  max-width:1800px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding-top:88px!important;
  padding-right:22px!important;
  padding-bottom:42px!important;
  padding-left:22px!important;
}
body.ceo-v35 #view-dashboard .dashboard-tab-pane{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  overflow:visible!important;
}
body.ceo-v35 #view-dashboard .dashboard-tab-pane:not(.active){
  display:none!important;
}
body.ceo-v35 #view-dashboard .dashboard-tab-pane.active{
  display:block!important;
}

/* Home and Build Lab are deliberate views of the same underlying build pane. */
body.ceo-v35[data-ceo-v36-workspace="home"] #tab-pane-builds>#ceo-console-v24-home{
  display:block!important;
}
body.ceo-v35[data-ceo-v36-workspace="home"] #tab-pane-builds>:not(#ceo-console-v24-home){
  display:none!important;
}
body.ceo-v35[data-ceo-v36-workspace="builds"] #tab-pane-builds>#ceo-console-v24-home{
  display:none!important;
}

/* Deep tools get one compact premium header instead of stacked dashboard chrome. */
body.ceo-v35 .dashboard-tab-pane>.v24-pane-head{
  min-height:0!important;
  margin:0 0 14px!important;
  padding:17px 20px!important;
  border:1px solid rgba(226,186,88,.18)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(13,18,25,.98),rgba(8,12,17,.98))!important;
  box-shadow:0 14px 34px rgba(0,0,0,.18)!important;
}
body.ceo-v35 .dashboard-tab-pane>.v24-pane-head h1{
  margin:5px 0 5px!important;
  font-size:clamp(24px,2.35vw,38px)!important;
  line-height:.98!important;
  letter-spacing:-.04em!important;
}
body.ceo-v35 .dashboard-tab-pane>.v24-pane-head p{
  max-width:900px!important;
  margin:0!important;
  color:#98a2ad!important;
  font-size:12px!important;
  line-height:1.5!important;
}
body.ceo-v35 .dashboard-tab-pane>.v24-pane-head .v24-console-hints{
  display:none!important;
}

/* Normalize deep-tool controls to the final dark/gold/emerald system. */
body.ceo-v35 .dashboard-tab-pane.active .form-input,
body.ceo-v35 .dashboard-tab-pane.active .form-select,
body.ceo-v35 .dashboard-tab-pane.active input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
body.ceo-v35 .dashboard-tab-pane.active select,
body.ceo-v35 .dashboard-tab-pane.active textarea{
  color:#eef2f1!important;
  background:#0a0f15!important;
  border-color:#27313c!important;
  box-shadow:none!important;
}
body.ceo-v35 .dashboard-tab-pane.active .form-input:focus,
body.ceo-v35 .dashboard-tab-pane.active .form-select:focus,
body.ceo-v35 .dashboard-tab-pane.active input:focus,
body.ceo-v35 .dashboard-tab-pane.active select:focus,
body.ceo-v35 .dashboard-tab-pane.active textarea:focus{
  border-color:rgba(226,186,88,.58)!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(226,186,88,.08)!important;
}

/* Fix the desktop rail so labels never collapse into an icon-only sliver. */
@media(min-width:1180px){
  body.ceo-v35 .v24-rail-nav button{
    grid-template-columns:22px minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
  }
  body.ceo-v35 .v24-rail-nav button span{
    display:block!important;
    min-width:0!important;
    opacity:1!important;
    visibility:visible!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.ceo-v35 .v24-rail-nav button:first-of-type:not(.v36-active){
    color:#9ea5a5!important;
    background:transparent!important;
    border-color:transparent!important;
    transform:none!important;
  }
  body.ceo-v35 .v24-rail-nav button.v36-active{
    color:#f8e6ba!important;
    background:linear-gradient(90deg,rgba(226,186,88,.16),rgba(226,186,88,.025))!important;
    border-color:rgba(226,186,88,.24)!important;
    transform:translateX(2px)!important;
  }
}

@media(max-width:1179px){
  body.ceo-v35 #view-dashboard>.dashboard-layout{
    width:100%!important;
    padding-top:82px!important;
    padding-right:16px!important;
    padding-left:16px!important;
  }
}

@media(max-width:820px){
  body.ceo-v35 #ceo-v30-frontdoor.v35-public-host,
  body.ceo-v35 #ceo-v30-home.v35-clean-home{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:clip!important;
  }
  body.ceo-v35 #view-dashboard>.dashboard-layout{
    padding-top:74px!important;
    padding-right:12px!important;
    padding-left:12px!important;
  }
  body.ceo-v35 .dashboard-tab-pane>.v24-pane-head{
    padding:14px!important;
    border-radius:11px!important;
  }
}
