/* Spam pane only: preserve the existing ACE REPORT theme and other lanes. */
#botSpamPane{display:grid;gap:20px;min-width:0}
#botSpamPane[hidden],#botSpamPane [hidden]{display:none!important}
#botSpamPane .panel-card{min-width:0;margin:0}
#botSpamPane .section-head{gap:16px;align-items:flex-start;flex-wrap:wrap}
#botSpamPane .section-head p{line-height:1.65}
#botSpamPane label:not(.outdated-check):not(.bot-select-all){display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:700;color:#365574}
#botSpamPane .outdated-form{display:flex;flex-direction:column;gap:16px}
#botSpamPane .outdated-form-grid{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
#botSpamPane .outdated-form-grid>label{flex:1 1 220px}
#botSpamPane .spam-source-action{display:flex;flex:1 1 280px;flex-direction:column;align-items:flex-start;gap:7px}
#botSpamPane .spam-source-action .helper{margin:0;font-weight:400}
#botSpamPane input:not([type=checkbox]),#botSpamPane select,#botSpamPane textarea{width:100%;min-width:0;box-sizing:border-box;font-family:inherit}
#botSpamPane textarea{resize:vertical;line-height:1.65}
#botSpamPane input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px;padding:0;flex:none;margin:2px 0 0;accent-color:#a1854c;cursor:pointer}
#botSpamPane .outdated-check,#botSpamPane .bot-select-all{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;font-size:12px;font-weight:400;line-height:1.65;color:#365574;cursor:pointer}
#botSpamPane #spamIssues{display:flex;flex-wrap:wrap;gap:12px 20px;border:1px solid #dfe6ef;border-radius:12px;padding:16px;margin:0;min-width:0;background:#f8fafc}
#botSpamPane #spamIssues legend{padding:0 7px;font-size:12px;font-weight:700;color:#365574}
#botSpamPane #spamIssues .outdated-check{flex:1 1 calc(50% - 20px);min-width:220px}
#botSpamPane .helper{margin:0;font-size:12px;line-height:1.65;color:#698099}
#botSpamPane .spam-run-hint,#botSpamPane .outdated-panel-notice{padding:12px 15px;border:1px solid #d0deef;background:#f0f6fd;border-radius:10px;color:#365574;font-size:12px;line-height:1.7;margin:0 0 16px;overflow-wrap:anywhere}
#botSpamPane .outdated-panel-notice{margin:16px 0 0}
#botSpamPane #spamPhaseBadge{white-space:normal;text-align:center;flex:none;max-width:230px}
#botSpamPane .spam-store-settings{border:1px solid #dfe6ef;border-radius:12px;padding:13px 16px;background:#fff}
#botSpamPane .spam-store-settings summary{font-size:12px;font-weight:700;color:#365574;cursor:pointer;line-height:1.7}
#botSpamPane .spam-store-row{display:flex;flex-wrap:wrap;gap:12px 16px;padding:16px 0;border-top:1px solid #e9eef5}
#botSpamPane .spam-store-row:first-child{margin-top:12px}
#botSpamPane .spam-store-row>strong{flex-basis:100%;font-size:13px;color:#274f76}
#botSpamPane .spam-store-row>label:first-of-type{flex:1 1 190px}
#botSpamPane .spam-store-row>label:last-child{flex:2 1 280px}
#botSpamPane .outdated-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0}
#botSpamPane #spamPreviewBox{display:flex;flex-direction:column;gap:16px;min-width:0;border-top:1px solid #e2e8f0;padding-top:18px}
#botSpamPane #spamPreviewCount{font-size:13px;color:#274f76;flex:1 1 220px;line-height:1.7}
#botSpamPane #spamEnqueue{align-self:flex-start}
#botSpamPane .outdated-history-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 16px}
#botSpamPane .outdated-history-filters>label{flex:1 1 200px}
#botSpamPane .outdated-history-filters>.btn{flex:0 0 auto}
#botSpamPane .bot-selection-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 14px;border:1px solid #ded9c9;border-radius:10px;background:#f7f8fb;margin:0 0 12px}
#botSpamPane #spamSelectedCount{font-size:12px;font-weight:700;color:#365574;margin-right:auto}
#botSpamPane #spamConfirmNotSent{margin-top:2px}
#botSpamPane .outdated-actions+.outdated-check{margin:14px 0 8px}
#botSpamPane .outdated-table-wrap{overflow:auto;max-height:430px;border:1px solid #e0e7f0;border-radius:11px;min-width:0}
#botSpamPane .panel-card>.outdated-table-wrap{margin-top:16px}
#botSpamPane table{width:100%;border-collapse:collapse;table-layout:auto;font-size:12px}
#botSpamPane th{padding:12px;text-align:left;background:#f5f8fc;color:#657b94;font-size:11px;position:sticky;top:0;z-index:1;white-space:nowrap}
#botSpamPane td{padding:12px;border-top:1px solid #e9eef5;vertical-align:top;line-height:1.7;overflow-wrap:anywhere}
#botSpamPane th:first-child,#botSpamPane td:first-child{width:38px;min-width:38px;text-align:center;padding:12px 8px}
#botSpamPane td[colspan]{padding:28px 18px;text-align:center;color:#698099}
#botSpamPane td small{display:block;margin-top:5px;color:#71869b;font-size:11px;line-height:1.65}
#botSpamPane .outdated-url{display:block;overflow-wrap:anywhere;color:#274f76;min-width:180px;max-width:580px;line-height:1.8}
#botSpamPane .spam-state{display:inline-block;padding:4px 8px;border-radius:6px;background:#edf2f8;color:#536d8a;white-space:nowrap;font-size:11px}
#botSpamPane .spam-state-SENT{background:#e8f7f0;color:#168053}
#botSpamPane .spam-state-NEEDS_USER,#botSpamPane .spam-state-UNCERTAIN{background:#fff7e7;color:#97752a}
#botSpamPane .spam-state-FAILED{background:#fff0ee;color:#b55445}
#botSpamPane .spam-pagination{justify-content:flex-end;margin-top:16px;gap:14px}
#botSpamPane #spamPage{font-size:12px;color:#708299;line-height:1.7;text-align:center}
@media(max-width:580px){
  #botSpamPane .outdated-form-grid>label,#botSpamPane .spam-source-action{flex-basis:100%}
  #botSpamPane #spamIssues .outdated-check{flex-basis:100%;min-width:0}
  #botSpamPane .outdated-actions .btn{flex:1 1 auto}
  #botSpamPane .outdated-history-filters>label{flex-basis:100%}
  #botSpamPane .outdated-history-filters>.btn{width:100%}
  #botSpamPane .spam-store-row>label{flex-basis:100%!important}
  #botSpamPane #spamEnqueue{width:100%}
  #botSpamPane .spam-pagination{justify-content:center}
}
