#sms-send label{display:flex;flex-direction:column;gap:8px;font-weight:600}
#sms-send .sb-fields{display:flex;align-items:end;flex-wrap:wrap;gap:18px;margin:16px 0}
#sms-send .sb-fields label{flex:1 1 320px}
#sms-send select,#sms-send textarea{width:100%;box-sizing:border-box;max-width:none}
#sms-send textarea{resize:vertical;min-height:130px;line-height:1.65}
#sms-send .sb-selection{padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
#sms-send [data-sb-confirm]{margin-top:20px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
#sms-send [data-sb-confirm][hidden]{display:none}
#sms-send .sb-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
#sms-send .sb-bubble{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0}
#sms-send [data-sb-status]:not(:empty){margin-top:15px;line-height:1.6}
#sms-send .sb-table{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:10px;margin-top:10px}
#sms-send .sb-table table{width:100%;margin:0}#sms-send td{overflow-wrap:anywhere}
#sms-send .sb-history{border-top:1px solid var(--line);margin-top:26px;padding-top:18px}
#sms-send .sb-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
@media(max-width:640px){#sms-send .sb-selection{width:100%}#sms-send [data-sb-confirm]{padding:12px}#sms-send [data-sb-preview],#sms-send [data-sb-send]{width:100%}}

#sms-send .sb-report{border:1px solid var(--line);border-radius:14px;padding:20px;margin-top:22px;scroll-margin-top:25px}
#sms-send .sb-report[hidden]{display:none}
#sms-send .sb-report-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
#sms-send .sb-count{padding:15px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}
#sms-send .sb-count strong{display:block;font-size:26px;margin-bottom:4px}
#sms-send .sb-count span{font-size:13px}
#sms-send .sb-delivery{display:inline-block;padding:5px 9px;border-radius:20px;white-space:nowrap;font-size:12px;font-weight:600}
#sms-send .sb-delivery.delivered{background:#d7f4e5;color:#135b3b}
#sms-send .sb-delivery.failed{background:#ffe3e3;color:#912b2b}
#sms-send .sb-delivery.waiting{background:#fff0c5;color:#755100}
#sms-send .sb-delivery.unknown{background:#e7ebf3;color:#3f4a65}
#sms-send .sb-report-tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
#sms-send .sb-report-tools label{flex:1 1 180px}
#sms-send .sb-report-tools input{width:100%;box-sizing:border-box}
#sms-send .sb-report .sb-table{max-height:480px}
@media(max-width:640px){#sms-send .sb-report{padding:12px}#sms-send .sb-report-counts{grid-template-columns:repeat(2,minmax(0,1fr))}#sms-send .sb-report-tools button{width:100%}}

#sms-send .sb-retry-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
#sms-send [data-retry-confirm]{border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--bg)}
#sms-send [data-retry-confirm][hidden]{display:none}
#sms-send [data-retry-confirm]>p{max-height:240px;overflow:auto}
#sms-send [data-retry-phone]{width:18px;height:18px;accent-color:var(--primary,#147f78)}
@media(max-width:640px){#sms-send .sb-retry-tools .btn,#sms-send [data-retry-send]{width:100%}}
