/* NJW-246 Run 018: mobile-only modal/readability certification for /property/home.
   Loaded only at <=820px from property/home/index.html. Desktop is untouched. */

@media (max-width: 820px){
  body.hm-dashboard-page .plm-note-overlay{
    align-items:flex-end;
    justify-content:center;
    padding:max(12px, env(safe-area-inset-top)) 0 0;
    overscroll-behavior:contain;
  }

  body.hm-dashboard-page .plm-note-box{
    width:100%;
    max-width:none;
    max-height:calc(100dvh - max(12px, env(safe-area-inset-top)));
    margin:0;
    padding:24px 18px max(22px, calc(14px + env(safe-area-inset-bottom)));
    border-radius:20px 20px 0 0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    overflow-wrap:anywhere;
  }

  body.hm-dashboard-page .plm-note-overlay.comparison-open .plm-note-box{
    width:100%;
    max-width:none;
  }

  body.hm-dashboard-page .plm-note-x{
    top:10px;
    right:10px;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    font-size:18px;
    touch-action:manipulation;
  }

  body.hm-dashboard-page .plm-note-box h3{
    margin:0 50px 14px 0;
    font-size:20px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }

  body.hm-dashboard-page .plm-note-box p,
  body.hm-dashboard-page .plm-note-box li,
  body.hm-dashboard-page .plm-note-box dd,
  body.hm-dashboard-page .plm-note-box .gl span{
    font-size:15px;
    line-height:1.55;
  }

  body.hm-dashboard-page .plm-note-box label,
  body.hm-dashboard-page .plm-note-box .auth-magic-note,
  body.hm-dashboard-page .plm-note-box .auth-or,
  body.hm-dashboard-page .plm-note-box .gl b{
    font-size:13px;
    line-height:1.4;
  }

  body.hm-dashboard-page .plm-note-box input,
  body.hm-dashboard-page .plm-note-box select,
  body.hm-dashboard-page .plm-note-box textarea{
    width:100%;
    max-width:100%;
    min-height:48px;
    font-size:16px!important;
    line-height:1.35;
  }

  body.hm-dashboard-page .plm-note-box button,
  body.hm-dashboard-page .plm-note-box a.auth-btn{
    min-height:44px;
    font-size:14px;
    line-height:1.3;
    touch-action:manipulation;
  }

  body.hm-dashboard-page .plm-note-box .auth-magic-row{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }

  body.hm-dashboard-page .plm-note-box .auth-magic-row button,
  body.hm-dashboard-page .plm-note-box .auth-btn{
    width:100%;
    min-height:48px;
    justify-content:center;
    font-size:15px;
  }

  body.hm-dashboard-page .plm-note-box .cw,
  body.hm-dashboard-page .plm-note-box .comps-wrap{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.hm-dashboard-page .plm-note-box :focus-visible{
    outline:3px solid currentColor;
    outline-offset:3px;
  }
}

@media (max-width: 420px){
  body.hm-dashboard-page .plm-note-box{
    padding-left:16px;
    padding-right:16px;
  }

  body.hm-dashboard-page .plm-note-box h3{
    font-size:19px;
  }
}