/* v0.3.96: compact profile and notification layout at the mobile navigation breakpoint. */
.ap396-mobile-points,.ap396-notification-short{display:none}
@media(max-width:1050px){
 main.container.ap396-compact-page{width:100%;max-width:none;padding-inline:5px}
 .ap396-profile>.by{flex-direction:column;align-items:center;text-align:center;gap:6px}
 .ap396-profile>.by>.avatar{width:64px!important;height:64px!important}
 .ap396-profile>.by>div{width:100%;min-width:0}
 .ap396-profile>.by h1{font-size:clamp(20px,5vw,26px);line-height:1.2;margin:0;overflow-wrap:anywhere}
 .ap396-profile>.by p{font-size:14px;line-height:1.35;margin:2px 0;overflow-wrap:anywhere}
 .ap396-profile>.by p:empty{display:none}
 .ap396-profile .ap396-mobile-points{display:inline-block;max-width:100%;font-size:clamp(12px,3.5vw,15px);line-height:1.35;font-weight:600;white-space:nowrap;padding:5px 0;color:var(--a)}
 .ap396-profile>.statgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0}
 .ap396-profile>.statgrid>.ap396-desktop-points{display:none}
 .ap396-profile>.statgrid>.ap396-following{order:-1}
 .ap396-profile>.statgrid>div{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:8px 3px;white-space:nowrap;text-align:center;line-height:1.3}
 .ap396-profile>.statgrid>div strong{font-size:clamp(13px,3.6vw,16px);line-height:1.3}
 .ap396-profile>.statgrid>div small{font-size:clamp(11px,3.1vw,14px);line-height:1.3}
 .ap396-profile>.actions.ap396-own-actions,.ap396-profile>.actions:empty{display:none}
 .ap396-profile>.actions:not(.ap396-own-actions){justify-content:center;gap:6px}
 .ap396-profile .actions button,.ap396-profile .actions .button{font-size:13px;padding:7px 10px}
 /* Give each message almost all the remaining width, reserving room for controls
    on the first two lines only. Preserve native links and existing form actions. */
 main.container.ap396-compact-page .notification-list{padding:0;min-width:0;width:100%;margin-top:8px}
 .notification-list .notification-item{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:8px;padding:9px 8px;min-width:0}
 .notification-item>a:first-child{display:block;min-width:0;width:34px}
 .notification-item>a:first-child .avatar,.notification-item>.notification-symbol{width:34px!important;height:34px!important;max-width:34px;font-size:18px;line-height:1}
 .notification-item>.notification-symbol .ext-notification-icon{margin:0}
 .notification-item .notification-copy{display:flow-root;min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 .notification-item .notification-copy::before{content:"";float:right;width:34px;height:29px}
 .notification-item.notification-unread .notification-copy::before{width:48px}
 .notification-item .notification-copy small{font-size:12px;line-height:1.3;margin-top:4px}
 .notification-item>.notification-dot{position:absolute;right:44px;top:19px;width:7px;height:7px}
 .notification-item>form.inline{position:absolute;right:7px;top:8px;margin:0}
 .notification-item>form.inline>button{width:30px!important;height:30px!important;min-height:30px;font-size:16px!important;line-height:1!important}
 .notification-item .notification-earned,.notification-item .notification-zero{font-size:13px;line-height:1.35;margin-top:2px}
 .notification-item .ap396-notification-full{display:none}
 .notification-item .ap396-notification-short{display:inline}
}
