/* These rules bridge saved chat choices to real direct/group bubbles and their preview. */
@layer halo-material {
:root{--hpa-radius:18px;--hpa-gap:14px;--hpa-pad:12px;--hpa-ink:#fff;--hpa-align:start}
html[data-halo-chat-shape=soft]{--hpa-radius:11px}html[data-halo-chat-shape=square]{--hpa-radius:4px}
html[data-halo-chat-density=compact]{--hpa-gap:7px;--hpa-pad:9px}html[data-halo-chat-density=spacious]{--hpa-gap:22px;--hpa-pad:16px}
html[data-halo-chat-align=center]{--hpa-align:center}html[data-halo-chat-align=justify]{--hpa-align:justify}
body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages){gap:var(--hpa-gap)!important;font-family:var(--halo-chat-font)!important}
body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.direct-chat-message,.halo-group-bubble){font-family:var(--halo-chat-font)!important;font-size:var(--halo-chat-size)!important;line-height:var(--halo-chat-line-height)!important;max-width:var(--halo-chat-width)!important;border-radius:var(--hpa-radius)!important;padding:var(--hpa-pad) 14px!important;border:1px solid var(--au-line)!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;text-shadow:none!important}
body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.direct-chat-message,.halo-group-bubble)>p{font-family:var(--halo-chat-font)!important;font-size:var(--halo-chat-size)!important;line-height:var(--halo-chat-line-height)!important;text-align:var(--hpa-align)!important;color:inherit!important}
body.social-authenticated :is(#direct-chat-input,#halo-group-input){font-family:var(--halo-chat-font)!important;font-size:var(--halo-chat-size)!important}
body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.incoming,.halo-group-bubble:not(.outgoing)){background:var(--au-incoming)!important;color:var(--au-ink)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-halo-chat-theme=glass] body.social-authenticated[data-halo-material=clear] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.incoming,.halo-group-bubble:not(.outgoing)){background:color-mix(in srgb,var(--au-incoming) 70%,transparent)!important;box-shadow:inset 0 1px 0 #ffffff25!important}
html[data-halo-chat-theme=soft] body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.incoming,.halo-group-bubble:not(.outgoing)){background:var(--au-soft)!important;box-shadow:0 3px 9px #0000000a!important}
html[data-halo-chat-theme=midnight] body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.incoming,.halo-group-bubble:not(.outgoing)){background:#142039!important;color:#f2f6ff!important;box-shadow:none!important}
body.social-authenticated:not([data-halo-coin-accent]):not([data-halo-coin-bubble=outline]) :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{background:var(--halo-chat-accent)!important;color:var(--hpa-ink)!important;border-color:var(--halo-chat-accent)!important}
body.social-authenticated :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing :is(time,small){color:inherit!important;opacity:.8!important}
body.social-authenticated:is([data-halo-material=solid],[data-halo-material=reduced],[data-halo-material=fallback]) :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) :is(.direct-chat-message,.halo-group-bubble){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Paid effects stay bound to the native, entitlement-controlled equipped attributes. */
body.social-authenticated[data-halo-coin-accent=aurora]{--hpa-owned:linear-gradient(120deg,#5273a830,#47bcad30)}
body.social-authenticated[data-halo-coin-accent=ember]{--hpa-owned:linear-gradient(120deg,#ab584330,#ca8d4830)}
body.social-authenticated[data-halo-coin-accent=mint]{--hpa-owned:linear-gradient(125deg,#6ed6b035,#7cd7e035)}
body.social-authenticated[data-halo-coin-accent=coral]{--hpa-owned:linear-gradient(125deg,#fb9ba735,#eda47835)}
body.social-authenticated[data-halo-coin-accent=cosmic]{--hpa-owned:linear-gradient(125deg,#a791eb35,#809ce035)}
body.social-authenticated[data-halo-coin-accent=gold]{--hpa-owned:linear-gradient(125deg,#e9be6835,#f0dcb235)}
body.social-authenticated[data-halo-coin-accent] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{background:var(--hpa-owned,var(--au-active))!important;color:var(--au-ink)!important;border-color:var(--au-line)!important}
body.social-authenticated[data-halo-coin-bubble=round] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{border-radius:24px!important}
body.social-authenticated[data-halo-coin-bubble=pill] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{border-radius:32px!important;padding-inline:20px!important}
body.social-authenticated[data-halo-coin-bubble=paper] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{border-radius:8px 18px 3px 18px!important;box-shadow:3px 4px 0 #71958b22!important}
body.social-authenticated[data-halo-coin-bubble=outline] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{background:transparent!important;color:var(--au-ink)!important;border:1px solid #87b9c88c!important;box-shadow:none!important}
body.social-authenticated[data-halo-coin-bubble=neon] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{border-color:#a69ad5b3!important;box-shadow:0 0 9px #a69ad529,inset 0 0 5px #a69ad511!important}
body.social-authenticated[data-halo-coin-bubble=glass] :is(#direct-chat-messages,#halo-group-messages,#hp-preview-messages) .outgoing{border-color:#adc4d54d!important;box-shadow:inset 0 1px #d7e7f129!important}
html[data-halo-reduce-motion=true] body.social-authenticated :is(#social-shell,#halo-wallet-dialog,.halo-ui-dialog) *,body[data-wallet-motion=reduced] #halo-wallet-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){body.social-authenticated :is(#social-shell,#halo-wallet-dialog) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
@layer halo-aurora {
body.au-profile-mode #halo-personalization-settings{display:block!important;min-width:0!important}
body.au-profile-mode #halo-personalization-settings .personalization-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;min-width:0!important}
body.au-profile-mode #halo-personalization-settings .personalization-wide{grid-column:1/-1!important}
body.au-profile-mode #halo-personalization-settings .chat-color-picker{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;padding:6px 3px!important}
body.au-profile-mode #halo-personalization-settings .chat-color-picker button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:2px solid var(--au-line)!important;border-radius:50%!important;margin:0!important;padding:0!important}
body.au-profile-mode #halo-personalization-settings .hp-chat-preview{position:relative!important;top:auto!important;z-index:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;flex:none!important;height:auto!important;isolation:auto!important;padding:14px!important;margin:14px 0!important;min-width:0!important;border:1px solid var(--au-line)!important;border-radius:14px!important;background:var(--au-soft)!important}
body.au-profile-mode #hp-preview-messages{padding:12px!important;min-height:0!important;max-height:340px!important;overflow:auto!important;border-radius:12px!important}
body.au-profile-mode #halo-personalization-settings .hp-preview-toggle,body.au-profile-mode #halo-personalization-settings .hp-signature{min-height:40px!important;padding:10px 12px!important;border:1px solid var(--au-line)!important;border-radius:11px!important;background:var(--au-soft)!important;color:var(--au-ink)!important;white-space:normal!important}
body.au-profile-mode .au-personalization-value{font:600 12px/1.5 system-ui!important;color:var(--au-accent)!important}
body.au-profile-mode :is(.au-personalization-note,.au-personalization-storage){font:400 12px/1.7 system-ui!important;color:var(--au-muted)!important;margin:8px 0!important}
body.au-profile-mode .au-personalization-note[hidden],body.au-profile-mode .au-personalization-storage[hidden]{display:none!important}
@media(max-width:600px){body.au-profile-mode #halo-personalization-settings .personalization-grid{grid-template-columns:minmax(0,1fr)!important}body.au-profile-mode #halo-personalization-settings .personalization-wide{grid-column:1!important}}
}
