.side-note{display:none!important}.chat-count{margin-left:auto;min-width:24px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;background:#e55757;color:#fff;border-radius:999px;font-size:.72rem;font-weight:800}.chat-count[hidden]{display:none}.team-chat-page{max-width:1120px;margin:0 auto}.chat-head{align-items:flex-start}.chat-private{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:.8rem;font-weight:700;white-space:nowrap}.chat-private svg{width:16px}.team-chat-panel{display:grid;grid-template-rows:minmax(0,1fr) auto;height:clamp(420px,calc(100vh - 250px),820px);min-height:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 12px 32px rgba(31,54,92,.07)}.chat-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:auto;padding:26px;background:linear-gradient(180deg,#f6f8fb 0%,#fff 100%);scrollbar-gutter:stable}.chat-message{display:flex;align-items:flex-end;gap:10px;max-width:76%;margin:0 0 18px}.chat-message.mine{margin-left:auto;flex-direction:row-reverse}.chat-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#dfe8f4;color:var(--navy);font-size:.72rem;font-weight:900}.chat-bubble{min-width:120px;padding:12px 15px;border:1px solid var(--line);border-radius:16px 16px 16px 4px;background:#fff;box-shadow:0 3px 10px rgba(31,54,92,.05)}.chat-message.mine .chat-bubble{border-color:#243b68;background:#263b66;color:#fff;border-radius:16px 16px 4px 16px}.chat-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:6px;font-size:.72rem}.chat-meta time{color:var(--muted);white-space:nowrap}.chat-message.mine .chat-meta time{color:#cbd6e8}.chat-bubble p{margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.chat-composer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 124px;align-items:stretch;gap:12px;padding:18px;border-top:1px solid var(--line);background:#fff}.chat-composer>.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.chat-composer textarea{grid-column:1;min-width:0;width:100%;min-height:58px;max-height:160px;margin:0;resize:vertical}.chat-composer .btn{grid-column:2;min-width:0;width:124px;min-height:58px;margin:0;padding:12px 16px;justify-content:center}.chat-status{grid-column:1/-1;min-height:1em;color:var(--muted);font-size:.75rem}.chat-retention{margin:12px 3px 0;color:var(--muted);font-size:.78rem}.chat-empty,.chat-loading{max-width:480px;margin:110px auto;text-align:center;color:var(--muted)}.chat-empty h2{color:var(--navy)}.team-chat-panel{position:relative}.chat-messages{grid-row:1}.chat-composer{grid-row:2}.chat-jump{grid-row:1;grid-column:1;align-self:end;justify-self:center;margin-bottom:14px;z-index:3;border:0;border-radius:999px;padding:9px 16px;background:#263b66;color:#fff;font-size:.8rem;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(31,54,92,.3)}.chat-jump[hidden]{display:none}.chat-bubble a{color:#1d5fbf;text-decoration:underline;overflow-wrap:anywhere}.chat-message.mine .chat-bubble a{color:#cfe0ff}.chat-attach{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:8px;border:1px dashed var(--line);border-radius:12px;background:#f6f8fb}.chat-attach[hidden]{display:none}.chat-attach img{width:64px;height:64px;object-fit:cover;border-radius:8px}.chat-attach span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.8rem}.chat-attach button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-weight:700;cursor:pointer}.chat-foot{grid-column:1/-1;display:flex;align-items:center;gap:12px}.chat-foot .chat-status{flex:1;min-width:0}.chat-attach-btn{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;padding:7px 14px;font-size:.8rem;font-weight:700;cursor:pointer}.chat-drop{outline:3px dashed #263b66;outline-offset:-6px}.chat-image-link{display:block;margin-bottom:8px}.chat-image-link:last-child{margin-bottom:0}.chat-image{display:block;max-width:min(380px,100%);height:auto;border-radius:10px;background:#eef2f7}
@media(max-width:700px){.team-chat-page{margin:-4px}.chat-head{display:grid}.chat-private{justify-self:start}.team-chat-panel{height:calc(100dvh - 235px);min-height:0;border-radius:13px}.chat-messages{padding:16px 12px}.chat-message{max-width:91%;gap:7px}.chat-avatar{width:30px;height:30px;flex-basis:30px}.chat-bubble{padding:10px 12px}.chat-meta{gap:10px}.chat-composer{grid-template-columns:minmax(0,1fr) 104px;padding:12px;gap:9px}.chat-composer .btn{grid-column:2;width:104px;padding:10px 12px}.chat-status{grid-column:1/-1}.chat-retention{padding:0 4px}}