.team-chat-workspace{display:grid;grid-template-columns:minmax(230px,.34fr) minmax(0,1fr);min-height:560px;max-height:calc(100dvh - 220px);background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.team-chat-workspace [hidden]{display:none!important}.team-chat-conversations{min-width:0;overflow:auto;border-right:1px solid var(--line);padding:16px}.team-chat-conversations label{display:grid;gap:8px;font-size:13px;font-weight:700;margin-bottom:16px}.team-chat-conversations input{min-width:0;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px}.team-chat-thread{display:flex;width:100%;gap:10px;align-items:center;padding:14px 8px;background:#fff;border:0;border-bottom:1px solid var(--line);text-align:start;color:var(--green)}.team-chat-thread.active{background:var(--green-3);border-radius:10px}.team-chat-thread>span:nth-child(2){min-width:0;flex:1}.team-chat-thread strong,.team-chat-thread small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-chat-thread small{margin-top:5px;color:var(--muted);font-size:12px}.team-chat-avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:var(--sand);border-radius:50%;font-weight:700}.team-chat-current{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f8f8f3}.team-chat-current>header{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#fff;border-bottom:1px solid var(--line)}.team-chat-current h2{font-size:18px;overflow-wrap:anywhere;margin:0}#team-chat-back{display:none}#team-chat-messages{flex:1;min-height:160px;overflow:auto;overscroll-behavior:contain;padding:20px;display:flex;flex-direction:column;gap:14px}.team-chat-bubble{max-width:88%;align-self:flex-start;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:14px 14px 14px 3px;overflow-wrap:anywhere}.team-chat-bubble.mine{align-self:flex-end;background:#e3eee7;border-radius:14px 14px 3px}.team-chat-bubble>strong{display:block;font-size:12px;color:var(--green)}.team-chat-bubble>small{display:block;color:var(--muted);margin-top:5px}.team-chat-bubble p{margin:8px 0;white-space:pre-wrap;line-height:1.55;font-size:14px}.team-chat-bubble footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;font-size:10px;color:var(--muted);padding:0;background:none}.team-chat-attachments{display:grid;gap:8px;margin:12px 0}.team-chat-attachments a{background:#ffffffa6;padding:8px;border-radius:6px;font-size:13px}#team-chat-form{padding:16px;border-top:1px solid var(--line);background:#fff}.team-chat-compose-label{display:grid;gap:6px;font-size:12px;font-weight:700}#team-chat-form textarea{resize:vertical;min-height:70px;max-height:180px;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0;width:100%}.team-chat-compose-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.team-chat-compose-actions small{flex:1;min-width:80px;font-size:11px;overflow-wrap:anywhere}.team-chat-attach{position:relative;display:inline-flex;cursor:pointer;font-size:12px;border-radius:8px}.team-chat-attach input{position:absolute;width:1px;height:1px;opacity:0}.team-chat-attach:focus-within{outline:2px solid var(--green)}#team-chat-form .form-status{margin:8px 0 0;font-size:12px}#team-chat-new-form select{width:100%;padding:12px}@media (max-width:800px){.team-chat-workspace{grid-template-columns:minmax(0,1fr);min-height:480px;max-height:calc(100dvh - 180px)}.team-chat-current,.conversation-open .team-chat-conversations{display:none}.conversation-open .team-chat-current{display:flex}#team-chat-back{display:inline-flex;font-size:12px;padding:8px}.team-chat-current>header{padding:12px}.team-chat-current h2{font-size:15px}.team-chat-bubble{max-width:95%}#team-chat-messages{padding:12px}#view-team-chat>.view-actions{gap:10px}.team-chat-compose-actions>.button.primary{margin-left:auto}}.team-chat-workspace{height:calc(100dvh - 190px);min-height:320px;max-height:900px;grid-template-columns:minmax(220px,32%) minmax(0,1fr);border-radius:12px}.team-chat-conversations{padding:12px;background:#fff}.team-chat-current{background:#efece5}.team-chat-current>header{padding:12px 16px;flex-wrap:wrap;background:#f5f7f6}.team-chat-current>header>div{flex:1;min-width:0}.team-chat-current>header .button{font-size:12px;padding:8px;min-height:36px}.team-chat-current h2{font-family:inherit;font-weight:700}.team-chat-bubble{box-shadow:0 1px 2px #00000012;border:none}.team-chat-bubble.mine{background:#d9f3e5}#team-chat-form{padding:10px 14px;background:#f5f7f6}#team-chat-form textarea{min-height:44px;height:52px;border-radius:20px;background:#fff;padding:12px 16px}#team-chat-form .team-chat-compose-label{font-size:0}.team-chat-compose-actions{margin-top:6px}.team-chat-compose-actions button[type=submit]{border-radius:24px;min-height:40px}#conversation-feedback:empty{display:none}#conversation-feedback{margin:0;padding:8px 16px;font-size:13px;background:#fff}.conversation-filter-label select{width:100%;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:8px}#conversation-subtitle{font-size:12px;color:var(--muted)}@media (max-width:800px){.team-chat-workspace{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 175px);min-height:300px;max-height:none}#team-chat-form{padding:8px}.team-chat-compose-actions small{font-size:10px}.team-chat-bubble{max-width:92%}.team-chat-current>header{gap:8px}#team-chat-new-dialog{max-height:calc(100dvh - 16px)}}@media (max-height:650px) and (min-width:801px){.team-chat-workspace{height:calc(100dvh - 150px);min-height:280px}#team-chat-messages{min-height:60px}#view-team-chat>.view-actions{margin-bottom:8px}}
