.mtpr-v259-history,.mtpr-v259-compose{margin:20px 0;padding:20px;border:1px solid #d6e3f0;border-radius:12px;background:#fff;max-width:100%;box-sizing:border-box}.mtpr-v259-history h3,.mtpr-v259-compose h3{margin:0 0 8px;color:#0a2d51}.mtpr-v259-help{color:#63788d;font-size:13px}.mtpr-v259-message{padding:14px 16px;margin:12px 0;border:1px solid #d7e5f4;border-left:4px solid #1784d4;border-radius:10px;background:#f4f9ff}.mtpr-v259-client{background:#f7fafc;border-left-color:#8b9cac}.mtpr-v259-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#2c5477;font-size:13px}.mtpr-v259-meta time{color:#65798d}.mtpr-v259-message p{white-space:normal;margin:8px 0 0;line-height:1.6;overflow-wrap:anywhere}.mtpr-v259-compose textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:8px 0 12px;padding:12px;border:1px solid #c9d9e8;border-radius:8px}.mtpr-v259-compose label{display:block;font-weight:600}.mtpr-v259-compose button{cursor:pointer}@media(max-width:650px){.mtpr-v259-history,.mtpr-v259-compose{padding:14px}.mtpr-v259-meta{display:block}}
/* V2.62 : fil des devis en ordre antéchronologique, trois colonnes responsives.
   La fonction partagée est utilisée par les vues client, atelier et administration WP. */
.mtpr-v259-history .mtpr-v262-thread-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;margin-top:14px}
.mtpr-v259-history .mtpr-v262-thread-grid .mtpr-v259-message{margin:0;min-width:0;box-sizing:border-box;height:100%;display:flex;flex-direction:column}
.mtpr-v259-history .mtpr-v262-thread-grid .mtpr-v259-meta{gap:5px;align-items:flex-start}
.mtpr-v259-history .mtpr-v262-thread-grid .mtpr-v259-message p{flex:1;overflow-wrap:anywhere}
@media(max-width:1150px){.mtpr-v259-history .mtpr-v262-thread-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.mtpr-v259-history .mtpr-v262-thread-grid{grid-template-columns:minmax(0,1fr)}}

/* V2.63 : conversation toujours verticale, dernière réponse en premier. */
.mtpr-v259-history .mtpr-v262-thread-grid{display:flex!important;flex-direction:column!important;gap:10px!important}
.mtpr-v259-history .mtpr-v262-thread-grid .mtpr-v259-message{width:100%;height:auto!important;min-width:0;margin:0!important}
