:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--accent:#6554ce}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{min-height:44px}input,textarea{font-size:16px}body{overscroll-behavior:none}.feed-media{object-fit:contain}video{background:#151422}.pwa-install{position:fixed;right:16px;bottom:16px;z-index:3}.messages{overflow-anchor:none}.gallery-stage{min-height:0}.gallery-stage img,.gallery-stage video{max-height:65dvh}.call-grid{min-height:0}.call-tile{min-height:140px}
@media(max-width:720px){
 body{background:#f7f8ff}.layout{display:block;height:var(--viewport-height,100dvh)}.content{height:100%;padding:calc(16px + env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom));overflow:auto}.column{width:100%}h1{font-size:25px;margin-bottom:18px}h2{font-size:20px}.card{padding:16px;border-radius:18px}.row{gap:8px;flex-wrap:wrap}.row .grow{min-width:0}.sidebar{position:fixed;bottom:0;left:0;right:0;z-index:5;flex-direction:row;justify-content:space-around;padding:8px 4px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);gap:0}.sidebar .brand,.sidebar .bottom{display:none}.sidebar button{font-size:11px;padding:5px 2px;border-radius:10px;text-align:center;flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;align-items:center}.sidebar button::before{font-size:24px;line-height:26px}.sidebar [data-screen=feed]::before{content:'⌂'}.sidebar [data-screen=messages]::before{content:'☏'}.sidebar [data-screen=communities]::before{content:'♧'}.sidebar [data-screen=search]::before{content:'⌕'}.sidebar [data-screen=profile]::before{content:'♙'}.sidebar [data-screen=activity],.sidebar [data-screen=bookmarks],.sidebar [data-screen=authority],.sidebar [data-screen=settings]{display:none}.profile-more{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.chat{height:calc(var(--viewport-height,100dvh) - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-width:100%}.chat-header{gap:4px;padding-bottom:8px}.chat-header h2{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:175px}.chat-header button{font-size:12px;padding:6px 9px}.messages{padding:12px 4px;gap:8px}.bubble{max-width:88%;padding:10px 12px}.bubble .feed-media{width:100%;height:auto;max-height:320px}.chat-compose{padding:7px;border-radius:15px}.chat-compose button{font-size:12px;padding:7px}.chat-compose textarea{min-height:42px}.chat-compose .row{gap:4px}.chat-compose small{max-width:160px;overflow:hidden;text-overflow:ellipsis}.meta{font-size:11px}.login{width:auto!important;margin:40px 14px!important;padding:26px 20px}.login input{width:100%}dialog{max-width:calc(100vw - 20px);width:calc(100vw - 20px);max-height:calc(var(--viewport-height,100dvh) - 30px);padding:18px}.gallery{width:100vw;max-width:100vw;height:var(--viewport-height,100dvh);max-height:100dvh;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom))}.call{width:100vw;max-width:100vw;height:var(--viewport-height,100dvh);max-height:100dvh;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom))}.call-grid{height:calc(100% - 180px);grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(120px,1fr);gap:6px}.call .actions{gap:5px}.call .actions button{font-size:12px;padding:8px}.call-tile span{font-size:12px;left:8px}.pwa-install{position:static;margin:14px}.list-row{border-radius:14px;margin-bottom:4px}#toast{bottom:100px;width:max-content;max-width:92vw;z-index:100}
}

.post-menu{display:none}.profile-more{display:flex;flex-wrap:wrap;gap:8px}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px}.message-menu{min-height:32px;min-width:36px;padding:2px;font-size:20px}.gallery-stage:has(img){touch-action:none}
@media(max-width:720px){.sidebar [data-screen=messages],.sidebar [data-screen=communities]{display:none}.sidebar [data-screen=activity],.sidebar [data-screen=create]{display:flex}.sidebar button::before{content:''!important;display:block;width:26px;height:26px;background:currentColor;mask-size:contain;mask-repeat:no-repeat;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat}.sidebar [data-screen=feed]::before{mask-image:url('nav-feed.svg');-webkit-mask-image:url('nav-feed.svg')}.sidebar [data-screen=search]::before{mask-image:url('nav-search.svg');-webkit-mask-image:url('nav-search.svg')}.sidebar [data-screen=create]::before{mask-image:url('nav-create.svg');-webkit-mask-image:url('nav-create.svg')}.sidebar [data-screen=activity]::before{mask-image:url('nav-activity.svg');-webkit-mask-image:url('nav-activity.svg')}.sidebar [data-screen=profile]::before{mask-image:url('nav-profile.svg');-webkit-mask-image:url('nav-profile.svg')}.sidebar button.active{background:transparent}.post-secondary{display:none}.post-menu{display:block;margin-left:auto;font-size:25px;line-height:1}.card>.row{flex-wrap:nowrap}.card>.row small{font-size:11px;white-space:nowrap}.card>.row .avatar{flex-shrink:0}.card>.row button:not(.post-menu){min-width:0;overflow:hidden;text-overflow:ellipsis}.column>div.actions{gap:0;margin-bottom:12px}.column>div.actions button{background:transparent;padding:8px 12px}.story-strip button{background:#ecebff;border-radius:50%;height:68px;min-width:68px;font-size:12px}.card .actions button{padding:7px 10px;font-size:13px}.card{margin-bottom:10px}.column>div.row h1{font-size:22px;margin:0}.column>div.row{margin-bottom:18px}}
#pwa-update{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:100;background:#fff;color:#29253d;padding:12px;box-shadow:0 3px 20px #0002;display:flex;gap:12px;align-items:center;font-size:14px}#pwa-update button{flex-shrink:0}

/* Work direction: secondary branded link at the foot of the desktop menu. */
.sidebar .work-link{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:13px 14px;border:1px solid #ded8fa;border-radius:14px;background:#f2efff;color:var(--accent);text-decoration:none;font-size:14px;font-weight:650;line-height:1.35;transition:background .15s,border-color .15s}
.sidebar .work-link::after{content:'↗';font-size:20px;flex-shrink:0}
.sidebar .work-link:hover{background:#e9e3ff;border-color:var(--accent)}
.sidebar .work-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar .work-link + .bottom{margin-top:10px}
@media(max-width:720px){.sidebar .work-link{display:none}}

/* Keep the two product links together above the sidebar footer. */
.sidebar .work-link + .work-link{margin-top:8px}
