/* Odizolowane style: bez zmian wyglądu pozostałych paneli */
.rw-msg-shell{max-width:1240px;margin:0 auto;padding:1rem .8rem 2rem;color:#17392d}
.rw-msg-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;flex-wrap:wrap}
.rw-msg-heading h2{font:700 clamp(1.6rem,3vw,2.3rem)/1.12 Georgia,serif;margin:.2rem 0}
.rw-msg-heading p{margin:.35rem 0 0;color:#586d61}
.rw-msg-overline{font-size:.75rem;font-weight:800;letter-spacing:.14em;color:#96732d}
.rw-msg-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.rw-msg-actions button,.rw-msg-guide button,.rw-msg-form button{background:#19583e;color:white;border:0;border-radius:.8rem;padding:.82rem 1.08rem;cursor:pointer;font:700 .95rem/1.2 inherit;min-height:45px}
.rw-msg-actions button.secondary{background:#eff5f0;border:1px solid #d3e2d8;color:#194b35}
.rw-msg-login,.rw-msg-guide{background:#eff7f1;border:1px solid #cfe3d5;border-radius:1rem;padding:1.2rem;line-height:1.6}
.rw-msg-login button{border:1px solid #215e42;background:#215e42;border-radius:.65rem;padding:.7rem 1rem;color:white;margin-right:.4rem;cursor:pointer}
.rw-msg-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:.8rem;min-height:min(68vh,690px)}
.rw-msg-sidebar,.rw-msg-conversation{border:1px solid #d5e5db;border-radius:1.15rem;background:#fff;min-width:0;overflow:hidden}
.rw-msg-sidebar{display:flex;flex-direction:column}
.rw-msg-sidebar-header{padding:1rem;border-bottom:1px solid #ebf0ed}
.rw-msg-sidebar-header strong{font-size:1rem}
.rw-msg-sidebar input{display:block;box-sizing:border-box;width:100%;padding:.82rem .9rem;margin-top:.7rem;border-radius:.7rem;border:1px solid #d8e3dc;background:#fafcfa;color:#193f2d}
.rw-msg-list{overflow:auto;max-height:620px;padding:.35rem}
.rw-msg-thread,.rw-msg-contact{display:flex;align-items:center;text-align:left;gap:.7rem;width:100%;padding:.85rem .6rem;border:0;background:transparent;border-radius:.8rem;color:#153d29;cursor:pointer;font:inherit}
.rw-msg-thread:hover,.rw-msg-thread.selected,.rw-msg-contact:hover{background:#eef7f0}
.rw-msg-avatar{flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#deeee3;display:flex;align-items:center;justify-content:center;font-weight:800;color:#225339}
.rw-msg-thread-text,.rw-msg-contact>span:last-child{flex:1;display:flex;flex-direction:column;gap:.25rem;min-width:0}
.rw-msg-thread-text strong,.rw-msg-contact strong{font-size:.93rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw-msg-thread-text small,.rw-msg-contact small{color:#728076;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.78rem}
.rw-msg-thread-time{font-size:.68rem;color:#7e887e;align-self:flex-start}
.rw-msg-invites{margin:.4rem;padding:.75rem;background:#fff8eb;border-radius:.8rem;display:flex;flex-direction:column;gap:.3rem}
.rw-msg-invites button{border:0;background:transparent;text-decoration:underline;cursor:pointer;color:#805d16;text-align:left;padding:.25rem}
.rw-msg-conversation{display:flex;flex-direction:column;min-height:540px}
.rw-msg-conversation-header{padding:.85rem 1rem;border-bottom:1px solid #e6efe8;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}
.rw-msg-conversation-header span{font-size:.73rem;color:#6e8072}
.rw-msg-conversation-header h3{font-size:1.15rem;margin:.2rem 0;font-family:Georgia,serif}
.rw-msg-suggestions{padding:1.2rem;overflow:auto;flex:1}
.rw-msg-messages{padding:1rem;display:flex;flex-direction:column;gap:.8rem;flex:1;overflow-y:auto;min-height:150px;max-height:580px}
.rw-msg-bubble-row{display:flex;justify-content:flex-start}
.rw-msg-bubble-row.mine{justify-content:flex-end}
.rw-msg-bubble{display:flex;flex-direction:column;gap:.4rem;max-width:min(78%,520px);padding:.72rem .9rem;background:#f0f5f1;border:1px solid #e0ece4;border-radius:1rem;line-height:1.5;overflow-wrap:anywhere}
.rw-msg-bubble-row.mine .rw-msg-bubble{background:#d9f0df;border-color:#c9e8d2}
.rw-msg-bubble small{font-size:.65rem;color:#62796b;text-align:right}
.rw-msg-form{padding:.8rem;border-top:1px solid #e4efe8;display:flex;gap:.5rem;align-items:flex-end}
.rw-msg-form textarea{font:inherit;flex:1;min-width:0;resize:vertical;min-height:44px;max-height:135px;border:1px solid #cddfd2;border-radius:.8rem;padding:.75rem;background:#fff}
.rw-msg-form button:disabled{opacity:.5;cursor:wait}
.rw-msg-status{padding:0 .85rem .55rem;font-size:.76rem;color:#63796b}
.rw-msg-empty{padding:1.1rem;color:#6d7f72;line-height:1.6}
.rw-msg-hint{color:#6d8273;font-size:.88rem;line-height:1.5}
.rw-msg-tip{background:#f6f8f3;border:1px solid #e1e9db;border-radius:.9rem;padding:.85rem 1rem;margin:0 0 1rem;font-size:.87rem;color:#41604d}
.rw-msg-tip strong{color:#1d4e34}
#rwMsgMain[hidden],#rwMsgLoggedOut[hidden],#rwMsgSuggestions[hidden],#rwMsgForm[hidden],#rwMsgInvites[hidden]{display:none!important}
@media(max-width:730px){.rw-msg-shell{padding:.6rem .4rem 1.4rem}.rw-msg-layout{grid-template-columns:1fr;gap:.65rem}.rw-msg-list{max-height:215px}.rw-msg-conversation{min-height:430px}.rw-msg-messages{max-height:400px;min-height:180px}.rw-msg-heading h2{font-size:1.65rem}.rw-msg-actions button{font-size:.85rem;padding:.7rem .8rem}.rw-msg-thread{padding:.55rem}.rw-msg-conversation-header{padding:.7rem}.rw-msg-tip{padding:.7rem}}
