/* v94: app-like feel on phones (Free + Pro). Presentation only; desktop untouched. */
.pax-toast,.pax-skel,.pax-bar{display:none}
@media (max-width:700px){
html.pax{-webkit-tap-highlight-color:transparent}
html.pax body :is(.v3-card button,.v3-copy,.v3-manager,.v3-icon-btn,.v3-action,.bt,.btn,.soft-btn,.primary-btn,.icon-btn,.tma-smart-action,.tma-card-open-link,.tma-message-open,.pms-close,#localInboxList button,.pmc-stepper button,.pax-back,.pax-toast){-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:scale .12s ease,background-color .12s ease}
html.pax body :is(.v3-card button,.v3-copy,.v3-manager,.v3-icon-btn,.v3-action,.bt,.btn,.soft-btn,.primary-btn,.icon-btn,.tma-smart-action,.tma-card-open-link,.pms-close,#localInboxList button,.pmc-stepper button,.pax-back):active:not(:disabled){scale:.96}
html.pax body .tma-message-open:active{scale:.985}
html.pax body :is(input[type=text],input[type=search],input[type=email],input:not([type]),textarea,select){font-size:16px}
html.pax body.pms-open #inboxSidebar::after{content:"";display:block;flex:none;height:env(safe-area-inset-bottom,0px)}
html.pax body #inboxModal .modal-card{padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
/* 2: message as a full page */
html.pax[lang] body dialog#tmaMessageDialog[open]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--pax-bg,#f6f7fb);overflow:hidden;animation:paxInL .28s cubic-bezier(.2,.8,.2,1)}
html.pax[dir=rtl] body dialog#tmaMessageDialog[open],html.pax[lang=ar] body dialog#tmaMessageDialog[open]{animation-name:paxInR}
html.pax[lang] body dialog#tmaMessageDialog.pax-drag{animation:none;transition:none}
html.pax[lang] body dialog#tmaMessageDialog.pax-out{transition:transform .22s ease-in}
html.pax[lang] body #tmaMessageDialog #messageBackdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;background:transparent!important;display:block!important}
html.pax[lang] body #tmaMessageDialog #previewPane{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-y:auto!important;overscroll-behavior:contain;padding:0 14px calc(20px + env(safe-area-inset-bottom,0px))!important;transform:none!important}
html.pax[lang] body #tmaMessageDialog #closeMessageBtn{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;border:0!important}
html.pax[lang] body #tmaMessageDialog .pax-bar{display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:3;margin:0 -14px 10px;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;background:var(--pax-card,#fff);border-bottom:1px solid var(--pax-line,#e4e8f1)}
html.pax body .pax-back{width:40px;height:40px;flex:none;border-radius:50%;border:0;background:var(--pax-soft,#eef1f8);color:inherit;display:grid;place-items:center;cursor:pointer}
html.pax body .pax-back svg{width:20px;height:20px}
html.pax[dir=rtl] body .pax-back svg,html.pax[lang=ar] body .pax-back svg{transform:scaleX(-1)}
html.pax body .pax-who{flex:1;min-width:0;line-height:1.25}
html.pax body .pax-who b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.pax body .pax-who small{display:block;font-size:12px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:start}
html.pax[dir=rtl] body .pax-who small,html.pax[lang=ar] body .pax-who small{text-align:end}
/* 4: skeleton while loading */
html.pax body .pax-skel{display:none;margin:0 0 10px}
html.pax body.pax-loading .pax-skel,html.pax body .pax-skel.pax-on{display:block}
html.pax[lang] body.pax-loading #referenceReaderEmpty{display:none!important}
html.pax body .pax-skel i{display:flex;gap:12px;align-items:center;border:1px solid var(--pax-line,#e4e8f1);border-radius:16px;padding:14px;margin-bottom:8px;background:var(--pax-card,#fff)}
html.pax body .pax-skel u,html.pax body .pax-skel s,html.pax body .pax-skel em{display:block;border-radius:10px;background:linear-gradient(90deg,var(--pax-sk,#e9edf4) 25%,var(--pax-sk2,#f5f7fb) 50%,var(--pax-sk,#e9edf4) 75%);background-size:300% 100%;animation:paxSh 1.2s linear infinite}
html.pax body .pax-skel u{width:40px;height:40px;border-radius:12px;flex:none}
html.pax body .pax-skel b{flex:1;display:grid;gap:8px}
html.pax body .pax-skel s{height:14px;width:55%}
html.pax body .pax-skel em{height:12px;width:85%}
html.pax body.pax-loading #v3MobileCard :is(.v3-address,.v3-domain){color:transparent!important;border-radius:10px;background:linear-gradient(90deg,var(--pax-sk,#e9edf4) 25%,var(--pax-sk2,#f5f7fb) 50%,var(--pax-sk,#e9edf4) 75%);background-size:300% 100%;animation:paxSh 1.2s linear infinite;min-width:60%}
/* 5: new mail banner + unread mark */
html.pax body .pax-toast{display:flex;position:fixed;top:calc(10px + env(safe-area-inset-top,0px));left:12px;right:12px;z-index:2147483000;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--pax-line,#e4e8f1);border-radius:18px;background:var(--pax-card,#fff);color:var(--pax-ink,#0f1b33);box-shadow:0 14px 34px -10px rgba(15,27,51,.35);font:inherit;text-align:start;transform:translateY(-160%);visibility:hidden;transition:transform .35s cubic-bezier(.2,1.2,.3,1),visibility 0s .35s}
html.pax body .pax-toast.pax-on{transform:none;visibility:visible;transition:transform .35s cubic-bezier(.2,1.2,.3,1)}
html.pax body .pax-toast .pax-av{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;color:#fff;font-weight:700;background:#12a150}
html.pax body .pax-toast .pax-tx{flex:1;min-width:0}
html.pax body .pax-toast .pax-tx b,html.pax body .pax-toast .pax-tx small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.pax body .pax-toast .pax-tx small{opacity:.72;font-size:13px}
html.pax body .pax-toast .pax-go{color:#2f55e8;font-weight:700;flex:none}
html.pax body #messageList .message-item.unread{background-color:color-mix(in srgb,#12a150 5%,var(--pax-card,#fff))}
}
html.pax[data-theme=dark]{--pax-bg:#0f1626;--pax-card:#162036;--pax-line:#26324a;--pax-soft:#202b43;--pax-ink:#e8edf7;--pax-sk:#202b43;--pax-sk2:#2a3652}
@keyframes paxInR{from{transform:translateX(-100%)}}
@keyframes paxInL{from{transform:translateX(100%)}}
@keyframes paxSh{to{background-position:-150% 0}}
@media (prefers-reduced-motion:reduce){html.pax body dialog#tmaMessageDialog[open],html.pax body .pax-skel *,html.pax body .pax-toast{animation:none!important;transition:none!important}}
