/* Shared portal styling, served through the existing /studio static route. */
/* Inherit the parent's interpolated colors without applying a second fade. */
#friends-bubbles-list .friend-bubble-shell::after{border-color:inherit;background:inherit;transition:none}
@media(prefers-reduced-motion:no-preference){#friends-bubbles-list .friend-bubble-shell{transition:border-color .18s ease,background-color .18s ease}}
.friend-comment-editor{margin:8px 38px 8px 8px;border-radius:5px;overflow:hidden}
:is(#friends-bubbles-list,.public-bubble-card) .friend-comment-editor textarea{width:100%;min-height:24px;max-height:56px;margin:0;padding:2px 6px 2px 5px;border-radius:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted) 42%,transparent) transparent}
@supports selector(::-webkit-scrollbar){
 :is(#friends-bubbles-list,.public-bubble-card) .friend-comment-editor textarea{scrollbar-width:auto;scrollbar-color:auto}
 .friend-comment-editor textarea::-webkit-scrollbar{width:4px;height:4px}
 .friend-comment-editor textarea::-webkit-scrollbar-track,.friend-comment-editor textarea::-webkit-scrollbar-corner{background:transparent}
 .friend-comment-editor textarea::-webkit-scrollbar-thumb{border-radius:999px;background:color-mix(in srgb,var(--muted) 42%,transparent)}
 .friend-comment-editor textarea::-webkit-scrollbar-thumb:hover{background:var(--muted)}
 .friend-comment-editor textarea::-webkit-scrollbar-button{display:none;width:0;height:0}
}
.public-bubble-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.public-bubble-surface{position:relative;padding:22px 22px 30px;border:1px solid var(--line);border-radius:22px;background:var(--card);box-shadow:0 4px 16px #00000004}
.public-bubble-surface>.friend-bubble-foot{position:absolute;left:0;right:0;bottom:-18px;z-index:4;width:100%;min-height:36px;margin:0;padding:0 14px;border:0;pointer-events:none}
.public-bubble-surface>.friend-bubble-foot button{min-width:32px;min-height:36px;padding:5px 3px;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:auto}
.public-bubble-card>.friend-bubble-thread{margin:30px 12px 0}
.friend-bubble-thread>.friend-bubble-inline-comments{display:grid;gap:8px;max-height:none;overflow:visible;margin:0;padding:0}
.friend-bubble-thread .friend-bubble-inline-latest{margin:0;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card);font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 4px 16px #00000004}
.friend-bubble-thread .friend-bubble-inline-latest.is-own-comment{padding-right:36px}
.friend-bubble-thread .friend-bubble-inline-latest strong{display:block;margin-bottom:3px;font-size:11px;color:var(--muted)}
.public-bubble-card.expanded{z-index:12}
.public-bubble-surface>.friend-bubble-inline{position:absolute;left:14px;right:54px;bottom:-19px;z-index:5;margin:0;padding:0;min-height:38px;transform-origin:right center}
.public-bubble-surface>.friend-bubble-inline .friend-bubble-inline-form{position:relative;gap:0;margin:0}
.public-bubble-surface>.friend-bubble-inline .friend-comment-composer{border-radius:20px;background:var(--card);box-shadow:0 5px 18px #00000012}
.public-bubble-surface>.friend-bubble-inline .friend-comment-composer textarea{min-height:38px;max-height:72px;padding:9px 44px 9px 13px;border-radius:20px;font-size:12px;line-height:20px}
.public-bubble-surface>.friend-bubble-inline .friend-comment-send{right:5px;bottom:5px;width:28px;height:28px;min-height:28px;padding:5px}
.public-bubble-surface>.friend-bubble-inline .friend-comment-send svg{width:17px;height:17px}
.public-bubble-surface>.friend-bubble-inline .friend-comment-status:not(:empty):not(.visually-hidden){position:absolute;left:0;right:0;bottom:calc(100% + 10px);padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 5px 18px #00000012}
.public-bubble-surface>.friend-bubble-inline.is-loading{height:38px;min-height:38px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(var(--dashboard-subtle) 0 0) 13px center/calc(100% - 62px) 12px no-repeat,var(--card);box-shadow:0 5px 18px #00000012}
.friend-comment-load-error{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:6px 12px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--muted);font-size:11px}
.friend-comment-load-error button{min-height:26px;padding:3px 7px;border:0;background:transparent;color:var(--ink);font-size:11px;text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:no-preference){.public-bubble-card>.friend-bubble-thread:not([hidden]){animation:bubble-thread-reveal .24s cubic-bezier(.22,1,.36,1)}@keyframes bubble-thread-reveal{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}}
@media(prefers-reduced-motion:no-preference){.public-bubble-card.expanded>.public-bubble-surface>.friend-bubble-inline{animation:friend-comment-dock-in .28s cubic-bezier(.2,.8,.2,1)}@keyframes friend-comment-dock-in{from{opacity:0;clip-path:inset(0 0 0 100% round 20px);transform:translateX(12px)}to{opacity:1;clip-path:inset(0 0 0 0 round 20px);transform:translateX(0)}}}
