/* DiagnostiX V7: consistent online sensor paywall, guest UX, and functional mobile backgrounds. */
@media(min-width:768px){
  body[data-page="home"] #widgetModal .pid-item.dx-online-premium-locked{
    position:relative!important;
    isolation:isolate;
    overflow:hidden!important;
    min-height:162px;
    background:#233141!important;
  }
  body[data-page="home"] #widgetModal .pid-item .dx7-desktop-sensor-overlay{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    padding:10px!important;
    z-index:10!important;
    border:0!important;
    border-radius:inherit!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:7px!important;
    background:rgba(25,35,49,.71)!important;
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    color:#f5f8ff!important;
    font-size:12px!important;
    font-weight:700!important;
    cursor:pointer!important;
    box-shadow:none!important;
  }
  body[data-page="home"] #widgetModal .pid-item .dx7-desktop-lock-symbol{
    box-sizing:border-box;
    display:grid;place-items:center;
    width:45px;height:45px;
    border:1px solid rgba(255,255,255,.3);
    background:rgba(38,66,94,.94);
    color:#fff;border-radius:50%;
  }
  body[data-page="home"] #widgetModal .pid-item .dx7-desktop-sensor-overlay:focus-visible{
    outline:3px solid #a9d7ff!important;outline-offset:-4px!important;
  }
}
/* Mobile remains its existing independent responsive web interface. */
@media(max-width:767px){
  body[data-page="home"] #dxAndroidExactAppV303 .dx303-sensor-row .dx-mobile-premium-badge[hidden]{
    display:none!important;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-plan{
    padding:16px 17px;
    margin:16px 0 20px;
    border-radius:16px;
    background:#28384b;
    color:#f4f8ff;
    text-align:left;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-plan[hidden]{
    display:none!important;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-plan>strong{
    display:block;font-size:17px;line-height:1.3;margin-bottom:8px;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-plan p{
    margin:0 0 13px;line-height:1.5;font-size:13px;color:#d1ddea;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-actions{
    display:grid;grid-template-columns:1fr 1fr;gap:9px;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-actions button{
    border-radius:11px;padding:12px 8px;min-height:44px;
    font-size:13px;font-weight:750;
    border:1px solid rgba(179,209,244,.28);
    background:#2275b9;color:#fff;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-mobile-guest-actions button:last-child{
    background:#344a60;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-auth-reason{
    background:#263b51;border-radius:13px;padding:14px 16px;
    margin:10px 0 15px;text-align:left;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-auth-reason strong{
    display:block;font-size:15px;margin-bottom:5px;color:#fff;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-auth-reason p{
    margin:0 0 12px;font-size:13px;line-height:1.5;color:#d7e2ef;
  }
  body[data-page="home"] #dxAndroidExactAppV303 .dx7-auth-reason button{
    min-height:42px;border:1px solid #70ade1;border-radius:10px;
    padding:9px 13px;background:#284d72;color:#fff;font-weight:750;
  }
  /* The old mobile backgrounds changed a root ::before element but that
     element was overwritten by multiple late !important rules. Apply the
     chosen background directly to the *visible home screen* instead. */
  #dxAndroidExactAppV303.has-background[data-mobile-background="default"] #dx303HomeScreen{
    background:#081018!important;
  }
  #dxAndroidExactAppV303.has-background[data-mobile-background="midnight"] #dx303HomeScreen{
    background:radial-gradient(ellipse at 23% 7%,#29415b 0%,#101e30 46%,#060d17 100%)!important;
  }
  #dxAndroidExactAppV303.has-background[data-mobile-background="ocean"] #dx303HomeScreen{
    background:radial-gradient(ellipse at 50% 4%,#13526a 0%,#0b2837 43%,#05111c 100%)!important;
  }
  #dxAndroidExactAppV303.has-background[data-mobile-background="custom"] #dx303HomeScreen{
    background-image:linear-gradient(rgba(3,11,17,.18),rgba(3,11,17,.4)),var(--dx305-custom-bg)!important;
    background-position:center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-page="home"] .dx7-desktop-sensor-overlay{transition:none!important}
}/* Guest widget authentication prompt – browser platform only. */
body[data-page="home"] .dx7-guest-sensor-auth{
  position:fixed;inset:0;z-index:999998;
  background:rgba(5,12,22,.74);
  display:grid;place-items:center;
  padding:20px;
  backdrop-filter:blur(3px);
}
body[data-page="home"] .dx7-guest-sensor-panel{
  position:relative;
  width:min(430px,100%);
  border-radius:19px;
  background:#1c2938;
  padding:28px 24px;
  color:#f2f7fc;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}
body[data-page="home"] .dx7-guest-sensor-panel h2{
  font-size:23px;line-height:1.2;margin:0 42px 16px 0;
}
body[data-page="home"] .dx7-guest-sensor-panel p{
  font-size:15px;line-height:1.55;color:#c7d3e3;margin:0 0 18px;
}
body[data-page="home"] .dx7-guest-sensor-panel>div{
  display:flex;flex-wrap:wrap;gap:10px;
}
body[data-page="home"] .dx7-guest-sensor-panel a{
  flex:1 1 135px;display:grid;place-items:center;
  padding:12px 10px;min-height:46px;
  border-radius:10px;
  color:#fff!important;font-weight:700;
  background:#277dc3;
  text-decoration:none!important;
  text-align:center;
}
body[data-page="home"] .dx7-guest-sensor-panel a:last-child{background:#37556d}
body[data-page="home"] .dx7-guest-close{
  position:absolute;top:16px;right:16px;
  width:36px;height:36px;border-radius:50%;
  border:0;color:#fff;background:#35495c;
  font-size:23px;
}
body[data-page="home"] .dx7-guest-sensor-panel :is(a,button):focus-visible{
  outline:3px solid #a4d6ff;outline-offset:2px;
}@media(min-width:768px){
  body[data-page="home"] #widgetModal .pid-item .dx7-desktop-lock-symbol{
    position:absolute!important;
    left:50%!important;top:50%!important;
    transform:translate(-50%,-50%)!important;
    margin:0!important;
  }
  body[data-page="home"] #widgetModal .pid-item .dx7-desktop-sensor-overlay>span:last-child{
    position:absolute!important;
    left:10px!important;right:10px!important;
    top:calc(50% + 31px)!important;
    margin:0!important;
    line-height:1.2!important;
    text-align:center!important;
    font-size:11px!important;
  }
}