.chat-layout{display:grid;grid-template-columns:285px minmax(0,1fr);background:white;border:1px solid var(--line);border-radius:12px;min-height:590px;overflow:hidden}.chat-rooms-panel{background:#fdfdff;border-right:1px solid var(--line);padding:21px 15px;display:flex;flex-direction:column}.chat-list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.chat-list-heading h2{font-size:18px}.chat-list-heading .icon-button{width:30px;height:30px}.chat-rooms-panel>input{font-size:11px;width:100%;height:36px}.chat-kind-tabs{display:flex;gap:5px;margin:14px 0;border-bottom:1px solid var(--line);padding-bottom:12px}.chat-kind-tabs button{font-size:9px;padding:5px 7px;border-radius:5px;color:#8c8da4}.chat-kind-tabs button.active{background:#eeeaff;color:#6d60bf;font-weight:600}.chat-room-list{flex:1;overflow:auto;max-height:560px}.chat-room{display:flex;align-items:center;gap:10px;width:100%;padding:12px 9px;border-radius:8px;text-align:left;margin:3px 0;min-width:0}.chat-room:hover{background:#f4f3fb}.chat-room.selected{background:#f0eeff}.chat-room>span:nth-child(2){min-width:0;flex:1}.chat-room strong{font-size:11px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#56556e}.chat-room small{font-size:9px;color:#aaa7bb;display:block;margin-top:3px}.chat-room-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex-shrink:0;background:#edeafb;color:#9483c9}.chat-room-icon.team{background:#e8f5f0;color:#67ab92}.chat-room-icon.role{background:#fff2dd;color:#c3a05f}.chat-room-icon .icon{width:16px;height:16px}.chat-observer-dot{color:#c4954c;font-size:11px}.chat-list-note,.chat-list-empty{font-size:10px;line-height:1.7;color:#a8a5b8;margin-top:18px;padding:0 7px}.chat-list-note{border-top:1px solid var(--line);padding-top:17px}.chat-conversation{min-width:0;display:flex;flex-direction:column;background:#fff}#chat-thread{display:flex;flex-direction:column;height:min(75vh,760px);min-height:590px}.chat-welcome{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px;gap:12px}.chat-welcome .empty-icon{display:grid;place-items:center;width:64px;height:64px;background:#f1eeff;color:#978bc4;border-radius:20px}.chat-welcome .icon{height:28px;width:28px}.chat-welcome h2{font-size:22px}.chat-welcome p{font-size:12px;color:#a6a3b5;max-width:330px}.chat-thread-header{padding:21px 25px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line)}.chat-thread-header>div{min-width:0;flex:1}.chat-thread-header h2{font-size:18px;overflow-wrap:anywhere}.chat-thread-header p{font-size:10px;color:#a6a2b6;margin-top:4px;overflow-wrap:anywhere}.chat-thread-header .btn{font-size:10px;min-height:32px;padding:7px 10px}.chat-access-banner{padding:11px 24px;background:#fff8e9;border-bottom:1px solid #f5ead4;color:#a78545;font-size:10px;line-height:1.7}.chat-messages{flex:1;min-height:160px;overflow:auto;padding:20px 25px;overscroll-behavior:contain}.chat-date-divider{display:flex;align-items:center;gap:12px;color:#b1adbf;font-size:9px;margin:8px 0 22px}.chat-date-divider:before,.chat-date-divider:after{content:'';height:1px;flex:1;background:#f0eef6}.chat-message{display:flex;gap:10px;margin-bottom:21px;max-width:88%;align-items:flex-start}.chat-message>.avatar{width:29px;height:29px;font-size:9px;margin-top:18px}.chat-message>div{min-width:0}.chat-message-meta{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-size:9px;color:#b1acbf}.chat-message-meta strong{font-weight:500;color:#8c859e;font-size:10px}.chat-message p{background:#f4f3f9;padding:11px 14px;border-radius:0 10px 10px 10px;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#686078}.chat-message.own{flex-direction:row-reverse;margin-left:auto}.chat-message.own .chat-message-meta{justify-content:flex-end}.chat-message.own p{background:#7063d6;color:#fff;border-radius:10px 0 10px 10px}.chat-no-messages{text-align:center;padding:70px 10px;color:#a8a1b9;font-size:11px}.chat-no-messages h3{font-size:17px;color:#8c839f;margin-bottom:7px}.chat-composer{border-top:1px solid var(--line);padding:18px 24px;background:#fefeff}.chat-composer textarea{width:100%;resize:vertical;font-size:12px;min-height:72px;max-height:180px}.chat-composer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.chat-composer .field-help{font-size:9px;margin:0}.chat-composer .btn{font-size:11px}.chat-load-older{display:block;margin:0 auto 20px}.consent-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.consent-row strong{font-size:12px;font-weight:550}.consent-row small{display:block;font-size:10px;color:#a9a2b8;margin-top:4px}.consent-row .btn{font-size:10px;padding:6px 9px;min-height:30px}.consent-submit{margin-top:14px;font-size:11px}.consent-history-title{font-size:15px;margin-top:24px}.chat-audit-line{font-size:11px;border-bottom:1px solid var(--line);padding:12px 0;color:#9a90a9}.chat-audit-line strong{font-weight:550;color:#797086}.chat-audit-line small{display:block;margin-top:4px;font-size:9px;color:#b0a6bb}.team-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.team-card-bottom .text-button{font-size:10px}.user-actions{flex-wrap:wrap}.chat-grant-hint{font-size:11px;margin-top:12px}
@media(max-width:1100px){.chat-layout{grid-template-columns:240px minmax(0,1fr)}.chat-rooms-panel{padding:17px 11px}.chat-kind-tabs button{padding:5px;font-size:8px}.chat-thread-header{padding:18px}.chat-messages{padding:18px}.chat-composer{padding:16px}.chat-composer>div{align-items:flex-end}.chat-composer .field-help{max-width:150px}}
@media(max-width:800px){.chat-layout{grid-template-columns:1fr}.chat-rooms-panel{border-right:0;border-bottom:1px solid var(--line);padding:16px}.chat-room-list{max-height:190px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 5px}.chat-list-note{display:none}.chat-kind-tabs{margin-bottom:8px}.chat-kind-tabs button{font-size:10px;padding:6px 9px}.chat-room{padding:9px 7px}.chat-thread-header h2{font-size:16px}#chat-thread{height:650px;min-height:500px}.chat-welcome{min-height:270px}.chat-thread-header p{font-size:9px}.chat-composer .btn{font-size:10px;padding:8px}.chat-message{max-width:95%}.chat-message p{font-size:11px}.chat-message-meta strong{font-size:9px}.chat-welcome h2{font-size:18px}}
@media(max-width:480px){.chat-room strong{font-size:10px}.chat-room small{font-size:8px}.chat-room-icon{width:26px;height:28px}.chat-room{gap:6px}.chat-room-list{max-height:175px}.chat-thread-header{padding:16px 12px;gap:8px}.chat-thread-header .btn{font-size:8px;padding:7px;white-space:normal}.chat-messages{padding:14px 11px}.chat-composer{padding:13px 11px}.chat-composer>div{gap:6px}.chat-composer .field-help{font-size:8px;max-width:135px}.chat-access-banner{padding:10px 12px;font-size:9px}.chat-message>.avatar{width:24px;height:24px;font-size:8px}.chat-message{gap:7px}.consent-row{flex-wrap:wrap}.chat-audit-line{font-size:10px}}
