/* v103: common outer grid on all public and account pages. Preserve v101 home cards. */
html body[data-omega-stable="99"] > .container:has(> #omega-main) {
  --omega-home-center: 680px;
}
@media (min-width:1251px) {
  html body[data-omega-stable="99"] > .container:has(> #omega-main) {
    width:min(1260px,calc(100% - 40px))!important;
    max-width:1260px!important;
    grid-template-columns:260px minmax(0,1fr) 280px!important;
    gap:20px!important;
  }
}
html body[data-omega-stable="99"] > .container > #omega-main:has(> .omega-live-records) {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:var(--omega-home-center)!important;
  min-width:0!important;
  gap:20px!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}
/* These are the actual wrappers emitted by live-records.php, not their inner cards. */
html body[data-omega-stable="99"] > .container > #omega-main:has(> .omega-live-records) > :is(.omega-live-records,.gens83,#omega-hall82,.news-item,.omega-news-empty) {
  display:block!important;
  align-self:stretch!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
html body[data-omega-stable="99"] #omega-main > .omega-live-records > .omega-live-card,
html body[data-omega-stable="99"] #omega-main > .gens83 > .gens83-shell,
html body[data-omega-stable="99"] #omega-main > #omega-hall82 > .hall79-grid {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
/* Keep the original scroll behavior when there are actual kills. */
html body[data-omega-stable="99"] #omega-main > .omega-live-records > .omega-live-card:has(.omega-live-empty) {
  height:auto!important;min-height:0!important;
}
html body[data-omega-stable="99"] #omega-main > .omega-live-records .omega-live-empty {
  min-height:70px!important;
  padding:14px 10px!important;
}
html body[data-omega-stable="99"] #omega-main > .gens83 > .gens83-shell .gens83-grid,
html body[data-omega-stable="99"] #omega-main > #omega-hall82 > .hall79-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
@media (max-width:980px) {
  html body[data-omega-stable="99"] > .container > #omega-main:has(> .omega-live-records) {max-width:100%!important;}
}
@media (max-width:360px) {
  html body[data-omega-stable="99"] #omega-main > #omega-hall82 > .hall79-grid {grid-template-columns:minmax(0,1fr)!important;}
}
/* Contain decorative overflow at tablet widths without hiding content inside modules. */
@media (max-width:1250px) {
  html body[data-omega-stable="99"] > .container:has(> #omega-main) {overflow-x:clip!important;}
}

/* Restrict only the true page grid. Never change nested Bootstrap containers. */
@media (min-width:981px) and (max-width:1250px) {
 html body[data-omega-stable="99"] > .container:has(> #omega-main) {
  width:min(1170px,calc(100% - 28px))!important;
  max-width:1170px!important;
  grid-template-columns:220px minmax(0,1fr) 242px!important;
  gap:14px!important;
 }
}
html body[data-omega-stable="99"] > .container:has(> #omega-main) > #omega-main:not(:has(> .omega-live-records)) {
 width:100%!important;max-width:680px!important;min-width:0!important;
 margin-inline:auto!important;box-sizing:border-box!important;align-items:stretch!important;
}
/* Known module roots only; preserve display, visibility and all interaction. */
html body[data-omega-stable="99"] > .container > #omega-main > :is(.page-title,.sr70,.sd70,.royal71-secondary,.omega-downloads,.omega-product-panel,.omega-account-module,.omega-agenda,.omega-agenda-source,.omega-agenda-empty,.news-item,.omega-news-empty,.rankings-wrapper,.downloads-wrapper,.table-responsive,.dataTables_wrapper) {
 width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
html body[data-omega-stable="99"] #omega-main :is(.sr70,.sd70,.royal71-secondary,.omega-product-panel,.omega-account-module,.omega-agenda-source) {min-width:0;max-width:100%;box-sizing:border-box;}
html body[data-omega-stable="99"] #omega-main :is(.table-responsive,.dataTables_wrapper,.dataTables_scrollBody) {max-width:100%!important;min-width:0!important;overflow-x:auto;}
html body[data-omega-stable="99"] #omega-main :is(.omega-product-card,.omega-product-grid,.omega-client-card,.sr70-player,.sr70-field,.sd70-category) {min-width:0;max-width:100%;overflow-wrap:anywhere;}
html body[data-omega-stable="99"] #omega-main :is(.omega-product-panel,.omega-account-module,.omega-agenda-source) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {max-width:100%;box-sizing:border-box;}
@media(max-width:980px){
 html body[data-omega-stable="99"] > .container:has(> #omega-main) > #omega-main:not(:has(> .omega-live-records)){max-width:100%!important;}
}
