/* Shared Ectronic OS Team Chat visual contract. Keep byte-identical in Mod Desk and ECR. */
.team-chat-header-actions{position:relative;display:flex;align-items:center;gap:7px}
.team-color-button{position:relative;display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;padding:0;border:1px solid #3d4c61;border-radius:9px;background:#141e2c;color:#dce6f3;cursor:pointer}
.team-color-button:hover,.team-color-button[aria-expanded="true"]{border-color:#608395;background:#1a2939;color:#fff}
.team-color-button svg{position:absolute;left:50%;top:50%;display:block;width:19px;height:19px;margin:0;padding:0;transform:translate(-50%,-50%);fill:currentColor;pointer-events:none}
.team-color-button>span{position:absolute;right:4px;bottom:4px;width:9px;height:9px;border:2px solid #101825;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.team-color-popover{position:absolute;z-index:30;right:0;top:calc(100% + 10px);width:282px;padding:14px;border:1px solid #405369;border-radius:12px;background:#0d1521;box-shadow:0 18px 48px rgba(0,0,0,.55)}
.team-color-popover[hidden]{display:none}
.team-color-popover>strong{display:block;color:#dce8f5;font-size:10px;letter-spacing:.12em}
.team-color-popover>p{margin:5px 0 12px;color:#8f9db0;font-size:11px;line-height:1.4}
.team-color-preview{margin-bottom:13px;padding:9px 12px;border-radius:15px 15px 4px 15px;background:#4f8cff;color:#fff;font-size:12px;font-weight:700;text-align:right;box-shadow:0 5px 14px rgba(0,0,0,.24)}
.team-color-swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.team-color-swatch{width:25px;height:25px;padding:0;border:2px solid transparent;border-radius:50%;background:#4f8cff;box-shadow:0 0 0 1px rgba(255,255,255,.13);cursor:pointer}
.team-color-swatch:hover{transform:scale(1.08)}
.team-color-swatch.active{border-color:#fff;box-shadow:0 0 0 2px #0d1521,0 0 0 4px #fff}
.team-color-saved{display:block;margin-top:10px;color:#8f9db0}
.team-chat-description{margin:0;padding:0 1px 3px;color:#8f9db0;font-size:12px;line-height:1.5}
.team-chat-messages{display:flex;flex:1 1 auto;flex-direction:column;gap:8px;min-height:0;max-height:none;overflow:auto;overflow-anchor:none;padding:4px 2px 8px;scrollbar-width:thin;scrollbar-color:#526070 transparent}
.team-chat-messages::-webkit-scrollbar{width:8px}.team-chat-messages::-webkit-scrollbar-track{background:transparent}.team-chat-messages::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#526070;background-clip:padding-box}
.team-chat-messages>:first-child{margin-top:auto}
.team-chat-empty{margin:auto 0;color:#8f9db0;padding:22px 12px;text-align:center;border:1px dashed #2a3546;border-radius:8px}
.team-history-date{display:flex;align-items:center;gap:8px;margin:10px 0 8px;color:#8f9db0;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.team-history-date:before,.team-history-date:after{content:'';height:1px;flex:1;background:#2a3546}
.team-message,.team-chat-messages .team-message{display:flex;align-self:stretch;align-items:flex-end;flex-direction:row;gap:0;width:100%;max-width:none;margin:0;padding:0;border:0;background:transparent}
.team-message.from-ecr,.team-message.from-team,.team-message.to-ecr,.team-chat-messages .team-message.from-ecr,.team-chat-messages .team-message.from-team{align-self:stretch;justify-content:flex-start;flex-direction:row;margin:0;border:0;background:transparent}
.team-message.is-own,.team-chat-messages .team-message.is-own{align-self:stretch;justify-content:flex-end;flex-direction:row}
.team-message-bubble,.team-chat-messages .team-message-bubble{display:block;min-width:0;max-width:82%;padding:9px 12px 10px;border:1px solid rgba(255,255,255,.24);border-radius:16px 16px 16px 5px;background:#4f8cff;color:#fff;box-shadow:0 5px 15px rgba(0,0,0,.26)}
.team-message.from-ecr .team-message-bubble,.team-message.from-team .team-message-bubble,.team-message.to-ecr .team-message-bubble{border-radius:16px 16px 16px 5px}
.team-message.is-own .team-message-bubble,.team-chat-messages .team-message.is-own .team-message-bubble{border-radius:16px 16px 5px 16px}
.team-message-meta,.team-message-bubble>div.team-message-meta,.team-chat-messages .team-message-meta{display:flex;align-items:center;gap:7px;color:inherit}
.team-message strong,.team-chat-messages .team-message strong{color:inherit;font-size:10px;font-weight:850}
.team-message time,.team-chat-messages .team-message time{margin-left:auto;color:inherit;font-size:8px;opacity:.68}
.team-message p,.team-chat-messages .team-message p{margin:5px 0 0;color:inherit;font-size:12px;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.team-author-avatar-wrap{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px}
.team-author-avatar{display:grid;place-items:center;width:26px;height:26px;overflow:hidden;border-radius:50%;background:#1b2737;box-shadow:0 0 0 1px rgba(255,255,255,.22)}
.team-author-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.team-author-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;background:#26364a;color:#e8f2fb;font-size:10px;font-weight:900;text-transform:uppercase}
.team-presence-dot{position:absolute;right:0;bottom:0;width:9px;height:9px;border:2px solid #0d1521;border-radius:50%;box-sizing:border-box;background:#7b8797}
.team-presence-dot.online{background:#3bcf72}.team-presence-dot.away{background:#f1bd3f}.team-presence-dot.offline{background:#7b8797}
.team-chat-form{position:relative;padding-top:10px;border-top:1px solid #2a3546}
.team-chat-form textarea{display:block;width:100%;min-height:64px;resize:vertical;padding:9px 10px;border:1px solid #415064;border-radius:8px;background:#0b111c;color:#f5f7fb;font:600 12px/1.35 inherit}
.team-chat-submit{display:flex!important;align-items:center;justify-content:flex-end!important;gap:8px;margin-top:7px}
.team-chat-submit .team-emote-button{margin-right:auto}
.team-chat-submit .team-chat-send{min-width:70px;min-height:35px;padding:8px 11px;border:1px solid #3f8a96;border-radius:8px;background:#12323d;color:#dffcff;font:750 12px/1 inherit;cursor:pointer}
.team-chat-submit .team-chat-send:disabled{opacity:.45;cursor:not-allowed}
.team-emote-button{display:grid;place-items:center;width:36px;height:35px;margin-right:auto;padding:0;border:1px solid #415064;border-radius:8px;background:#111a28;color:#dbe6f2;font-size:18px;cursor:pointer}
.team-emote-button:hover,.team-emote-button[aria-expanded="true"]{border-color:#6a829d;background:#1a2738;color:#fff}
.team-chat-form textarea{min-height:47px;max-height:130px}.team-chat-submit .team-chat-send{display:grid;place-items:center;min-width:38px;width:38px;height:38px;padding:0;border-color:#57c1d1;background:#62d8e5;color:#09212b}.team-chat-submit .team-chat-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.team-emote-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.team-emote-picker{position:absolute;z-index:18;left:0;right:0;bottom:47px;max-height:310px;overflow:auto;padding:9px;border:1px solid #405369;border-radius:10px;background:#0d1521;box-shadow:0 14px 38px #000b}
.team-chat-form>.team-emote-picker{display:block;align-items:initial;gap:0;margin-top:0}
.team-emote-picker[hidden]{display:none}
.team-emote-search input{display:block;width:100%;margin:0 0 8px;padding:8px 9px;border:1px solid #405369;border-radius:7px;background:#09111c;color:#eef5fb}
.team-emote-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px}
.team-emote-grid .emote-choice,.team-emote-grid button{display:grid;place-items:center;min-width:0;height:40px;padding:3px;border:0;border-radius:7px;background:transparent;cursor:pointer}
.team-emote-grid .emote-choice:hover,.team-emote-grid button:hover{background:rgba(255,255,255,.08)}
.team-emote-grid img{display:block;max-width:100%;max-height:34px;object-fit:contain}
.team-chat-emote{height:28px;max-width:84px;vertical-align:middle;object-fit:contain}
.team-color-0{background:#ff5c8a!important;color:#fff!important}.team-color-1{background:#ff7a59!important;color:#fff!important}.team-color-2{background:#ffb347!important;color:#07111c!important}.team-color-3{background:#f5d547!important;color:#07111c!important}.team-color-4{background:#72d572!important;color:#07111c!important}.team-color-5{background:#35d0ba!important;color:#07111c!important}.team-color-6{background:#22c7f2!important;color:#07111c!important}.team-color-7{background:#4f8cff!important;color:#fff!important}.team-color-8{background:#7768e5!important;color:#fff!important}.team-color-9{background:#a66cff!important;color:#fff!important}.team-color-10{background:#d45bd2!important;color:#fff!important}.team-color-11{background:#ef6eb6!important;color:#fff!important}.team-color-12{background:#8b9bb4!important;color:#07111c!important}.team-color-13{background:#5f718b!important;color:#fff!important}.team-color-14{background:#2f9e73!important;color:#fff!important}.team-color-15{background:#d96b2b!important;color:#fff!important}
.team-message-bubble[class*="team-color-"]{border-color:rgba(255,255,255,.24)}
@media(max-width:520px){.team-color-popover{right:-58px;width:min(282px,calc(100vw - 28px))}.team-message-bubble{max-width:88%}.team-emote-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Same icon dimensions and state language in both EOS Team Chats. */
.team-chat-head .team-chat-title-row{flex:1 1 auto;min-width:0}
.team-chat-head .team-chat-title-row h2{min-width:0;overflow:hidden;text-overflow:ellipsis}
.team-chat-head .team-chat-header-actions > button{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;padding:0;border:1px solid #3d4c61;border-radius:9px;background:#141e2c;color:#dce6f3}
.team-chat-head .team-chat-header-actions > button:hover,.team-chat-head .team-chat-header-actions > button[aria-expanded="true"]{border-color:#608395;background:#1a2939;color:#fff}
.team-chat-head .team-sound-button svg,.drawer-header-actions .team-sound-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.team-sound-button .team-sound-slash,.team-sound-button .team-sound-slash-underlay{display:none}
.team-sound-button.is-muted .team-sound-waves{display:none}
.team-sound-button.is-muted .team-sound-slash,.team-sound-button.is-muted .team-sound-slash-underlay{display:block}
.team-sound-button.is-muted .team-sound-slash-underlay{stroke:#141e2c;stroke-width:5}
.team-sound-button.is-muted .team-sound-slash{stroke:#ff6577;stroke-width:2.8}
.team-chat-head .team-sound-button.is-muted,.drawer-header-actions .team-sound-button.is-muted{border-color:#854957;background:#281d2a;color:#f9d8de}
