/* MyTuner v631 · stable map catalogue; project grid integrity; no superfluous horizontal scroll */
@media(min-width:701px){
/* Keep the same category geometry whether a floating map is open or not. */
html body.mrs-desktop[data-mrs-view="maps"] #workbench.native-maps #mapPanel > #mapList,
html body.mrs-desktop[data-mrs-view="maps"].mrs-mdi-active #workbench.native-maps #mapPanel > #mapList{
 display:block!important;grid-template-columns:none!important;
 flex:1 1 auto!important;min-height:0!important;width:100%!important;
 height:auto!important;max-height:calc(100dvh - 285px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 position:relative!important;inset:auto!important;
 margin:0!important;scrollbar-gutter:stable!important;
}
html body.mrs-desktop[data-mrs-view="maps"] #workbench.native-maps #mapPanel > #mapList .mrs-v574-category{
 display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
}
html body.mrs-desktop[data-mrs-view="maps"] #workbench.native-maps #mapPanel > #mapList .mrs-v574-category-grid:not([hidden]),
html body.mrs-desktop[data-mrs-view="maps"].mrs-mdi-active #workbench.native-maps #mapPanel > #mapList .mrs-v574-category-grid:not([hidden]){
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:8px!important;padding:9px 0!important;align-items:start!important;
}
html body.mrs-desktop[data-mrs-view="maps"] #workbench.native-maps #mapPanel > #mapList .mrs-v574-category-grid[hidden]{display:none!important}
html body.mrs-desktop[data-mrs-view="maps"] #mapPanel > #mrsV587MapActions,
html body.mrs-desktop[data-mrs-view="maps"].mrs-mdi-active #mapPanel > #mrsV587MapActions{
 position:relative!important;flex:0 0 auto!important;top:auto!important;
}
/* Grid consists strictly of real project rows. No implicit pseudo-card or
   invisible table sizing item may consume a grid cell. */
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody::before,
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody::after{
 content:none!important;display:none!important
}
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody > :not(tr[data-p7-project]){display:none!important}
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:10px!important;min-width:0!important;max-width:100%!important;
}
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody > tr[data-p7-project]{
 display:grid!important;min-width:0!important;max-width:100%!important;
 grid-column:auto!important;grid-row:auto!important;
}
/* Proper responsive fixed columns rather than a 930px-wide table inside a smaller panel. */
html body.desktop-projects-active #desktopProjectsShellV7 .desktop-projects-main,
html body.desktop-projects-active #desktopProjectsShellV7 .desktop-projects-table-wrap{
 min-width:0!important;max-width:100%!important;overflow-x:hidden!important;
}
html body.desktop-projects-active #desktopProjectsShellV7 .desktop-projects-table{
 width:100%!important;min-width:0!important;max-width:100%!important;
 table-layout:fixed!important;
}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(1){width:3%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(2){width:6%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(3){width:17%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(4){width:15%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(5){width:16%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(6){width:17%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(7){width:12%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(8){width:10%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table col:nth-child(9){width:4%!important}
html body.desktop-projects-active:not(.desktop-projects-grid) #desktopProjectsShellV7 .desktop-projects-table tbody td{
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;min-width:0!important;
}
html body.desktop-projects-active #desktopProjectsShellV7 .desktop-projects-detail{
 min-width:0!important;overflow-x:hidden!important;
}
html body.desktop-projects-active #desktopProjectsShellV7 .desktop-projects-versions,
html body.desktop-projects-active #desktopProjectsShellV7 .p7-versions-list{
 max-width:100%!important;overflow-x:hidden!important;
}
/* Settings: vertical scrolling retained; no horizontal draggable scrollbar. */
html body.mt13-custom-page #desktopReferencePageHostV13 .mt13-page[data-mt13-page="settings"].active{
 overflow-x:hidden!important;max-width:100%!important;box-sizing:border-box!important;
}
html body.mt13-custom-page #desktopReferencePageHostV13 .mt13-page[data-mt13-page="settings"] .mt13-settings{
 width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;
 box-sizing:border-box!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html body.mt13-custom-page #desktopReferencePageHostV13 .mt13-page[data-mt13-page="settings"] .mt13-setting{
 min-width:0!important;max-width:100%!important;overflow-x:hidden!important;
 box-sizing:border-box!important;
}
}
@media(min-width:701px) and (max-width:1160px){
html body.mrs-desktop[data-mrs-view="maps"] #workbench.native-maps #mapPanel > #mapList .mrs-v574-category-grid:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.desktop-projects-grid #desktopProjectsShellV7 .desktop-projects-table tbody{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.mt13-custom-page #desktopReferencePageHostV13 .mt13-page[data-mt13-page="settings"] .mt13-settings{grid-template-columns:minmax(0,1fr)!important}
}
