/*
 * MAUTO Home Mobile Cards v154
 * Restores the approved asymmetric smartphone mosaic and removes icon canvases.
 * Loaded after Home Executive v153.
 */


/* Category pictograms stay pure: no square canvas, border or inset tile. */
.mauto-home-runtime :is(.device-shell[data-device="desktop"], .device-shell[data-device="tablet"]) .ecosystem .card-category-icon,
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile .mauto-category-icon {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.mauto-home-runtime :is(.device-shell[data-device="desktop"], .device-shell[data-device="tablet"]) .ecosystem .card-category-icon::before,
.mauto-home-runtime :is(.device-shell[data-device="desktop"], .device-shell[data-device="tablet"]) .ecosystem .card-category-icon::after,
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile .mauto-category-icon::before,
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile .mauto-category-icon::after {
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

/* Smartphone mosaic: two large cards at left, five compact cards at right. */
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(5, 106px) 104px !important;
  grid-auto-flow: row !important;
  grid-auto-rows: 106px !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-grid > .mobile-dashboard-tile {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-auto {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  min-height: 220px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-service {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-tuning {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-parts {
  grid-column: 1 !important;
  grid-row: 3 / span 2 !important;
  min-height: 220px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(198, 226, 252, .08)),
    url("../img/pearl-card-backgrounds/pearl-blue-card-tall.png") center / 100% 100% no-repeat !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-disassembly {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-school {
  grid-column: 2 !important;
  grid-row: 4 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-dealers {
  grid-column: 1 !important;
  grid-row: 5 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-commercial {
  grid-column: 2 !important;
  grid-row: 5 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside {
  grid-column: 1 / -1 !important;
  grid-row: 6 !important;
  min-height: 104px !important;
}

/* Large left-column artwork is scaled to the narrower cards. */
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-auto > span,
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-parts > span {
  max-width: 92% !important;
  padding: 11px 8px 8px 11px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-auto > img {
  right: 3px !important;
  bottom: 0 !important;
  width: 172px !important;
  height: 134px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-parts > img {
  right: 1px !important;
  bottom: -2px !important;
  width: 170px !important;
  height: 148px !important;
}

/* Requested artwork corrections for the compact right column. */
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-service > img {
  right: 0 !important;
  bottom: -1px !important;
  width: 96px !important;
  height: 72px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-commercial > img {
  right: -1px !important;
  bottom: -3px !important;
  width: 94px !important;
  height: 70px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-disassembly > img {
  right: -1px !important;
  bottom: -11px !important;
  width: 108px !important;
  height: 76px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-dealers > img {
  bottom: -12px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] :is(
  .mobile-dashboard-tile-service,
  .mobile-dashboard-tile-tuning,
  .mobile-dashboard-tile-disassembly,
  .mobile-dashboard-tile-school,
  .mobile-dashboard-tile-commercial,
  .mobile-dashboard-tile-dealers
) > span {
  max-width: 66% !important;
  padding: 9px 2px 6px 9px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile strong {
  font-size: 12px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile .mauto-category-icon {
  width: 25px !important;
  height: 25px !important;
  margin: 0 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile .mauto-category-icon :is(svg, img) {
  width: 25px !important;
  height: 25px !important;
}

/* Roadside assistance: restrained red pearl, with the white waves preserved. */
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside {
  isolation: isolate !important;
  border-color: rgba(215, 58, 72, .25) !important;
  background: linear-gradient(112deg, #fffafa 0%, #fff1f3 46%, #ffdee4 100%) !important;
  box-shadow: 0 10px 25px rgba(145, 45, 59, .09), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside::before {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  display: block !important;
  border-radius: inherit !important;
  background:
    radial-gradient(145% 88% at 62% 128%, transparent 46%, rgba(255, 255, 255, .92) 47%, rgba(255, 255, 255, .34) 51%, transparent 54%),
    radial-gradient(120% 72% at 18% 112%, transparent 49%, rgba(255, 255, 255, .72) 50%, rgba(255, 255, 255, .22) 54%, transparent 57%),
    url("../img/pearl-card-backgrounds/pearl-blue-card-wide.png") center / 100% 100% no-repeat !important;
  mix-blend-mode: screen !important;
  opacity: .96 !important;
  content: "" !important;
  pointer-events: none !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside::after {
  display: none !important;
  content: none !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside > span {
  position: relative !important;
  z-index: 2 !important;
  max-width: 54% !important;
  padding: 9px 0 7px 11px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside > img {
  z-index: 2 !important;
  right: 8px !important;
  bottom: -2px !important;
  width: 156px !important;
  height: 100px !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside small {
  font-size: 9px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside strong,
.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside .mauto-category-icon {
  color: #d52f42 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .mobile-dashboard-tile-roadside .mauto-category-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Insurance: a slim premium action, not a secondary content panel. */
.mauto-home-runtime .insurance-gold,
.mauto-home-runtime #insurance-modal-title .insurance-gold {
  position: static !important;
  top: auto !important;
  color: #ad7b22 !important;
  font: inherit !important;
  line-height: inherit !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.mauto-home-runtime :is(#insurance-flow-title, #insurance-modal-title) {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: .22em !important;
}

.mauto-home-runtime .insurance-trigger-icon,
.mauto-home-runtime .insurance-panel-shield {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #159b59 !important;
}

.mauto-home-runtime .insurance-trigger-icon svg,
.mauto-home-runtime .insurance-panel-shield svg {
  width: 100% !important;
  height: 100% !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 1.75 !important;
}

.mauto-home-runtime .insurance-panel-shield {
  width: 38px !important;
  height: 38px !important;
}

.mauto-home-runtime .insurance-panel-header h2 {
  letter-spacing: -.025em !important;
}

.mauto-home-runtime .insurance-flow-shell {
  grid-template-columns: minmax(230px, .86fr) minmax(0, 3.14fr) !important;
  min-height: 62px !important;
  border-radius: 19px !important;
}

.mauto-home-runtime .insurance-trigger {
  grid-template-columns: 26px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 11px !important;
}

.mauto-home-runtime .insurance-trigger-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 26px !important;
  height: 26px !important;
}

.mauto-home-runtime .insurance-trigger-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-trigger-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.mauto-home-runtime .insurance-trigger-copy strong {
  line-height: 1 !important;
}

.mauto-home-runtime .insurance-trigger-copy small {
  margin-top: 3px !important;
}

.mauto-home-runtime .insurance-stages {
  align-items: center !important;
  gap: 6px !important;
  padding: 6px !important;
}

.mauto-home-runtime .insurance-stages::before,
.mauto-home-runtime .insurance-stages::after,
.mauto-home-runtime .insurance-stages li::before,
.mauto-home-runtime .insurance-stages li::after {
  display: none !important;
  content: none !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li {
  display: grid !important;
  min-height: 44px !important;
  place-items: center !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(109, 157, 173, .11) !important;
  border-left: 1px solid rgba(109, 157, 173, .11) !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(237, 248, 247, .58)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 7px 18px rgba(33, 82, 81, .045) !important;
  text-align: center !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li > .insurance-stage-index {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  font-size: 13px !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li:not(:last-child) > div,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > .insurance-stage-index {
  display: none !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > div {
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  place-items: center !important;
  width: 100% !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child strong {
  color: #159b59 !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages small {
  display: none !important;
}

.mauto-home-runtime .insurance-modal-stages article:last-child > span {
  display: none !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .insurance-flow-shell {
  grid-template-columns: 198px minmax(0, 1fr) !important;
  min-height: 58px !important;
  border-radius: 18px !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .insurance-trigger-copy strong {
  font-size: 12.5px !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .insurance-trigger-copy small {
  font-size: 7.5px !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .insurance-stages li {
  min-height: 40px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-flow-shell {
  grid-template-columns: 148px minmax(0, 1fr) !important;
  min-height: 52px !important;
  border-radius: 17px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-trigger {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 5px 7px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-trigger-icon {
  width: 22px !important;
  height: 22px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-trigger-copy strong {
  font-size: 10.25px !important;
  letter-spacing: -.018em !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-trigger-copy small {
  max-height: 17px !important;
  margin-top: 2px !important;
  font-size: 6.7px !important;
  line-height: 1.15 !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages {
  gap: 4px !important;
  padding: 5px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages li {
  min-height: 36px !important;
  padding: 0 2px !important;
  border-radius: 10px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages li > .insurance-stage-index {
  font-size: 10px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages li:last-child strong {
  font-size: 6.8px !important;
}

/* Build 160 final cascade guard: labels on the dock, 01-04 in the dialog. */
.mauto-home-runtime .device-shell[data-device] .insurance-stages li > .insurance-stage-index,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li > .insurance-stage-icon,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > .insurance-stage-index {
  display: none !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li > div,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:not(:last-child) > div,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > div {
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li > div > strong,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > div > strong {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color:var(--mauto-ds-color-primary,#3c78da) !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.mauto-home-runtime .device-shell[data-device] .insurance-stages li.is-complete > div > strong,
.mauto-home-runtime .device-shell[data-device] .insurance-stages li:last-child > div > strong {
  color: #159b59 !important;
}

.mauto-home-runtime .device-shell[data-device="desktop"] .insurance-stages li > div > strong {
  font-size: 11px !important;
}

.mauto-home-runtime .device-shell[data-device="tablet"] .insurance-stages li > div > strong {
  font-size: 9px !important;
}

.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages li > div > strong,
.mauto-home-runtime .device-shell[data-device="mobile"] .insurance-stages li:last-child > div > strong {
  font-size: 7px !important;
}

.mauto-home-runtime .insurance-modal-stages article:last-child > span {
  display: inline-grid !important;
}
