.mbd-dialog{border:0;padding:0;border-radius:16px;width:min(1080px,96vw);height:min(780px,91dvh);max-width:none;max-height:93dvh;color:#1b2820;background:#fff;box-shadow:0 20px 65px #0005;overflow:hidden}
.mbd-dialog::backdrop{background:rgba(7,19,15,.54)}
.mbd-shell{height:100%;min-height:0;display:flex;flex-direction:column}
.mbd-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce8e1}
.mbd-head h2{font-size:21px;margin:0 0 5px}
.mbd-head p{font-size:13px;color:#52665e;margin:0}
.mbd-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(210px,32%) minmax(0,1fr)}
.mbd-sidebar{padding:16px;display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #dce8e1;background:#f8faf9}
.mbd-sidebar label{font-size:13px;font-weight:650;display:grid;gap:6px;margin-bottom:12px}
.mbd-sidebar input{min-width:0;min-height:43px;padding:10px 12px;background:white;border:1px solid #b6cabf;border-radius:10px;color:#12281f}
.mbd-list{min-height:0;overflow-y:auto;display:grid;align-content:start;gap:6px;overscroll-behavior:contain}
.mbd-conversation{background:#fff;text-align:left;border:1px solid #d5e5db;color:#15281e;border-radius:10px;padding:12px;display:grid;gap:5px;min-width:0;cursor:pointer}
.mbd-conversation.active{border-color:#22704e;background:#e8f4ed}
.mbd-conversation strong,.mbd-conversation span{overflow-wrap:anywhere}
.mbd-conversation strong{font-size:14px}
.mbd-conversation span{font-size:12px;color:#56675f}
.mbd-conversation small{color:#67776e}
.mbd-conversation b{color:#155c37;font-size:11px}
.mbd-content{display:flex;flex-direction:column;min-height:0;min-width:0}
.mbd-empty{margin:auto;color:#576961;text-align:center;padding:24px}
.mbd-thread-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid #dce8e1}
.mbd-thread-head strong{font-size:16px}
.mbd-thread-head small{display:block;font-size:12px;color:#647469;margin-top:4px}
.mbd-back{display:none}
.mbd-messages{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#fbfdfb}
.mbd-bubble{max-width:min(82%,580px);align-self:flex-start;background:#e8f4ed;border:1px solid #d3e6db;padding:10px 12px;border-radius:14px;overflow-wrap:anywhere}
.mbd-bubble.mine{align-self:flex-end;background:#f0f1fa;border-color:#dedff2}
.mbd-bubble p{font-size:14px;white-space:pre-wrap;margin:5px 0}
.mbd-bubble small{font-size:11px;color:#597065}
.mbd-bubble img{max-width:260px;max-height:200px;object-fit:contain;border-radius:8px}
.mbd-bubble audio{display:block;max-width:100%;width:280px;margin-top:5px}
.mbd-bubble a{word-break:break-all}
.mbd-compose{border-top:1px solid #dce8e1;padding:10px 18px;display:grid;gap:8px}
.mbd-compose label{font-size:12px;font-weight:700}
.mbd-compose textarea{width:100%;min-height:60px;max-height:140px;resize:vertical;border:1px solid #b6cabf;border-radius:10px;padding:10px;font:inherit;color:#15271d;background:white}
.mbd-attachments{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.mbd-attachments span{overflow-wrap:anywhere}
.mbd-compose button[type=submit]{justify-self:end;min-width:120px}
.mbd-status{margin:0;padding:8px 18px;min-height:32px;font-size:13px;color:#435e50;border-top:1px solid #edf3ee}
.mbd-muted{font-size:13px;color:#667b70}
@media(max-width:720px){
 .mbd-dialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0}
 .mbd-head{padding:12px 14px}.mbd-head h2{font-size:18px}
 .mbd-body{display:block;position:relative;overflow:hidden}
 .mbd-sidebar,.mbd-content{height:100%;width:100%;position:absolute;inset:0}
 .mbd-dialog[data-mobile-thread="1"] .mbd-sidebar{display:none}
 .mbd-dialog:not([data-mobile-thread="1"]) .mbd-content{display:none}
 .mbd-back{display:inline-flex}
 .mbd-thread-head{padding:10px 12px}
 .mbd-messages{padding:12px}
 .mbd-compose{padding:10px 12px}
 .mbd-bubble{max-width:94%}
}
