#mabs-overlay{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:rgba(0,0,0,.34);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .28s ease,visibility .28s ease;
    -webkit-backdrop-filter:blur(1px);
    backdrop-filter:blur(1px);
}
#mabs-overlay.mabs-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
#mabs-sheet{
    width:100%;
    max-width:600px;
    background:#fff;
    color:#111;
    border-radius:28px 28px 0 0;
    box-shadow:0 -8px 40px rgba(0,0,0,.18);
    padding:0 18px max(18px,env(safe-area-inset-bottom));
    box-sizing:border-box;
    transform:translateY(105%);
    transition:transform .38s cubic-bezier(.22,.8,.25,1);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
#mabs-overlay.mabs-visible #mabs-sheet{transform:translateY(0);}
.mabs-grabber{
    width:38px;height:5px;border-radius:5px;background:#d6d6d6;
    margin:10px auto 8px;
}
.mabs-title{
    text-align:center;font-size:23px;line-height:1.2;font-weight:650;
    letter-spacing:-.35px;padding:14px 10px 20px;
}
.mabs-divider{height:1px;background:#e6e6e6;width:100%;}
.mabs-option{
    min-height:82px;padding:14px 8px;display:flex;align-items:center;
    justify-content:space-between;gap:16px;box-sizing:border-box;
}
.mabs-info{min-width:0;display:flex;align-items:center;gap:16px;}
.mabs-icon{
    width:58px;height:58px;flex:0 0 58px;border-radius:14px;overflow:hidden;
    display:flex;align-items:center;justify-content:center;box-sizing:border-box;
}
.mabs-app-icon,.mabs-browser-icon{background:#fff;border:1px solid #e2e2e2;}
.mabs-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.mabs-placeholder{font-size:25px;font-weight:700;color:#555;}
.mabs-name{
    font-size:20px;line-height:1.2;font-weight:650;letter-spacing:-.25px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mabs-button{
    appearance:none;-webkit-appearance:none;border-radius:28px;min-width:128px;height:54px;
    padding:0 22px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
    font:600 18px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    cursor:pointer;transition:transform .12s ease,opacity .12s ease,background .12s ease;
}
.mabs-button:active{transform:scale(.96);}
.mabs-open{background:#168ee8;color:#fff;border:1px solid #168ee8;}
.mabs-continue{background:#fff;color:#6f6f6f;border:1px solid #d5d5d5;}
.mabs-lock{overflow:hidden!important;}
@media (min-width:769px){#mabs-overlay{display:none!important;}}
@media (max-width:480px){
    #mabs-sheet{border-radius:25px 25px 0 0;padding-left:14px;padding-right:14px;}
    .mabs-title{font-size:22px;padding-top:13px;padding-bottom:18px;}
    .mabs-option{min-height:78px;padding:12px 5px;}
    .mabs-info{gap:13px;}
    .mabs-icon{width:54px;height:54px;flex-basis:54px;border-radius:13px;}
    .mabs-name{font-size:18px;}
    .mabs-button{min-width:104px;height:50px;padding:0 18px;font-size:17px;}
}
@media (max-width:350px){
    .mabs-name{font-size:16px;}
    .mabs-button{min-width:92px;padding:0 14px;font-size:16px;}
    .mabs-icon{width:50px;height:50px;flex-basis:50px;}
}

/* Platform safety: the app row is shown only when a matching store URL exists. */
.mabs-app-option[hidden]{display:none!important;}
