.wa-header,.wa-title,.wa-status,.wa-conversation-head,.wa-message-meta,.wa-compose,.wa-file-row,.wa-attachment{display:flex;align-items:center;gap:12px}
.wa-header{justify-content:space-between;margin:12px 0 18px;flex-wrap:wrap}.wa-title svg{width:46px;height:46px;fill:none;stroke:#14745c;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.wa-title h2{font-size:27px;margin:2px 0}.wa-title p{margin:2px 0;color:var(--muted)}
.wa-status{background:#eaf6f0;border:1px solid #c9e6d8;color:#275d48;border-radius:12px;padding:12px 16px;margin-bottom:20px;font-size:13px;flex-wrap:wrap}.wa-status-dot{width:8px;height:8px;background:#578c78;border-radius:50%;flex:none}
.wa-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}.wa-conversation{overflow:hidden;min-width:0}.wa-conversation-head{padding:19px 22px;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid var(--line,#dbe4e8)}.wa-conversation-head h3,.wa-aside h3{margin:0}.wa-conversation-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.wa-conversation-head input{max-width:100%;width:245px;padding:10px;border:1px solid #cbd8d1;border-radius:8px;font:inherit;font-size:13px}
.wa-messages{background:#f1f6f3;padding:22px;display:flex;flex-direction:column;gap:16px;max-height:720px;overflow-y:auto}.wa-message{background:#fff;border:1px solid #d9e5dd;border-radius:4px 15px 15px;padding:14px 16px;max-width:91%;width:fit-content;min-width:min(330px,100%);box-shadow:0 2px 4px #23432a05}.wa-message[hidden]{display:none}.wa-message.wa-out{align-self:flex-end;background:#e0f1e5;border-radius:15px 4px 15px 15px}.wa-message-meta{justify-content:space-between;flex-wrap:wrap;font-size:11px;color:#5d7065;gap:5px 12px}.wa-message-meta strong{font-size:12px;color:#225e45}.wa-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:9px 0 14px}.wa-message-details{font-size:12px;margin-top:10px;color:#456253;border-top:1px solid #dbe9e0;padding-top:9px}.wa-message-details summary,.wa-transcript summary{cursor:pointer}.wa-message-details p{overflow-wrap:anywhere}.wa-message-details .button{font-size:11px;padding:7px 9px}.wa-targeted{outline:3px solid #419f75;outline-offset:3px}
.wa-attachment{justify-content:space-between;border:1px solid #d5e1d9;background:#f9fcfa;padding:11px;border-radius:9px;margin:10px 0;min-width:0}.wa-attachment>span{min-width:0;overflow-wrap:anywhere}.wa-attachment strong,.wa-file-row strong{font-size:13px}.wa-attachment small,.wa-file-row small{display:block;color:#63766b;font-size:11px;margin-top:4px}.wa-attachment button{flex:none;font-size:12px}.wa-transcript{padding:8px 0;color:#476c58;font-size:12px}.wa-transcript p{white-space:pre-wrap}.wa-compose{padding:18px 22px;border-top:1px solid #d8e5db;justify-content:space-between;background:#fff}.wa-compose div{min-width:0}.wa-compose strong{font-size:13px}.wa-compose p{font-size:12px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.wa-compose button{flex:none}.wa-empty{text-align:center;padding:42px 18px;color:#527362}.wa-empty h3{color:#153e2b}.wa-empty p{max-width:360px;margin:12px auto;line-height:1.6;font-size:14px}.wa-empty-icon svg{width:64px;height:64px;fill:none;stroke:#3d8d66;stroke-width:1.3}.wa-aside .text-button{display:block;margin-top:13px}.wa-aside .button{margin:6px 0;font-size:12px}.wa-aside p{line-height:1.6;font-size:13px}
.wa-file-row{justify-content:space-between;align-items:flex-start;padding:14px 0;border-bottom:1px solid #e4ebe7;flex-wrap:wrap}.wa-file-row:last-child{border-bottom:0}.wa-file-row>div:first-child{flex:1;min-width:200px;overflow-wrap:anywhere}.wa-file-row .button{font-size:12px}.wa-documents .card-head,.wa-accounts .card-head{flex-wrap:wrap;gap:12px}.wa-documents .card-head p,.wa-accounts .card-head p{font-size:12px;color:var(--muted);margin:5px 0}.wa-preview{padding:18px;background:#f5f8f6;border-radius:10px}.wa-preview audio,.wa-preview video,.wa-preview img{width:100%;max-height:60vh;object-fit:contain}.wa-preview iframe{width:100%;height:65vh;border:0}.wa-preview pre{white-space:pre-wrap;overflow-wrap:anywhere}.wa-import-preview{max-height:300px;overflow:auto;background:#f3f7f4;padding:15px;white-space:pre-wrap;overflow-wrap:anywhere}.wa-import-preview small{display:block;color:#63766b}.wa-preview+.card-body .inline-note{overflow-wrap:anywhere}
/* Keep summary cards readable in both orientations, including the narrow
   content area beside the tablet navigation. Never shrink them in a flex row. */
.wa-aside{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;align-items:start}
.wa-aside>.card{min-width:0}
@media(max-width:1100px){
  .wa-layout{grid-template-columns:minmax(0,1fr)}
  .wa-aside{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
  .wa-aside .card-body,.wa-aside .card-head{padding:16px}
}
@media(max-width:650px){.wa-header{margin-top:4px}.wa-header .toolbar{width:100%;gap:6px}.wa-header .button{font-size:11px;padding:9px}.wa-status{gap:6px 10px;padding:11px 13px}.wa-status>span:last-child{width:100%;line-height:1.5}.wa-title h2{font-size:23px}.wa-title p{font-size:12px}.wa-messages{padding:13px 10px;max-height:65vh;gap:13px}.wa-message{max-width:96%;padding:12px;min-width:0}.wa-message-meta{font-size:10px}.wa-message-text{font-size:13px}.wa-conversation-head{padding:15px}.wa-conversation-head input{width:100%}.wa-compose{padding:14px;flex-wrap:wrap}.wa-aside{grid-template-columns:minmax(0,1fr)}.wa-file-row>div:first-child{min-width:0;flex-basis:100%}.wa-attachment{gap:7px;padding:9px}.wa-attachment strong{font-size:12px}.wa-message-details .toolbar{gap:5px}.wa-preview{padding:8px}}
.wa-pdf-readonly .pdf-mode-controls,.wa-pdf-readonly [data-pdf="export"],.wa-pdf-readonly .pdf-storage-note,.wa-pdf-readonly .pdf-pen-check{display:none}
