.chatbubble {padding:7px 10px!important;border-radius:10px!important;white-space:normal!important;font-size:14px;line-height:1.35}
.chatbubble small {font-size:11px!important;line-height:1.25;margin-bottom:3px!important}
.chatbubble p,#activity-inbox .inbox-content .chatbubble p {margin:0!important;white-space:pre-wrap;line-height:1.35}
#activity-inbox {height:var(--chat-viewport-height,100dvh)!important;top:var(--chat-viewport-top,0px)!important;bottom:auto!important;padding:12px!important}
#activity-inbox .swapbox {display:flex;flex-direction:column;padding:12px!important;overflow:hidden!important;min-height:0}
#activity-inbox .goalrow {position:static!important;margin:0 0 8px!important;padding:0!important;box-shadow:none!important;flex:none}
#activity-inbox h2 {font-size:21px!important}
#inbox-select {width:100%;font-size:16px;flex:none;margin:0 0 8px;min-width:0}
#activity-inbox .inbox-content {flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#activity-inbox .inbox-thread {display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0!important;padding:10px!important}
#activity-inbox .inbox-thread[hidden] {display:none!important}
#activity-inbox .inbox-thread h3 {font-size:16px;flex:none;margin:0 0 6px}
#activity-inbox .chatlog,#client-chat .chatlog,#u-chat .chatcard .chatlog {flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;gap:6px;margin:4px 0 8px}
#activity-inbox .chatcompose,#client-chat .chatcompose,#u-chat .chatcompose {flex:none;font-size:13px;margin:0}
#activity-inbox textarea,#client-chat textarea,#u-chat textarea {box-sizing:border-box;min-height:44px;height:54px;max-height:100px;padding:8px;margin:4px 0 7px;resize:none;font-size:16px}
#activity-inbox [data-inbox-send],#client-chat #chat-send,#u-chat #chat-send {flex:none;min-height:40px;padding:8px;margin:0}
#activity-inbox .inbox-thread>p,#client-chat #chat-status,#u-chat #chat-status {flex:none;font-size:11px!important;line-height:1.2;margin:5px 0 0!important}
#client-chat,#u-chat .chatcard {display:flex;flex-direction:column;box-sizing:border-box;min-height:140px;max-height:var(--chat-viewport-height,100dvh);overflow:hidden;padding:12px}
#client-chat>h3 {flex:none;font-size:18px;margin:0 0 5px}
#client-chat>p {flex:none;font-size:11px;margin:0 0 6px}
#inbox-more {flex:none;font-size:12px;padding:5px;margin-top:5px}
/* The dialog itself never scrolls. Only the conversation above the composer does. */
#activity-inbox {box-sizing:border-box!important;overflow:hidden!important;overscroll-behavior:none;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important}
#activity-inbox .swapbox {height:100%!important;max-height:100%!important;box-sizing:border-box!important;flex:1;min-width:0;gap:8px!important}
#activity-inbox .goalrow {position:sticky!important;top:0!important;z-index:3;background:#102b35;flex-shrink:0;min-height:42px}
#activity-inbox #inbox-close {flex:none;min-height:42px}
#activity-inbox .inbox-thread {box-sizing:border-box!important}

@supports (-webkit-touch-callout:none){#activity-inbox{padding-top:max(24px,env(safe-area-inset-top))!important}}
