@layer halo-v277-interaction {
 /* Reserve a dedicated action lane even for one-word incoming bubbles. */
 #direct-chat-messages .direct-chat-message[data-halo-text]:not(:has(.halo-chat-gif)){padding-right:44px!important;box-sizing:border-box!important}
 #direct-chat-messages .direct-chat-message[data-halo-text]:not(:has(.halo-chat-gif))>.halo-message-menu{top:7px!important;right:7px!important;margin:0!important;padding:0!important}

 .halo-receipt-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 18px!important;inline-size:18px!important;min-inline-size:18px!important;max-inline-size:18px!important;min-width:18px!important;min-height:16px!important;line-height:16px!important;margin:0!important;padding:0!important;font:400 10px/1.2 system-ui!important;vertical-align:middle!important;color:var(--ui-muted,#a6b6ca)!important}
 .halo-receipt-status[data-receipt-state=pending]{flex:0 1 auto!important;inline-size:auto!important;min-inline-size:0!important;max-inline-size:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .halo-receipt-status[hidden]{display:none!important}
 .halo-receipt-status svg{display:block!important;width:18px!important;height:12px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.6!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 .halo-receipt-status[data-receipt-state=read]{color:var(--cc-accent,#45c8dc)!important}
 #direct-chat-messages .halo-media-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;font:400 10px/1.2 system-ui!important}
 #direct-chat-messages .halo-media-meta time,#direct-chat-messages .halo-message-clock{display:inline-block!important;position:static!important;float:none!important;flex:0 0 auto!important;width:auto!important;padding:0!important;font:inherit!important;white-space:nowrap!important;margin:0!important}
 #halo-message-info{position:fixed!important;inset:12px!important;margin:auto!important;box-sizing:border-box!important;width:min(420px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:20px!important;border:1px solid var(--ui-line,#61738a)!important;border-radius:18px!important;background:var(--ui-surface,#172238)!important;color:var(--ui-text,#edf4ff)!important;overflow:auto!important;transform:none!important}
 #halo-message-info header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
 #halo-message-info h2{margin:0!important;font:600 18px/1.3 system-ui!important}
 #halo-message-info button{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:inherit!important;font-size:24px!important}
 #halo-message-info p{display:grid!important;gap:6px!important;padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--ui-line,#61738a)!important;font:400 13px/1.5 system-ui!important;overflow-wrap:anywhere!important}
 #halo-message-info::backdrop{background:#030b1755!important;backdrop-filter:blur(5px)!important}

 #halo-media-settings{position:fixed!important;inset:12px!important;margin:auto!important;box-sizing:border-box!important;width:min(620px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;transform:none!important;overflow:auto!important;overscroll-behavior:contain!important}
 #halo-media-settings .halo-media-grid,#halo-media-settings label{min-width:0!important}

 #halo-composer-panel{box-sizing:border-box!important;width:min(440px,calc(100vw - 24px))!important;height:min(480px,calc(100dvh - 32px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;padding:16px!important;border:1px solid var(--ui-line,#61738a)!important;border-radius:20px!important;background:var(--ui-surface,#172238)!important;color:var(--ui-text,#eef4ff)!important;overflow:hidden!important;box-shadow:0 20px 64px #0005!important}
 #halo-composer-panel[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:14px!important}
 #halo-composer-panel::backdrop{background:#030b1755!important;backdrop-filter:blur(5px)!important}
 #halo-composer-panel .halo-composer-tabs{display:flex!important;gap:4px!important;padding-right:38px!important;min-width:0!important;flex-wrap:wrap!important}
 #halo-composer-panel .halo-composer-tabs button{min-height:40px!important;flex:1!important;padding:6px 9px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:inherit!important;font:600 13px/1.3 system-ui!important;cursor:pointer!important}
 #halo-composer-panel .halo-composer-tabs button[aria-selected=true]{background:var(--edge-soft,#8fafff25)!important;box-shadow:inset 0 -2px var(--cc-accent,#71cfff)!important}
 #halo-composer-panel .halo-composer-close{position:absolute!important;right:12px!important;top:16px!important;width:32px!important;height:40px!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:inherit!important;font-size:24px!important;cursor:pointer!important}
 #halo-composer-panel .halo-compose-pane{min-width:0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
 #halo-composer-panel [hidden]{display:none!important}
 #halo-composer-panel .halo-chat-tool-card{box-sizing:border-box!important;min-width:0!important;width:100%!important;padding:2px!important;border:0!important;background:transparent!important;box-shadow:none!important}
 #halo-composer-panel h2{font:600 18px/1.3 system-ui!important;margin:8px 0 16px!important}
 #halo-composer-panel p{font:400 13px/1.5 system-ui!important}
 #halo-composer-panel .halo-emoji-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}
 #halo-composer-panel .halo-emoji-grid button{min-width:0!important;min-height:44px!important;padding:4px!important;border:0!important;border-radius:9px!important;font-size:25px!important;background:transparent!important;cursor:pointer!important}
 #halo-composer-panel .halo-upload-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 #halo-composer-panel .halo-upload-choices button{display:grid!important;justify-items:center!important;gap:8px!important;min-width:0!important;min-height:98px!important;padding:12px!important;border:1px solid var(--ui-line,#61738a)!important;border-radius:14px!important;background:var(--edge-soft,#ffffff08)!important;color:inherit!important;cursor:pointer!important}
 #halo-composer-panel .halo-upload-circle{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:50%!important;background:#78bfff22!important;color:inherit!important}
 #halo-composer-panel .halo-upload-circle svg{width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.6!important}
 #halo-composer-panel .halo-gif-results{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #halo-composer-panel .halo-gif-search{display:flex!important;min-width:0!important;gap:6px!important}
 #halo-composer-panel .halo-gif-search input{min-width:0!important;width:100%!important;font-size:16px!important}
 #halo-composer-panel button:focus-visible{outline:2px solid var(--cc-accent,#71cfff)!important;outline-offset:-2px!important}
 #halo-wallet-dialog[data-presentation=page] .halo-wallet-shell>header{justify-content:flex-start!important}
 #halo-wallet-dialog[data-presentation=page] .halo-wallet-close{order:-1!important;flex-shrink:0!important}
 @media(max-height:500px){#halo-composer-panel{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:10px 14px!important;gap:6px!important}#halo-composer-panel .halo-composer-close{top:10px!important}#halo-composer-panel h2{margin:4px 0 8px!important}}
 @media(max-width:360px){#halo-composer-panel{padding:12px!important}#halo-composer-panel .halo-composer-tabs button{font-size:12px!important;padding:6px!important}#halo-composer-panel .halo-emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
}

@layer halo-v277-interaction {
 @media(max-width:900px){
  body.social-authenticated{--halo-mobile-nav-height:calc(56px + env(safe-area-inset-bottom,0px))}
  body.social-authenticated #social-shell{box-sizing:border-box!important;padding-bottom:var(--halo-mobile-nav-height)!important}
  body.social-authenticated .social-rail{position:fixed!important;inset:auto 0 0!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:var(--halo-mobile-nav-height)!important;min-height:var(--halo-mobile-nav-height)!important;max-height:var(--halo-mobile-nav-height)!important;box-sizing:border-box!important;padding:0 8px env(safe-area-inset-bottom,0px)!important;margin:0!important;border-radius:0!important;border:0!important;border-top:1px solid var(--edge-line)!important;transform:none!important;translate:none!important;transition:none!important;animation:none!important;overflow:visible!important;gap:0!important}
  body.social-authenticated .social-nav{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-around!important;gap:2px!important;width:100%!important;height:55px!important;min-height:0!important;max-height:55px!important;padding:0!important;margin:0!important;transform:none!important;translate:none!important}
  body.social-authenticated .social-nav-button{flex:1 1 0!important;width:auto!important;height:52px!important;min-height:52px!important;max-height:52px!important;padding:4px 2px!important;border-radius:12px!important;transform:none!important;translate:none!important;transition:color .15s,background-color .15s!important}
  body.social-authenticated:is(.halo-chat-mobile-open,.home-chat-open) #social-shell{padding-bottom:0!important}
  body.social-authenticated .direct-chat-form>#direct-chat-composer:has(>#direct-chat-input:focus){grid-template-columns:minmax(0,1fr) 42px!important}
  body.social-authenticated .direct-chat-form>#direct-chat-composer:has(>#direct-chat-input:focus)>button:not(#direct-chat-send){display:none!important}
  body.social-authenticated .direct-chat-form>#direct-chat-composer:has(>#direct-chat-input:focus)>#direct-chat-input{grid-column:1!important;grid-row:1!important}
  body.social-authenticated .direct-chat-form>#direct-chat-composer:has(>#direct-chat-input:focus)>#direct-chat-send{grid-column:2!important;grid-row:1!important}
  body.social-authenticated #halo-group-composer:has(>#halo-group-input:focus){grid-template-columns:minmax(0,1fr) 42px!important}
  body.social-authenticated #halo-group-composer:has(>#halo-group-input:focus)>button:not(#halo-group-submit){display:none!important}
  body.social-authenticated #halo-group-composer:has(>#halo-group-input:focus)>#halo-group-input{grid-column:1!important;grid-row:1!important}
  body.social-authenticated #halo-group-composer:has(>#halo-group-input:focus)>#halo-group-submit{grid-column:2!important;grid-row:1!important}
 }
}
