/* One type scale for text nodes and browser-created paragraph wrappers. */
#app#app .post-design.reply-design .post28-body,
#app#app .post-design.reply-design .post28-body :is(p,div,span,li,a,strong,em,b,i,u,s,blockquote),
#app#app .compose56-preview-body,
#app#app .compose56-preview-body :is(p,div,span,li,a,strong,em,b,i,u,s,blockquote){font-size:16px!important;line-height:26px!important;overflow-wrap:anywhere}
#app#app .reply-rich-content :is(p,div,span,li,a,strong,em,b,i,u,s,blockquote){font-size:inherit!important;line-height:inherit!important}
/* Bound the preview to the visible phone viewport, including an open keyboard. */
#app#app#app .compose56-preview-mask{
 position:fixed;inset:auto;top:var(--post-visible-top,0px);left:var(--post-visible-left,0px);
 width:var(--post-visible-width,100%);height:var(--post-visible-height,100dvh);
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));
 overflow:hidden;background:rgba(0,0,0,.4);z-index:160;
}
#app#app#app .compose56-preview{
 display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;
 max-width:480px;max-height:100%;margin:0;padding:0 16px 16px;
 overflow:hidden;border-radius:12px;background:#fff;
}
#app#app#app .compose56-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;position:relative;top:auto}
#app#app#app .compose56-preview>header h2{margin:0;min-width:0;font-size:18px;line-height:26px}
#app#app#app .compose56-preview>article{min-height:0;min-width:0;max-width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#app#app#app .compose56-preview-body :is(table,iframe){max-width:100%}
#app#app#app .compose56-preview-body .compose56-ref{width:100%;min-width:0;white-space:normal}
/* Use measured visible bounds instead of a keyboard-inset threshold. */
#app#app .post-design.reply-design .post28-composer{
 position:fixed!important;top:var(--post-reply-top,auto)!important;bottom:var(--post-reply-bottom,0px)!important;
 left:var(--post-visible-left,0px)!important;width:var(--post-visible-width,100%)!important;
 max-width:none!important;max-height:var(--post-visible-height,100dvh);overflow-y:auto;
 transform:none!important;box-sizing:border-box!important;z-index:80!important;
}
#app#app .post-design.reply-design .detail-scroll{padding-bottom:calc(var(--post-reply-height,120px) + 24px + env(safe-area-inset-bottom))!important}
#app#app .post-design.reply-design .post28-tools{flex-wrap:wrap}
