/* v1.0.52 Single Main Stability Fix */

/* Gebäude-Route: Topbereich bleibt kompakt, unten echte horizontale Kartenreihe ohne sichtbaren Scrollbalken. */
body .nv-shell-v0808 .nv-workspace-v0801:has(.buildings-page-v0823),
body .nv-shell-v0806 .nv-workspace-v0801:has(.buildings-page-v0823),
body .nv-workspace-v0801:has(.buildings-page-v0823){
  overflow:hidden!important;
  padding:8px!important;
}
body .nv-shell-v0808 .buildings-page-v0823,
body .nv-shell-v0806 .buildings-page-v0823,
body .buildings-page-v0823{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) 162px!important;
  gap:8px!important;
  padding-bottom:0!important;
}
body .nv-shell-v0808 .buildings-list-panel-v1052,
body .nv-shell-v0806 .buildings-list-panel-v1052,
body .buildings-list-panel-v1052{
  height:162px!important;
  min-height:162px!important;
  max-height:162px!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:7px!important;
  padding:8px 12px 10px!important;
}
body .buildings-list-head-v1052{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
}
body .building-strip-controls-v1052{display:flex!important;gap:6px!important;align-items:center!important;}
body .building-strip-controls-v1052 .btn{min-width:34px!important;padding:7px 10px!important;}
body .building-card-strip-v1052{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  display:flex!important;
  gap:9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  overscroll-behavior:contain!important;
  scroll-snap-type:x proximity!important;
  padding:0 2px 2px!important;
}
body .building-card-strip-v1052::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
body .building-card-strip-v1052 .building-thumb-card-v0712,
body .building-card-strip-v1052 .salvage-select-card-v113{
  flex:0 0 clamp(245px,17vw,315px)!important;
  width:clamp(245px,17vw,315px)!important;
  min-width:245px!important;
  max-width:315px!important;
  height:96px!important;
  min-height:96px!important;
  max-height:96px!important;
  display:grid!important;
  grid-template-columns:86px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:10px!important;
  padding:8px!important;
  overflow:hidden!important;
  scroll-snap-align:start!important;
}
body .building-card-strip-v1052 .building-thumb-card-v0712 img,
body .building-card-strip-v1052 .salvage-select-card-v113 img{
  width:86px!important;
  height:64px!important;
  object-fit:cover!important;
  border-radius:12px!important;
}
body .building-card-strip-v1052 .building-thumb-card-v0712 div,
body .building-card-strip-v1052 .salvage-select-card-v113 div{min-width:0!important;overflow:hidden!important;}
body .building-card-strip-v1052 .building-thumb-card-v0712 b,
body .building-card-strip-v1052 .building-thumb-card-v0712 small,
body .building-card-strip-v1052 .building-thumb-card-v0712 em,
body .building-card-strip-v1052 .salvage-select-card-v113 b,
body .building-card-strip-v1052 .salvage-select-card-v113 small,
body .building-card-strip-v1052 .salvage-select-card-v113 em{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .building-card-pager-v1046,
body .building-card-grid-v1046,
body .building-card-grid-v0823:not(.building-card-strip-v1052){
  scrollbar-width:none!important;
}
body .building-card-pager-v1046::-webkit-scrollbar,
body .building-card-grid-v1046::-webkit-scrollbar,
body .building-card-grid-v0823::-webkit-scrollbar{display:none!important;}

/* Forschung: Unterseiten ohne Free-Research-Buttonblock. */
body .research-page-v1051 .research-work-v0808 .research-discovery-row-v0808,
body .research-page-v1052 .research-work-v0808 .research-discovery-row-v0808{display:none!important;}
body .research-scenario-card-v1052 .research-scenario-art-v1033,
body .research-scenario-card-v1051 .research-scenario-art-v1033{display:block!important;}

/* Galaxie-Systemübersicht klar sichtbar im linken Untermenü. */
body .nv-subtab-v0801[href*="route=systems"],
body [data-route="systems"]{display:flex;}

/* Städte/Expeditionen: versteckte Bauplätze nur als Hinweis, nicht als Fake-Stadtkarten. */
body .expedition-locked-v1052 footer{display:grid!important;gap:8px!important;}
body .management-city-shell-v1052 .expedition-locked-v1052{min-height:145px;}

/* Etwas mehr nutzbare Höhe für Systemübersicht ohne rechte Dauer-Scrollfalle. */
body .systems-page-v0808,
body .systems-page-v0736{padding-bottom:28px!important;}
