/* Magic 1Xtra — Flutter ServiceSelectionScreen parity.
   Grounded in lib/service_os/service_selector_screen.dart.
   Scope strictly to the / service selector; never touch existing players. */

/* Dart Scaffold uses no legacy five-icon navigation or website topbar.
   The floating mini-player is controlled independently by existing player code. */
body.mxso-home[data-mx-route="home"] .topbar,
body.mxso-home[data-mx-route="home"] #bottomNav,
body.mxso-home[data-mx-route="home"] .desktop-nav {
  display: none !important;
}
body.mxso-home[data-mx-route="home"] #page {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
body.mxso-home[data-mx-route="home"] .app-shell {
  padding: 0 !important;
  min-height: 100dvh;
  background: #02060d;
}
body.mxso-home[data-mx-route="home"] .mxso-page {
  box-sizing: border-box;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 9px 16px 30px;
  background: #02060d;
  border: 0 !important;
  font-family: Satoshi, system-ui, -apple-system, sans-serif;
}
body.mxso-home[data-mx-route="home"] .mxso-layout {
  width: 100%;
  max-width: 100%;
}
body.mxso-home[data-mx-route="home"] .mxso-header {
  margin: 0 0 6px;
}
body.mxso-home[data-mx-route="home"] .mxso-page h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 2px;
  font-weight: 900;
}
body.mxso-home[data-mx-route="home"] .mxso-subtitle {
  margin-bottom: 13px;
  font-size: 11.5px;
}
body.mxso-home[data-mx-route="home"] .mxso-hero {
  height: 151px;
  min-height: 0;
  padding: 14px;
  border-radius: 15px;
}
body.mxso-home[data-mx-route="home"] .mxso-hero strong { font-size: 21px; }
body.mxso-home[data-mx-route="home"] .mxso-hero span { font-size: 12px; }
body.mxso-home[data-mx-route="home"] .mxso-page h2 {
  font-size: 17px;
  margin: 12px 0 9px;
  font-weight: 850;
}
body.mxso-home[data-mx-route="home"] .mxso-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
body.mxso-home[data-mx-route="home"] .mxso-tile {
  box-sizing: border-box;
  min-width: 0;
  min-height: 80px;
  height: min(102px, calc((min(100vw, 520px) - 62px) / 4 * 1.06));
  padding: 5px 3px;
  gap: 6px;
  border-radius: 13px;
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 800;
  overflow-wrap: anywhere;
}
body.mxso-home[data-mx-route="home"] .mxso-tile .mxso-tile-icon svg {
  width: 28px;
  height: 28px;
}
body.mxso-home[data-mx-route="home"] .mxso-tile:not(.mxso-tile-top) {
  background: #f5f7fa;
  color: #17212b;
  border: 1px solid #dde4ec;
}
body.mxso-home[data-mx-route="home"] .mxso-tile-top {
  background: #111e2b;
  color: #fff;
  border: 1px solid #2b3b4e;
}
body.mxso-home[data-mx-route="home"] .mxso-promo {
  min-height: 99px;
  padding: 14px;
}
@media (max-width: 374px) {
  body.mxso-home[data-mx-route="home"] .mxso-page { padding-inline: 12px; }
  body.mxso-home[data-mx-route="home"] .mxso-grid { gap: 7px; }
  body.mxso-home[data-mx-route="home"] .mxso-tile { min-height: 74px; font-size: 9.5px; }
  body.mxso-home[data-mx-route="home"] .mxso-hero { height: 132px; }
  body.mxso-home[data-mx-route="home"] .mxso-page h1 { font-size: 19px; }
}
