.messages-main{padding-top:2rem;padding-bottom:4rem;min-height:72vh}.messages-header{margin-bottom:1.1rem}.messages-header h1{margin:.2rem 0}.messages-header p{max-width:46rem}.messages-layout{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);border:1px solid #d8e2d9;border-radius:20px;overflow:hidden;background:#fff;min-height:32rem}.messages-sidebar{border-right:1px solid #e1e9e1;background:#f5f8f5;min-width:0}.sidebar-heading,.conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:1rem;border-bottom:1px solid #e1e9e1}.sidebar-heading h2,.conversation-heading h2{font-size:1.08rem;margin:0}.sidebar-heading button,.conversation-heading button,.older-wrap button,.recovery button{border:1px solid #c7d8cb;background:#fff;border-radius:9px;padding:.45rem .75rem;font:inherit;cursor:pointer}.thread-list{max-height:37rem;overflow-y:auto}.thread-item{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #e1e9e1;padding:1rem;background:transparent;cursor:pointer;color:#152d21;font:inherit}.thread-item:hover,.thread-item[aria-pressed=true]{background:#e7f2e9}.thread-item strong,.thread-item small,.thread-item span{display:block}.thread-item small{color:#566c60;margin:.2rem 0}.thread-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation{display:flex;flex-direction:column;min-width:0}.conversation-heading{min-height:4.5rem}.conversation-heading p{margin:.25rem 0 0;font-size:.8rem;color:#566c60}.message-list{height:25rem;min-height:15rem;overflow:auto;padding:1rem;display:flex;flex-direction:column;gap:.8rem;background:#fcfdfc}.bubble{max-width:82%;align-self:flex-start;background:#edf2ed;color:#153023;padding:.7rem .9rem;border-radius:15px;border-bottom-left-radius:3px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#dcefdc;border-bottom-left-radius:15px;border-bottom-right-radius:3px}.bubble time{display:block;font-size:.73rem;opacity:.7;text-align:right;margin-top:.4rem}.empty{color:#566c60}.older-wrap{text-align:center;padding:.3rem}.conversation form{padding:1rem;border-top:1px solid #e1e9e1}.conversation label{display:block;margin-bottom:.4rem;font-weight:600}.conversation textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #bdcebd;border-radius:10px;padding:.8rem;font:inherit;min-height:5.5rem}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.65rem}.composer-actions small{color:#566c60}.status.error{color:#a82122}.recovery{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:.8rem}.recovery[hidden],.conversation form[hidden],.conversation-heading button[hidden],.older-wrap button[hidden]{display:none}.message-list .empty{margin:auto;text-align:center}.conversation button:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.messages-main{padding-top:1rem}.messages-layout{grid-template-columns:1fr}.messages-sidebar{border-right:0;border-bottom:1px solid #e1e9e1}.thread-list{max-height:9rem;overflow-y:auto}.conversation-heading{min-height:3.4rem}.message-list{height:43vh;min-height:14rem}.composer-actions{align-items:flex-start}.composer-actions small{max-width:55%}.bubble{max-width:91%}}
/* Marketplace-style inbox with a compact thread list and focused conversation. */
.messages-main{max-width:1120px;padding-top:1.5rem}
.messages-header h1{font-family:inherit;font-size:clamp(34px,4vw,46px);font-weight:760;letter-spacing:-.045em;line-height:1.1}
.messages-header>div>p:last-child{font-size:16px;color:#5b7067}
.messages-layout{grid-template-columns:minmax(245px,320px) minmax(0,1fr);gap:0;overflow:hidden;border:1px solid #dce5df;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(20,56,44,.06)}
.messages-sidebar{border:0;border-right:1px solid #e0e8e3;background:#f7f9f7}
.sidebar-heading{padding:16px 18px;border-bottom:1px solid #e2e9e4}
.sidebar-heading h2{font-size:17px}
.thread-list{padding:8px}
.thread-item{width:100%;text-align:left;border:0;border-bottom:1px solid #e7ece8;border-radius:9px;background:transparent;padding:13px 12px}
.thread-item[aria-pressed="true"]{background:#e9f3ee}
.thread-item strong{display:block;font-size:14px}
.thread-item small,.thread-item span{font-size:12px;color:#65756e}
.conversation{border:0;background:#fff}
.conversation-heading{padding:14px 18px;border-bottom:1px solid #e2e9e4}
.conversation-heading h2{font-size:18px}
.message-list{background:#fff;padding:20px}
.bubble{max-width:min(76%,520px);padding:11px 14px;border-radius:15px;background:#f0f3f1;line-height:1.45}
.bubble.mine{background:#e2f1e8}
.conversation form{background:#fff}
.conversation textarea{min-height:54px;border-radius:12px}
#send{min-width:104px}
@media(max-width:700px){
.messages-main{padding-top:1rem;padding-bottom:2rem}
.messages-layout{grid-template-columns:1fr;border-radius:14px}
.messages-sidebar{border-right:0;border-bottom:1px solid #e0e8e3}
.thread-list{max-height:170px}
.message-list{height:42vh;min-height:220px;padding:14px}
.bubble{max-width:91%}
.composer-actions{align-items:flex-end}
}
