/* Friends' Bubble tiles take the shape of their photo or video, within the strip's ratio bounds. */
body[data-view="dashboard"] #friends-bubbles-list{--strip-media-h:184px;scroll-snap-type:x proximity;scroll-padding-inline:8px}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded){--tile-w:calc(var(--strip-media-h) * var(--friend-media-ratio,1) + 10px);flex:0 0 var(--tile-w);width:var(--tile-w);min-width:0;grid-template-columns:var(--tile-w)}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell{width:100%;height:auto;min-height:0}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble-open{width:100%;height:auto;min-height:0}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;height:auto;min-height:0;padding:4px;overflow:hidden}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble-preview{display:block;flex:none;width:100%;height:var(--strip-media-h);border-radius:13px;object-fit:cover;background:var(--dashboard-subtle,var(--bg))}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble>span:not(.friend-bubble-play){padding:0 6px 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded) .friend-bubble-play{top:calc(4px + var(--strip-media-h) / 2 - 17px)}
body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-identity{width:100%;min-width:0}
@media(prefers-reduced-motion:no-preference){
 body[data-view="dashboard"] #friends-bubbles-list>li.has-media.is-sizing{transition:flex-basis .32s cubic-bezier(.22,1,.36,1),width .32s cubic-bezier(.22,1,.36,1)}
}
@media(min-width:721px){
 body[data-view="dashboard"] #friends-bubbles-list{padding-top:20px;padding-bottom:16px}
 body[data-view="dashboard"] #friends-bubbles-list>li{align-self:flex-start}
 body[data-view="dashboard"] #friends-bubbles{margin-bottom:20px}
}
@media(max-width:720px){
 body[data-view="dashboard"] #friends-bubbles-list{--strip-media-h:164px;gap:10px;padding-bottom:6px}
 /* Photos carry the message on phones, so captions stay in the expanded Bubble. */
 body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble{gap:0;padding:4px}
 body[data-view="dashboard"] #friends-bubbles-list>li.has-media:not(.expanded)>.friend-bubble-shell .friend-bubble>span:not(.friend-bubble-play){display:none}
 body[data-view="dashboard"] #friends-bubbles-list>li:not(.expanded){min-height:0}
}
/* Touch screens scroll the strip directly, so the arrow row only appears for keyboard focus. */
@media(hover:none){
 body[data-view="dashboard"] #friends-bubbles .friends-bubbles-heading:not(:focus-within){position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-view="dashboard"] #friends-bubbles{margin-bottom:14px}
}

/* Pull past the top of the dashboard to stretch the content and refresh. */
html:has(body[data-view="dashboard"]){overscroll-behavior-y:contain}
/* A dot travels the frame of the header's own mark (44px box, 30px mark), scrubbed by the pull and looping while refreshing. */
.dashboard-pull-dot{position:absolute;top:0;left:0;width:5px;height:5px;opacity:0;pointer-events:none;color:inherit;offset-path:path("M22 7.75H28.75A7.5 7.5 0 0 1 36.25 15.25V28.75A7.5 7.5 0 0 1 28.75 36.25H15.25A7.5 7.5 0 0 1 7.75 28.75V15.25A7.5 7.5 0 0 1 15.25 7.75Z");offset-anchor:50% 50%;offset-rotate:0deg;offset-distance:0%;will-change:offset-distance,opacity}
/* Scale the visible dot separately: scaling the moving element would also scale its path offset. */
.dashboard-pull-dot::before{content:"";position:absolute;inset:0;border-radius:50%;background:currentColor;box-shadow:0 0 5px currentColor;transition:scale .18s ease}
.dashboard-header-brand.is-pull-ready .dashboard-pull-dot::before{scale:1.3}
/* The pull dot stands in for the tap-refresh orbit while it is showing, so only one dot is ever on the mark. */
body[data-view="dashboard"] .dashboard-header-brand.is-pulling::after{visibility:hidden}
@media(prefers-reduced-motion:reduce){.dashboard-pull-dot::before{transition:none;box-shadow:none}}
