.team-alert-button{position:relative;white-space:nowrap;display:inline-flex;gap:8px;align-items:center;min-height:40px!important}
.team-count{background:#151515;color:#fff;border-radius:999px;min-width:22px;padding:3px 7px;font-size:11px;font-weight:800;display:inline-block;text-align:center}
#team-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ddd;border-radius:18px;background:#fff;color:#161616;box-shadow:0 22px 80px #0004;overflow:auto}
#team-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
.team-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid #eee;position:sticky;top:0;background:white;z-index:2}
.team-head h2{font-size:23px;line-height:1.25;margin:6px 0 0;overflow-wrap:anywhere}.team-head .eyebrow{font-size:10px;letter-spacing:2px}
.team-body{padding:24px}.team-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.team-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.team-row p,.team-row small{flex:1;min-width:160px}.team-row p{margin:0;font-size:13px;color:#555}
.team-note{color:#646464;font-size:13px;line-height:1.6;margin:12px 0 20px}.team-status{font-size:13px;margin-bottom:0;color:#555;overflow-wrap:anywhere}.team-alerts,.team-thread-list{display:grid;gap:10px}
.team-alert{border:1px solid #dedede;border-left:4px solid #111;border-radius:10px;overflow:hidden;background:#fafafa}.team-alert.urgent{border-left-color:#b73131}.team-alert.seen{background:#fff;border-left-color:#ddd}
.team-alert>button,.team-thread-list>button{border:0;background:transparent;width:100%;text-align:left;padding:17px;font:inherit;cursor:pointer;color:inherit}.team-alert strong,.team-thread-list strong{display:block;font-size:15px;line-height:1.4}.team-alert span,.team-thread-list span{display:block;font-size:13px;color:#555;line-height:1.5;margin:5px 0}.team-alert small,.team-thread-list small{font-size:11px;color:#777;display:block;margin-bottom:4px}.team-alert .team-unread-dot{display:inline-block;background:#111;border-radius:50%;width:7px;height:7px;margin:0 0 1px 5px}
.team-thread-list>button{border:1px solid #dedede;border-radius:10px}.team-thread-list .team-count{display:inline-block;color:white;font-size:11px;margin-left:6px}.team-alert button:hover,.team-thread-list button:hover{background:#f0f0f0}
.team-messages{min-height:180px;max-height:38dvh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:4px 2px 14px;overscroll-behavior:contain}.team-message{border:1px solid #e4e4e4;background:#f6f6f6;border-radius:12px;padding:15px;max-width:94%;align-self:flex-start;width:90%}.team-message.mine{background:#fff;border-color:#bbb;align-self:flex-end}.team-message>div{display:flex;justify-content:space-between;gap:12px}.team-message strong{font-size:13px}.team-message time{font-size:11px;color:#777}.team-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin:9px 0 0}
.team-empty{padding:28px 12px;color:#666;text-align:center}.team-empty h3{font-size:18px;color:#222}.team-empty p{font-size:13px;line-height:1.6}
#team-dialog textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:10px;padding:12px;font:inherit;font-size:14px;line-height:1.5;margin-top:8px;resize:vertical;min-height:90px}#team-dialog label{font-size:13px;font-weight:600}#team-dialog form{margin-top:16px}.team-setting{display:flex;gap:10px;align-items:center;padding:14px 0;font-size:15px!important}.team-setting input{width:18px;height:18px}.team-setting:last-of-type{margin-bottom:12px}
@media(max-width:600px){#team-dialog{max-height:calc(100dvh - 12px);width:calc(100vw - 12px);border-radius:14px}.team-head,.team-body{padding:18px}.team-head h2{font-size:19px}.team-row{gap:8px}.team-message{max-width:100%;width:100%}.team-message>div{flex-wrap:wrap}.team-messages{max-height:35dvh}.team-alert-button{padding:8px!important;font-size:12px!important}}

#team-dialog .team-sender{display:block;font-size:13px;line-height:1.5;color:#222;margin:8px 0}#team-dialog .team-sender b{font-weight:750}
/* Aquamen team messenger */
.team-head-actions{display:flex;gap:8px;align-items:center}.team-avatar{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#e9e9e9;color:#222;font-size:13px!important;font-weight:800;line-height:1!important;margin:0!important}.team-search{display:block;margin:0 0 14px}.team-search input{width:100%;box-sizing:border-box;padding:12px 15px;border:1px solid #ddd;border-radius:22px;background:#f5f5f5;font:inherit;font-size:14px}.team-people-grid{display:grid;gap:10px;margin-top:18px}.team-person{display:flex;width:100%;gap:13px;align-items:center;padding:15px;border:1px solid #e3e3e3;border-radius:14px;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer}.team-person:hover{background:#f7f7f7}.team-person strong{display:block;font-size:15px}.team-person small{display:block;color:#666;font-size:12px;margin-top:5px}.team-person-cta{margin-left:auto;font-size:12px;font-weight:700}.team-person.pending{background:#f8f8f8;cursor:default}.team-invite-title{margin-top:28px;font-size:15px}.team-messenger-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:min(620px,calc(100dvh - 230px));min-height:350px}.team-chat-sidebar{border-right:1px solid #e5e5e5;padding:14px 12px;display:flex;flex-direction:column;min-height:0;gap:8px}.team-chat-sidebar .team-search{margin:0}.team-filters{display:flex;gap:5px;flex-wrap:wrap}.team-filters button{border:0;border-radius:14px;padding:7px 10px;font:inherit;font-size:11px;background:#f3f3f3;color:#555;cursor:pointer}.team-filters button[aria-pressed=true]{background:#171717;color:white}.team-chat-list{flex:1;overflow:auto;min-height:0}.team-chat-row{display:flex;gap:10px;width:100%;align-items:center;padding:13px 9px;border:0;border-radius:12px;background:transparent;font:inherit;text-align:left;color:#222;cursor:pointer}.team-chat-row:hover{background:#f6f6f6}.team-chat-row.selected{background:#ebebeb}.team-chat-copy{display:block;min-width:0;flex:1}.team-chat-copy strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}.team-chat-copy small,.team-chat-copy>span,.team-chat-copy time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#666;line-height:1.6}.team-chat-copy time{font-size:10px;color:#888}.team-chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.team-chat-welcome{margin:auto;padding:35px;text-align:center;color:#666}.team-chat-welcome>.team-avatar{width:64px;height:64px;font-size:20px!important}.team-chat-welcome h3{font-size:21px;color:#171717;line-height:1.4}.team-chat-welcome p{font-size:14px;line-height:1.6}.team-conversation-head{display:flex;align-items:center;gap:10px;padding:17px;border-bottom:1px solid #ececec;flex-wrap:wrap}.team-conversation-head>[data-team=back]{display:none}.team-conversation-name{display:flex;gap:10px;align-items:center;min-width:0;flex:1}.team-conversation-name>div{min-width:0}.team-conversation-name h3{font-size:15px;margin:0 0 4px;line-height:1.3;overflow-wrap:anywhere}.team-conversation-name small{font-size:11px;color:#777}.team-origin{padding:0 20px}.team-receipt{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:6px}.team-composer{padding:15px 18px;border-top:1px solid #eee;margin:0!important}.team-composer label{font-size:11px!important;font-weight:400!important;color:#666}.team-compose-row{display:flex;gap:9px;align-items:flex-end}.team-compose-row textarea{flex:1;min-width:0;margin:8px 0!important;border-radius:20px!important;min-height:58px!important;max-height:120px}.team-compose-row button{border-radius:22px!important;margin-bottom:8px;min-height:44px}.team-composer>small{display:block;font-size:10px;line-height:1.5;color:#888}
#team-dialog.messenger{width:min(1080px,calc(100vw - 24px));overflow:hidden}#team-dialog.messenger .team-body{padding:0}#team-dialog.messenger .team-tabs{padding:14px 20px;margin:0;border-bottom:1px solid #eee}#team-dialog.messenger .team-head{padding:18px 24px}#team-dialog.messenger .team-status{margin:0;padding:5px 18px;font-size:11px;min-height:20px}#team-dialog.messenger .team-messages{flex:1;max-height:none;min-height:0;padding:22px 18px;gap:14px;background:#fdfdfd}#team-dialog.messenger .team-message{width:auto;min-width:130px;max-width:88%;border:0;border-radius:18px 18px 18px 4px;background:#eeeeef;padding:13px 16px}#team-dialog.messenger .team-message.mine{color:#fff;background:#171717;border-radius:18px 18px 4px 18px}#team-dialog.messenger .team-message.mine time{color:#ccc}#team-dialog.messenger .team-message strong{font-size:11px}#team-dialog.messenger .team-message time{font-size:10px}#team-dialog.messenger .team-message p{margin-top:7px;font-size:13px;line-height:1.5}.team-head-actions .btn{white-space:nowrap}
@media(max-width:700px){#team-dialog.messenger{width:calc(100vw - 12px)}.team-messenger-layout{display:flex;height:calc(100dvh - 225px);min-height:280px}.team-chat-sidebar{width:100%;border:0;box-sizing:border-box}.team-chat-panel{display:none;width:100%}#team-dialog.chat-open .team-chat-sidebar{display:none}#team-dialog.chat-open .team-chat-panel{display:flex}.team-conversation-head>[data-team=back]{display:inline-flex}.team-conversation-head{padding:12px;gap:8px}.team-conversation-name h3{font-size:13px}.team-conversation-name .team-avatar{display:none!important}.team-composer{padding:10px 12px}.team-person-cta{font-size:11px}.team-head h2{font-size:20px}.team-head-actions{gap:5px}#team-dialog.messenger .team-head{padding:14px 16px}#team-dialog.messenger .team-tabs{padding:10px 12px}#team-dialog.messenger .team-message{max-width:90%;min-width:90px}.team-chat-row{padding:16px 10px}.team-chat-copy strong{font-size:15px}}
