.school-chat{--chat-green:#205c3c;display:grid;grid-template-columns:290px minmax(0,1fr);background:#fffdf8;border:1px solid #d9dfd6;border-radius:18px;overflow:hidden;height:calc(100dvh - 190px);min-height:460px;max-height:800px;position:relative;isolation:isolate}.school-chat button{cursor:pointer;font:inherit}.chat-sidebar{min-width:0;border-right:1px solid #d9dfd6;display:flex;flex-direction:column;overflow:hidden}.chat-sidebar header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px;background:#e7efe4}.chat-sidebar h2{font-size:20px;margin:0;flex:1}.chat-sidebar header button,.chat-peer-header button{border:0;background:transparent;padding:9px;border-radius:10px;color:#16412c}.chat-search{display:block;font-size:17px;padding:12px}.chat-search input{width:100%;padding:11px;border-radius:18px;border:1px solid #dce3d7;margin-top:5px;background:white}.chat-contact-list{overflow:auto;flex:1}.chat-contact{width:100%;display:flex;align-items:center;gap:12px;padding:13px 15px;background:white;border:0;border-bottom:1px solid #edf0e8;text-align:left;color:#153c32}.chat-contact.selected{background:#e4f0df}.chat-contact>span:nth-child(2){flex:1;min-width:0}.chat-contact b,.chat-contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-contact small{color:#6a776c;margin-top:5px;font-size:17px}.chat-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;display:grid;place-items:center;background:#d6e5cc;color:#205539;font-weight:700;overflow:hidden}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-unread{border-radius:20px;padding:3px 7px;color:white;background:#23643d;font-size:17px}.chat-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f1f0e6}.chat-peer-header{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:12px;background:#e7efe4}.chat-peer-header>div{min-width:0}.chat-peer-header small{display:block;color:#6d7569;font-size:17px}.chat-log{flex:1;min-height:80px;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain}.chat-bubble{max-width:87%;padding:10px 12px 7px;border-radius:14px;background:white;box-shadow:0 1px 3px #19332416;align-self:flex-start;overflow-wrap:anywhere;min-width:100px}.chat-bubble.chat-self{background:#dceccf;align-self:flex-end;border-bottom-right-radius:4px}.chat-bubble.chat-other{border-bottom-left-radius:4px}.chat-bubble p{white-space:pre-wrap;margin:0 0 7px}.chat-bubble strong,.chat-bubble a,.chat-bubble small{display:block}.chat-bubble a{color:#185334}.chat-bubble footer{display:flex;justify-content:flex-end;gap:5px;font-size:17px;color:#6e796a;margin-top:6px}.chat-read{color:#216eb3}.chat-day{align-self:center;background:#fffdf6cc;border-radius:9px;font-size:17px;padding:6px 11px;color:#697063}.chat-bubble video,.chat-bubble audio{max-width:100%;width:270px}.chat-image{max-width:100%;width:270px;max-height:280px;object-fit:contain;border-radius:8px}.chat-document{padding:10px;background:#ffffff66;border-radius:9px}.chat-composer{flex-shrink:0;display:flex;align-items:flex-end;gap:4px;padding:12px;background:#fafaf4;border-top:1px solid #dbe1d4;margin:0}.chat-composer textarea{resize:vertical;min-height:44px;max-height:130px;flex:1;min-width:0;border:1px solid #d7e1d0;background:white;border-radius:22px;padding:12px 15px;font:inherit}.chat-composer button{width:42px;height:44px;flex-shrink:0;border:0;background:transparent;border-radius:50%;font-size:22px}.chat-composer button[type=submit]{background:#205c3c;color:white}.chat-attachment-menu{flex:0 0 auto;max-height:220px;overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:white;padding:16px;border-top:1px solid #dce2d7}.chat-attachment-menu button{background:#f7f9f1;border:0;border-radius:14px;padding:12px 4px;font-size:17px;min-height:76px;color:#244b30}.chat-attachment-menu button span{display:block;font-size:25px;margin-bottom:5px}.chat-attachment-menu small{grid-column:1/-1;font-size:17px;color:#6b7364}.chat-compose-panel{background:#fffdf6;padding:15px;max-height:55dvh;overflow:auto;border-top:1px solid #d3dfcc}.chat-compose-panel form{display:grid;gap:10px}.chat-compose-panel label{display:grid;gap:5px}.chat-compose-panel input,.chat-compose-panel textarea{width:100%;padding:10px;font:inherit;border:1px solid #cdd8c4;border-radius:8px}.chat-panel-heading{display:flex;justify-content:space-between;align-items:center}.chat-panel-heading h3{margin:0 0 10px}.chat-panel-heading button{border:0;background:transparent}.chat-empty{padding:22px;color:#687363;text-align:center;margin:auto;font-size:17px}.chat-status{grid-column:1/-1;margin:0;padding:0 12px;background:#fffdf6;color:#50664e;font-size:17px;line-height:1.6;min-height:0}.chat-status:empty{display:none}.chat-draft-files>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#f8fbf3;font-size:17px;flex-wrap:wrap}.chat-draft-files button,.chat-recording button,.chat-poll button,.chat-event-responses button,.chat-quick-list button{border:1px solid #b9ceaa;border-radius:8px;padding:7px;background:#fafdf7;margin:3px;color:#245237}.chat-recording{padding:8px;background:#fff2e7;color:#93422e;font-size:17px}.chat-poll,.chat-event-responses{display:grid;gap:5px;margin-top:9px}.chat-compact{grid-template-columns:1fr;height:650px;min-height:460px;max-height:740px}.chat-compact .chat-conversation{display:none}.chat-compact.chat-has-peer .chat-sidebar{display:none}.chat-compact.chat-has-peer .chat-conversation{display:flex}.chat-compact .chat-attachment-menu{grid-template-columns:repeat(4,minmax(0,1fr))}.chat-compact .chat-bubble{max-width:94%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.school-chat{grid-template-columns:1fr;height:calc(100dvh - 230px);min-height:400px;max-height:750px}.school-chat .chat-conversation{display:none}.school-chat.chat-has-peer .chat-sidebar{display:none}.school-chat.chat-has-peer .chat-conversation{display:flex}.chat-contact{min-height:75px}.chat-bubble{max-width:90%}.chat-composer{padding:9px 6px;gap:1px}.chat-composer button{width:37px}.chat-composer textarea{font-size:17px}.chat-log{padding:12px}.chat-compose-panel{max-height:42dvh}.chat-compact{max-height:75dvh}.chat-sidebar header{padding:12px}}

.chat-draft-files{flex:0 0 auto;max-height:160px;overflow:auto}.chat-peer-header strong{overflow-wrap:anywhere}.chat-peer-header>div small{overflow-wrap:anywhere}
.chat-expressions{flex:0 1 auto;overflow:auto;max-height:280px;padding:12px;background:#fffdf8;border-top:1px solid #dae2d3;min-height:100px}.chat-expressions header{display:flex;justify-content:space-between;align-items:center;gap:8px}.chat-expressions nav{display:flex;gap:6px;flex-wrap:wrap}.chat-expressions button{border:1px solid #d8e0ce;border-radius:10px;padding:9px;background:#f5f8f0;color:#284b34}.chat-expressions [aria-pressed=true]{background:#dcebcf;border-color:#508044}.chat-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin-top:10px}.chat-emoji-grid button{font-size:25px;padding:6px;border:0;background:transparent}.chat-expression-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.chat-expression-grid img{width:100%;max-height:110px;object-fit:contain}.chat-expressions p{font-size:17px}.chat-sticker .chat-image{width:160px;height:160px;object-fit:contain;background:transparent}.chat-draft-files .chat-image{max-height:110px;max-width:160px}.chat-expressions+.chat-draft-files{max-height:110px}@media(max-width:760px){.chat-expressions{max-height:220px;padding:8px}.chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.chat-composer:has([data-chat-act="expressions"]) button{width:32px;font-size:20px}.chat-composer:has([data-chat-act="expressions"]) textarea{padding:12px 9px}}
