.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.chat-layout>*{min-width:0}.chat-card{padding:0;overflow:hidden;margin-bottom:0}.chat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.chat-toolbar h2{margin:0}.connection{font-size:11px;color:#628071}.chat-notice{font-size:12px;color:#6b7b6e;background:#f1f5ee;padding:11px 20px;line-height:1.7}.chat-notice.resting{background:#fff3d6;color:#795817}.chat-log{height:min(56vh,600px);min-height:280px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:18px;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-msg{max-width:85%;align-self:flex-start}.chat-msg.own{align-self:flex-end}.chat-meta{font-size:11px;color:#7b8b80;display:flex;gap:10px;margin-bottom:6px;align-items:center;flex-wrap:wrap}.chat-sender{border:0;background:none!important;color:#38664e;padding:0;font-size:12px;font-weight:600}.chat-bubble{background:#f0f3ef;padding:12px 15px;border-radius:3px 12px 12px 12px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.7;font-size:14px}.own .chat-bubble{background:#e1efda;border-radius:12px 3px 12px 12px}.chat-msg.system .chat-bubble{background:#f7f3e7}.chat-msg.withdrawn .chat-bubble{background:#f4f3f0;color:#8a8076}.chat-photo{display:block;max-width:100%;max-height:300px;border-radius:8px;margin-top:8px;object-fit:contain}.chat-actions{display:flex;gap:10px;margin-top:5px}.chat-actions button{font-size:11px;padding:2px 0;color:#82796b;background:none}.chat-compose{padding:15px 20px;border-top:1px solid var(--line);background:#fff}.chat-compose textarea{display:block;width:100%;resize:vertical;min-height:70px;max-height:220px;border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;font-size:14px;line-height:1.6;color:inherit;background:#fcfdfb}.compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.compose-hint{font-size:11px;color:#839185}.chat-alert{font-size:12px;color:#9a3b2d;padding:10px 20px;background:#fff1ed}.image-preview{display:flex;align-items:center;gap:12px;padding-top:10px}.image-preview img{width:50px;height:50px;object-fit:cover;border-radius:6px}.chat-pagination{display:flex;justify-content:center;gap:12px;padding:8px;border-bottom:1px solid var(--line)}.chat-pagination button{font-size:11px;padding:5px 9px}.chat-search{display:flex;gap:8px;max-width:500px;margin-bottom:15px}.chat-search input{font-size:13px}.chat-search button{white-space:nowrap}.support-launch{position:fixed;right:25px;bottom:24px;z-index:35;box-shadow:0 7px 25px #163b3026;padding:15px 22px;border-radius:30px}.support-dialog{position:fixed;bottom:90px;right:25px;width:400px;max-width:calc(100vw - 32px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 60px #173e302b;overflow:hidden}.support-dialog>header{height:59px;padding:0 18px;background:#143e31;color:white}.support-dialog h2{font-size:15px;margin:0}.support-dialog header button{padding:5px 10px;color:white;background:#ffffff18}.support-dialog .chat-log{height:300px;min-height:120px}.support-dialog .chat-toolbar{padding:11px 18px}.support-dialog .chat-compose{padding:12px}.support-dialog .chat-compose textarea{min-height:60px}.support-dialog .chat-msg{max-width:92%}.support-dialog .chat-notice{padding:8px 14px}.support-status{font-size:12px;line-height:1.7;color:#6a7d6e;padding:10px 16px;background:#f3f7f0;border-bottom:1px solid var(--line)}.inbox-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px}.inbox-list{max-height:700px;overflow:auto}.inbox-item{display:block;width:100%;text-align:left;padding:16px;background:white;color:#243e30;border:1px solid var(--line);border-radius:8px;margin-bottom:9px}.inbox-item.selected{border-color:#44835f;background:#edf5e8}.inbox-item strong{font-size:13px}.inbox-item small{display:block;font-size:11px;font-weight:400;color:#748477;line-height:1.8;margin-top:5px}.unread{background:#c0613d;color:white;border-radius:12px;padding:2px 6px;font-size:10px;float:right}.presence-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;flex-wrap:wrap}.presence-bar p{margin:0}.settings-form{max-width:850px}.settings-form textarea{width:100%;min-height:110px;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit;resize:vertical;line-height:1.6}.moderation-dialog{border:1px solid var(--line);border-radius:12px;padding:25px;max-width:430px;width:calc(100vw - 32px);color:#233d30}.moderation-dialog::backdrop{background:#15342766}.moderation-dialog h2{font-size:18px}.moderation-dialog .row{justify-content:flex-end;margin-top:20px}.room-meta{font-size:12px;color:#718378;line-height:1.9}.chat-page{max-width:1400px}.chat-sidebar-note h2{font-size:17px}.chat-sidebar-note .feature{align-items:flex-start}.chat-sidebar-note .feature p{line-height:1.8}.chat-empty{margin:auto;text-align:center;color:#829183;font-size:13px}
@media(max-width:1000px){.chat-layout{grid-template-columns:1fr}.chat-sidebar-note{display:none}.inbox-layout{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:800px){.chat-page{padding:25px 14px 90px}.chat-log{padding:14px;height:51vh;min-height:220px}.chat-toolbar{padding:15px}.chat-msg{max-width:94%}.chat-compose{padding:12px}.compose-hint{display:none}.support-launch{right:16px;bottom:16px;padding:12px 18px}.support-dialog{right:12px;bottom:76px;width:calc(100vw - 24px);max-width:none;max-height:calc(100dvh - 100px)}.support-dialog .chat-log{height:26dvh;min-height:100px}.support-dialog>header{height:50px}.inbox-layout{grid-template-columns:1fr;gap:10px}.inbox-list{max-height:220px;display:flex;gap:8px;overflow:auto}.inbox-item{min-width:180px;margin-bottom:8px}.chat-search{flex-wrap:wrap}.chat-search input{flex:1;min-width:140px}.presence-bar{align-items:flex-start}.chat-pagination{padding:6px}}
.inline-checkbox{width:auto;margin-right:7px}.inbox-layout>*{min-width:0}.inbox-item small{white-space:pre-line}
