.chat-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:24px;align-items:start}.chat-layout h2{font-size:1.3rem}.thread{display:block;width:100%;text-align:left;background:#f2f7f3;color:#163e30;border:1px solid #d7e6dc;border-radius:12px;padding:14px;margin:10px 0;cursor:pointer}.thread[aria-current=true]{border:2px solid #168052}.thread small{display:block;margin-top:5px}.chat-layout textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid #b8cfc1;border-radius:12px;padding:12px;margin:8px 0}.chat-message{max-width:85%;padding:12px 16px;border-radius:14px;background:#f1f5f2;margin:12px 0;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.mine{margin-left:auto;background:#dff2e6}.chat-message small{display:block;color:#52665c;font-size:.75rem;margin-bottom:5px}#messages{max-height:480px;overflow:auto;margin:20px 0}.chat-layout [hidden]{display:none}.chat-layout button:disabled{opacity:.65;cursor:wait}@media(max-width:720px){.chat-layout{grid-template-columns:1fr}.chat-message{max-width:90%}#threads{max-height:240px;overflow:auto}}
#chat-status:empty,#chat-note:empty,.back{display:none}
.chat-head{display:flex;justify-content:space-between;align-items:center}
#job-link{margin-left:auto}.preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:.35rem}
.thread{font:inherit}.thread.unread{font-weight:700}.thread.unread::before{content:'●';color:#188354;margin-right:.4rem}
#chat-form:not([hidden]){display:flex;align-items:center;gap:8px}
#chat-form textarea{min-width:0;min-height:44px;margin:0;font-size:16px}
@media(max-width:720px){
 .back{display:inline-block}body:not(.in-chat) #conversation,.in-chat aside,.in-chat .inbox-heading,.in-chat footer{display:none}
 .in-chat .dashboard{margin:0;padding:8px;width:100%;box-sizing:border-box}
 .in-chat #conversation{display:flex;flex-direction:column;height:calc(100dvh - 90px);box-sizing:border-box;padding:14px}
 .in-chat #messages{flex:1;min-height:0;max-height:none;overflow-y:auto}
 #threads{max-height:none}.in-chat #chat-form{padding-bottom:env(safe-area-inset-bottom)}
}
@media(max-width:720px){.in-chat #conversation{height:var(--chat-height,calc(100dvh - 90px))}.in-chat .pb-topbar{margin-bottom:0}}

#chat-form textarea{flex:1 1 0;width:auto}
#chat-form #send{flex:0 0 auto;white-space:nowrap;min-width:5rem}
