.field textarea{width:100%;border:1px solid #d4ded6;border-radius:8px;padding:12px;font:inherit;font-weight:400;resize:vertical;min-height:100px;color:var(--ink)}
.crm-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}.crm-tabs .btn{min-width:100px}
.crm-check{display:flex;align-items:flex-start;gap:10px;padding:10px 0;font-size:.875rem}.crm-check input{width:18px;height:18px;flex:none;margin-top:2px}.crm-check small{display:block;color:var(--muted);margin-top:4px}
.crm-recipients{border:1px solid var(--border);border-radius:9px;padding:15px;max-height:300px;overflow:auto}.crm-recipients legend{padding:0 6px;font-weight:600;font-size:.875rem}
.crm-section{margin-top:30px;border-top:1px solid var(--border);padding-top:22px}.crm-section h3{margin:20px 0 12px}.crm-section h3 .small{font-weight:400;margin-left:10px}
.crm-timeline{list-style:none;padding:0;margin:16px 0}.crm-timeline li{display:grid;grid-template-columns:140px 1fr;gap:16px;padding:0 0 22px 18px;border-left:2px solid #d5e5d8;position:relative}.crm-timeline li:before{content:'';width:8px;height:8px;border-radius:50%;background:#2a7455;position:absolute;left:-5px;top:5px}.crm-timeline time{font-size:.75rem;color:var(--muted)}.crm-timeline strong{font-size:.875rem}.crm-timeline p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8125rem;color:var(--muted);margin:5px 0}
.crm-message-preview{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;border:1px solid #cfe1d1;background:#eff8ee;border-radius:12px;margin:18px 0;line-height:1.7}.crm-pre{white-space:pre-wrap}.padded h3{margin:20px 0 10px}.padded p+p{margin-top:12px}.crm-section td .btn+ .btn{margin-left:6px}
@media(max-width:640px){.crm-timeline li{grid-template-columns:1fr;gap:6px}.crm-tabs{gap:7px}.crm-tabs .btn{min-width:0;flex:1;font-size:.8125rem;padding:10px}.crm-recipients{padding:10px}.crm-message-preview{padding:15px}.crm-section .detail-actions{justify-content:flex-start}}
@media print{.crm-tabs,.crm-section .detail-actions{display:none}.crm-timeline li{break-inside:avoid}}

.crm-section h3{scroll-margin-top:110px}.crm-message-cards{display:none}.crm-message-cards article{padding:20px;border-top:1px solid var(--border)}.crm-message-cards article>div{display:flex;flex-direction:column;gap:5px}.crm-message-cards article p{margin:14px 0;overflow-wrap:anywhere;font-size:.875rem}.crm-message-cards footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.crm-message-table table{min-width:750px}
@media(max-width:640px){.crm-message-table{display:none}.crm-message-cards{display:block}}
