.history-clear-bar{display:flex;justify-content:flex-end;margin:0 0 12px}
.history-clear-bar[hidden]{display:none}
.main-content button.history-clear-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:9px 14px;border:1px solid #dfbfbc;border-radius:9px;background:#fbefed;color:#913d38;font:inherit;font-size:13px;font-weight:600;line-height:1.35;white-space:normal;cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s}
.main-content button.history-clear-button:hover{background:#f5dfdc;border-color:#c99892;color:#7c302c}
.main-content button.history-clear-button:focus-visible{outline:3px solid #b96f6880;outline-offset:3px}
.history-clear-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dce5ef;border-radius:18px;padding:26px;color:#18324b;background:#fff;box-shadow:0 20px 80px #09213d38}
.history-clear-dialog::backdrop{background:#10263d99}
.history-clear-dialog h2{margin:0 0 12px;font-size:22px}
.history-clear-dialog p{line-height:1.55;margin:12px 0}
.history-clear-dialog label{display:grid;gap:8px;font-weight:600}
.history-clear-dialog select{width:100%;min-height:44px;border:1px solid #a6b8cc;border-radius:8px;padding:8px;background:white;color:#18324b}
.history-clear-note{background:#fff7e6;border-left:3px solid #e4a02b;padding:10px 14px;font-size:14px}
.history-clear-retention{font-size:13px;color:#4d6073}
.history-clear-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.history-clear-counts>div{padding:12px 14px;border:1px solid #b6d9ce;border-radius:10px;background:#f0faf6}
.history-clear-counts>div+div{background:#fff8eb;border-color:#ebd3a4}
.history-clear-counts dt{font-size:13px;line-height:1.4;color:#334b5d}
.history-clear-counts dd{margin:6px 0 0;font-size:26px;font-weight:750;line-height:1.15;color:#18324b}
.history-clear-empty{font-size:13px;color:#57677b}
@media(max-width:420px){.history-clear-counts{grid-template-columns:1fr}.history-clear-dialog{padding:18px}}
.history-clear-status{font-weight:600;min-height:24px;overflow-wrap:anywhere}
.history-clear-dialog progress{width:100%;height:12px;accent-color:#1689ee}
.history-clear-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
.history-clear-dialog button{min-height:44px}
.history-clear-dialog .primary-button{background:#0969bd;color:#fff;border:1px solid #0969bd;border-radius:9px;padding:10px 16px;cursor:pointer}
.history-clear-dialog button:disabled{opacity:.55;cursor:not-allowed}
.history-clear-dialog .history-force-option{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #e9b4af;border-radius:10px;background:#fff6f5;color:#8f2119;font-size:14px;line-height:1.5}
.history-clear-dialog .history-force-option input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:2px 0 0;accent-color:#b42318;cursor:pointer}
.history-clear-dialog [data-history-confirm]{background:#b42318;color:#fff;border-color:#b42318}
.history-clear-dialog [data-history-confirm]:hover:not(:disabled){background:#8f1c13}
.history-clear-dialog [hidden]{display:none!important}
.sms-pending-note,.sms-pending-feedback{margin:12px 20px;font-size:14px;line-height:1.5}
.sms-pending-note{color:#57677b}
.sms-pending-feedback:empty{display:none}
.sms-pending-feedback{color:#176a40}
.data-panel .sms-pending-remove{background:#b42318!important;color:#fff!important;border:1px solid #b42318;border-radius:7px;padding:8px 12px;min-height:38px;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
.data-panel .sms-pending-remove:hover{background:#8f1c13!important}
.data-panel .sms-pending-remove:disabled{opacity:.6;cursor:not-allowed}
.data-panel .sms-pending-remove[aria-busy="true"]{cursor:wait}
.sms-pending-remove[aria-busy="true"]::before{content:"";display:inline-block;width:10px;height:10px;border:2px solid #ffffff70;border-top-color:white;border-radius:50%;margin-right:6px;animation:sms-remove-spin .7s linear infinite}
.sms-pending-row-feedback{display:block;max-width:210px;min-width:85px;font-size:12px;line-height:1.4;color:#9d241c;margin-top:4px}
[data-sms-pending-panel] th:last-child,[data-sms-pending-panel] tr[data-status] td:last-child{position:sticky;right:0;background:#fff;z-index:1;box-shadow:-4px 0 8px #10243a0c}
@keyframes sms-remove-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sms-pending-remove[aria-busy="true"]::before{animation:none}}
