.tf-wrap{max-width:1600px;margin:20px 25px 30px 0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Microsoft YaHei",sans-serif;color:#182332}.tf-wrap *{box-sizing:border-box}.tf-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}.tf-top h1{font-size:30px;font-weight:750;line-height:1.3;padding:0;margin:8px 0}.tf-top p{font-size:14px;color:#627184;margin:0}.tf-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#477e2f}.tf-lock{display:inline-flex;flex-shrink:0;background:#e7efeb;border:1px solid #d3e5d7;color:#3c6951;border-radius:25px;padding:9px 14px;font-size:12px;font-weight:600}.tf-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dce3e8;padding-bottom:14px;margin-bottom:22px}.tf-tabs a{text-decoration:none;color:#546174;font-weight:600;font-size:13px;padding:9px 13px;border-radius:8px}.tf-tabs a:hover{background:#e5ece9}.tf-tabs a.tf-active{color:#125438;background:#dff0e4}.tf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.tf-stat{border:1px solid #dce5e8;border-radius:15px;padding:23px;background:#fff;box-shadow:0 2px 8px rgba(24,46,33,.03)}.tf-stat span{display:block;color:#5e7083;font-size:13px;font-weight:600}.tf-stat strong{display:block;font-size:32px;letter-spacing:-1px;padding-top:9px;color:#192e24}.tf-grid2{display:grid;grid-template-columns:1fr 1.3fr;gap:18px;align-items:start}.tf-panel{background:#fff;border:1px solid #dee5e9;border-radius:16px;padding:22px 23px;margin-bottom:18px;box-shadow:0 2px 11px rgba(24,46,33,.035)}.tf-panel h2{font-size:18px;margin:0 0 17px;color:#1c2e2a;font-weight:750}.tf-panel h3{font-size:14px;margin:19px 0 10px}.tf-panel p{font-size:13px;line-height:1.65}.tf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px}.tf-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#526277}.tf-field input,.tf-field select,.tf-field textarea{width:100%;max-width:none;margin:0;padding:9px 11px;min-height:40px;border:1px solid #d6dee6;border-radius:8px;background:#fff;color:#1c293a;font-size:13px;box-shadow:none}.tf-field textarea{line-height:1.55}.tf-wide{grid-column:1/-1}.tf-check{display:flex;align-items:center;gap:8px;color:#344a5d;font-size:13px}.tf-submit{margin-top:17px!important;padding:3px 20px!important;min-height:39px!important;background:#166c46!important;border-color:#166c46!important;border-radius:9px!important;font-weight:650!important}.tf-submit:hover{background:#0b4f32!important}.tf-table-scroll{overflow-x:auto}.tf-table{border:0!important}.tf-table th{font-weight:700;font-size:12px;color:#627084;padding:11px 9px;background:#f5f8fa}.tf-table td{vertical-align:top;font-size:12px;line-height:1.5;padding:12px 9px}.tf-table small{display:block;margin-top:3px;color:#78889a;line-height:1.55;max-width:260px;overflow-wrap:anywhere}.tf-table b,.tf-table strong{font-weight:700}.tf-table details{margin-top:5px}.tf-table summary{cursor:pointer;color:#1c6b4b}.tf-muted{color:#7b8795!important;font-size:12px!important}.tf-red{color:#ac3d4b}.tf-steps{margin:0 0 0 18px;font-size:13px;color:#384d60;line-height:2}.tf-list>div{padding:10px 0;border-bottom:1px solid #e6ecef}.tf-list strong,.tf-list small{display:block}.tf-list small{color:#718192;font-size:12px;margin-top:5px}.tf-contact-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:300px;overflow-y:auto;border:1px solid #e2e8ed;border-radius:10px;padding:12px}.tf-pick{display:flex;gap:8px;align-items:flex-start;border:1px solid #e5ebf0;padding:9px;border-radius:7px;font-size:12px}.tf-pick input{margin:3px 0 0}.tf-pick small{display:block;color:#6d7c89;line-height:1.5;overflow-wrap:anywhere}.tf-inline{display:inline-block;margin:0 5px 5px 0}.tf-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:170px}.tf-actions .button{font-size:11px}.tf-message{font-size:12px;background:#f1f6f7;white-space:pre-wrap;max-width:320px;padding:9px;overflow-wrap:anywhere;max-height:200px;overflow:auto}.tf-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}@media(max-width:1200px){.tf-grid2{grid-template-columns:1fr}.tf-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-contact-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:750px){.tf-top{align-items:start;flex-direction:column}.tf-form-grid,.tf-contact-picker{grid-template-columns:1fr}.tf-wrap{margin-right:10px}.tf-panel{padding:15px}.tf-stat{padding:15px}}
/* TradeFlow AI enrichment */
.tf-ai-table {min-width:1150px}
.tf-ai-table th,.tf-ai-table td {vertical-align:top!important; min-width:100px; font-size:12px; line-height:1.55; max-width:300px; overflow-wrap:anywhere}
.tf-ai-table td:first-child {min-width:185px}
.tf-ai-table td a {display:inline-block;margin:2px 3px 2px 0}
.tf-ai-table .tf-muted {opacity:.72}
.tf-ai-controls {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:10px 0}
.tf-ai-small-form {margin:7px 0!important}
.tf-error {color:#a12323;font-size:12px}

/* TradeFlow AI research batch deletion, 1.2.2 */
.tf-ai-batch-list{display:flex;flex-wrap:wrap;gap:8px 12px;margin:7px 0 15px}
.tf-ai-batch-item{display:inline-flex;align-items:center;gap:9px;background:#f6f8fa;border:1px solid #dfe7e8;border-radius:9px;padding:6px 9px;font-size:12px}
.tf-ai-batch-item a{word-break:break-all}
.tf-ai-batch-delete{margin:0!important;display:inline-flex;align-items:center}
.tf-ai-batch-delete .button{min-height:28px;font-size:12px}
.tf-ai-danger-outline{color:#9c253b!important;border-color:#eab8c1!important;background:#fff!important}
.tf-ai-danger-outline:hover{background:#fff2f4!important}
.tf-ai-clear-all{border:1px dashed #e6c2c7;border-radius:12px;padding:13px 16px;margin:0 0 16px;background:#fffafa}
.tf-ai-clear-all form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0}
.tf-ai-clear-all label{flex:1 1 300px;font-size:12px;line-height:1.65}
.tf-ai-clear-all input{min-height:34px;border-radius:6px;max-width:180px}
.tf-ai-danger{color:#fff!important;background:#a52a40!important;border-color:#a52a40!important}
.tf-ai-danger:hover{background:#852032!important}

/* 1.2.3: standalone AI data cleanup list */
.tf-ai-clean-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.tf-ai-clean-stats>div{padding:17px 20px;background:#fff;border:1px solid #dee5e9;border-radius:13px}
.tf-ai-clean-stats small{display:block;color:#6a7c82;font-size:12px;margin-bottom:7px}
.tf-ai-clean-stats strong{display:block;font-size:23px;color:#203a2b}
.tf-ai-clean-table-wrap{overflow-x:auto;border:1px solid #e5ebef;border-radius:10px}
.tf-ai-clean-table{width:100%;min-width:970px;border-collapse:collapse}
.tf-ai-clean-table th,.tf-ai-clean-table td{white-space:nowrap;padding:12px 10px!important;vertical-align:middle}
.tf-ai-clean-table td a:not(.button){font-weight:650}
.tf-ai-row-delete{display:flex;align-items:center;gap:6px;margin:0}
.tf-ai-bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 0 3px}
.tf-ai-bulk-toolbar>span{font-size:12px;color:#4d685d;font-weight:700;margin-right:auto}
.tf-ai-bulk-toolbar input,.tf-ai-danger-zone input{width:130px;max-width:100%;border-radius:6px;padding:6px 8px}
.tf-ai-bulk-toolbar label{font-size:12px}
.tf-ai-pagination{display:flex;gap:6px;align-items:center;margin-top:12px}
.tf-ai-danger-zone{border-color:#edc8cf;background:#fffafb}
.tf-ai-danger-zone h2{color:#8e253b}
.tf-ai-danger-zone form{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.tf-ai-empty{padding:22px;background:#f6f9f7;border-radius:10px;color:#597668}
@media(max-width:850px){.tf-ai-clean-stats{grid-template-columns:1fr}.tf-ai-bulk-toolbar>span{margin-right:0;width:100%}}

/* 1.2.3: flexible dropdowns for research count and download type */
.tf-ai-select-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:15px 26px;padding:5px 0}
.tf-ai-control-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tf-ai-control-group label{font-size:12px;font-weight:700;color:#465a5e}
.tf-ai-control-group select{height:38px;min-width:144px;max-width:245px;border:1px solid #cfdcd5;border-radius:8px;padding:0 9px;font-size:13px;background:#fff;color:#1d3529}
.tf-ai-control-group .button{min-height:38px;border-radius:8px;font-weight:650;white-space:nowrap}
.tf-ai-control-group .button-primary{background:#176e49!important;border-color:#176e49!important;color:#fff!important}
.tf-ai-status{flex:1 1 100%;font-size:12px;color:#466456;line-height:1.65;min-height:18px}
@media(max-width:620px){.tf-ai-select-controls{gap:12px}.tf-ai-control-group{width:100%}.tf-ai-control-group label{width:100%}.tf-ai-control-group select{flex:1;max-width:100%}}

/* 1.2.5: recoverable CRM data cleanup */
.tf-trash-scope-nav{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 18px}
.tf-trash-scope-nav .button{border-radius:8px;min-height:36px;display:inline-flex;align-items:center}
.tf-trash-categories{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}
.tf-trash-category{display:flex;gap:10px;align-items:center;padding:11px 15px;border:1px solid #dbe6e1;border-radius:10px;background:#fff;color:#32674b;text-decoration:none;font-size:13px;font-weight:650}
.tf-trash-category.tf-current{background:#e5f5ea;border-color:#a3ceac;color:#1b5a3b}
.tf-trash-category small{background:#eef3f1;padding:3px 7px;border-radius:99px;color:#466b59}
.tf-trash-table{min-width:860px}
.tf-trash-table td,.tf-trash-table th{vertical-align:middle!important}
.tf-trash-row-actions{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.tf-trash-mini-label{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:11px}
.tf-trash-mini-label input{width:105px;min-height:28px;border-radius:6px}
.tf-trash-table tr.tf-trash-focus td{background:#f4fcdd!important}
.tf-trash-table .tf-inline{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}


/* TradeFlow 1.2.6 - consolidated, read-only company profile */
.tf-detail-toolbar{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin:-3px 0 18px;font-size:13px;font-weight:650}
.tf-detail-toolbar a,.tf-detail-pager a{color:#1a714d;text-decoration:none}
.tf-detail-hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.tf-detail-hero-head h2{font-size:23px;margin:0 0 3px}
.tf-detail-pills{display:flex;gap:8px;flex-wrap:wrap}
.tf-detail-pills span{background:#ebf4ec;color:#256346;padding:7px 11px;border-radius:100px;font-size:12px;font-weight:700}
.tf-detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px;gap:10px}
.tf-detail-stats>div{border:1px solid #e1eae3;background:#f9fcfa;border-radius:10px;padding:14px;min-width:0}
.tf-detail-stats b{display:block;font-size:22px;color:#153f2f;overflow-wrap:anywhere}
.tf-detail-stats small{font-size:12px;color:#687e71}
.tf-detail-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tf-detail-field{padding:12px 14px;background:#f9fbfa;border:1px solid #ebefec;border-radius:9px;min-width:0}
.tf-detail-field>span{display:block;font-size:11px;color:#6c8178;font-weight:700;margin-bottom:8px}
.tf-detail-field>div{font-size:13px;color:#233c30;font-weight:620;overflow-wrap:anywhere;white-space:pre-wrap}
.tf-detail-notes{margin-top:20px;padding-top:8px;border-top:1px solid #eaf0ec}
.tf-detail-notes h3{font-size:14px}
.tf-detail-pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;max-width:760px;margin:8px 0;color:#425850}
.tf-detail-table{min-width:880px}
.tf-detail-table td{overflow-wrap:anywhere}
.tf-detail-table details{max-width:380px}
.tf-detail-table summary{cursor:pointer;color:#1d704b}
.tf-detail-pager{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:14px 3px 0;font-size:12px}
@media(max-width:1000px){.tf-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:630px){.tf-detail-fields{grid-template-columns:1fr}.tf-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-detail-hero-head{flex-direction:column}}

/* 1.3: paged lists and connector forms */
.tf-list-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:15px 2px;font-size:12px;color:#536c5e}
.tf-list-pager a{padding:6px 12px;border:1px solid #cbded3;border-radius:8px;text-decoration:none;color:#176b49;background:#fff;font-weight:650}
.tf-page-disabled{padding:6px 12px;color:#a0ada6;border:1px solid #e5ece8;border-radius:8px}
.tf-app-nav a{overflow-wrap:anywhere}

/* TradeFlow 1.3.2: source-review library */
.tf-library-select{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.tf-library-select select{min-width:min(380px,100%);min-height:42px}
.tf-library-record,.tf-library-preview{padding:16px 0;border-bottom:1px solid #e1e8e3}
.tf-library-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.tf-library-record .tf-table-scroll{margin:12px 0}
.tf-library-record p{overflow-wrap:anywhere}

/* 1.4.0 — Food-ingredients CRM and spreadsheet audit workspace */
.tf-company-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 15px}
.tf-company-head h2{font-size:19px;margin:0 0 5px;color:#19372a}
.tf-company-head p{margin:0}
.tf-company-head .tf-add-company{background:#153c2d;color:#fff;border:1px solid #153c2d;padding:12px 20px;border-radius:25px;text-decoration:none;font-weight:700;cursor:pointer}
.tf-company-head .tf-add-company:hover{background:#0f5c3f}
.tf-company-editor{border-color:#bedcc7!important;box-shadow:0 10px 28px #1b5c3a12!important}
.tf-company-editor[hidden], [data-tf-profile-panel][hidden]{display:none!important}
.tf-company-list{min-width:0}
.tf-company-list .tf-title-row{margin-bottom:16px}
.tf-company-filter{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:7px 0 18px}
.tf-company-filter input[type="search"]{flex:1 1 290px;min-width:190px;padding:10px 13px;border:1px solid #dce6de;border-radius:10px;background:#fff;color:#182d24;min-height:43px}
.tf-company-filter select{flex:0 1 160px;min-width:110px;border:1px solid #dce6de;border-radius:9px;background:#fff;color:#2d4d39;min-height:43px}
.tf-company-filter a{font-size:12px;text-decoration:none;padding:8px}
.tf-company-table th{white-space:nowrap}
.tf-company-table td{vertical-align:middle!important}
.tf-company-table td:first-child{min-width:200px}
.tf-company-table td:last-child{min-width:100px;text-align:right}
.tf-stage-chip{display:inline-flex;align-items:center;border-radius:20px;padding:4px 10px;background:#edf4ef;color:#32654b;font-weight:650;white-space:nowrap;font-size:11px}
.tf-row-menu{display:inline-block;position:relative;text-align:left;min-width:65px}
.tf-row-menu>summary{list-style:none;cursor:pointer;text-align:center;border:1px solid #d9e4dd;border-radius:22px;padding:7px 13px;color:#234d37;font-weight:900;letter-spacing:3px;background:#fff;user-select:none}
.tf-row-menu>summary::-webkit-details-marker{display:none}
.tf-row-menu[open]>summary,.tf-row-menu>summary:hover{background:#e7f4e9;border-color:#abd5b8}
.tf-row-menu-body{display:flex;flex-direction:column;gap:2px;min-width:160px;text-align:left;background:#fff;border:1px solid #e0e9e2;border-radius:10px;padding:6px;box-shadow:0 6px 18px #133b2812;margin-top:5px}
.tf-row-menu-body a{padding:8px 10px;text-decoration:none!important;border-radius:6px;font-size:12px;white-space:nowrap}
.tf-row-menu-body a:hover{background:#e9f5ec}
.tf-row-menu-body a:last-child{color:#a63744}
.tf-profile-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 18px;border-bottom:1px solid #dcebe1;padding-bottom:12px}
.tf-profile-tab{padding:11px 15px;cursor:pointer;background:#f4f7f5;border:1px solid #e2e9e4;border-radius:10px;color:#476859;font-weight:700;font-size:13px}
.tf-profile-tab:hover{background:#e9f4eb}
.tf-profile-tab.is-active{color:#fff;background:#176c46;border-color:#176c46}
.tf-review-sheet .tf-title-row{align-items:flex-start;margin-bottom:14px}
.tf-review-sheet .tf-title-row p{margin:0 0 8px;max-width:760px}
.tf-pill{font-size:12px;font-weight:700;border-radius:20px;background:#e8f5ed;padding:7px 12px;color:#2e7450;white-space:nowrap}
.tf-review-table{min-width:1200px;table-layout:fixed}
.tf-review-table th:first-child{width:220px;position:sticky;left:0;z-index:2}
.tf-review-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;border-right:1px solid #e4eee7}
.tf-review-table th:nth-child(2){width:180px}
.tf-review-table th:nth-child(3),.tf-review-table th:nth-child(4){width:205px}
.tf-review-table th:nth-child(5){width:245px}
.tf-review-table th:nth-child(6){width:240px}
.tf-review-table td{vertical-align:top}
.tf-review-table input[type="text"],.tf-review-table input:not([type]),.tf-review-table textarea{width:100%;max-width:100%;display:block;min-width:0;margin:0 0 7px;border:1px solid #dbe6df;border-radius:7px;padding:8px;font:inherit;line-height:1.45;color:#253c30;resize:vertical;box-sizing:border-box}
.tf-review-table textarea{min-height:82px}
.tf-review-table input:focus,.tf-review-table textarea:focus{border-color:#4e9870;outline:2px solid #d2ebda}
.tf-review-table small{white-space:normal;word-break:break-word}
.tf-review-table form{margin:8px 0}
.tf-review-table form .button{white-space:normal;line-height:1.4;margin-top:5px}
.tf-review-sources{max-height:84px;overflow:auto;font-size:11px;line-height:1.8}
.tf-review-sources a{display:inline-block;margin-right:6px}
.tf-cell-more{margin-top:12px}
.tf-cell-more summary{font-size:11px;cursor:pointer;color:#167149}
.tf-cell-more label{font-size:11px;color:#647a70;display:block;margin:8px 0}
.tf-review-table .tf-check{font-size:11px;line-height:1.4;gap:4px}
.tf-review-table .tf-review-save{background:#eef7f0;border:1px solid #b8d8c0;color:#166644;font-weight:700}
@media(max-width:780px){.tf-company-head{align-items:flex-start}.tf-company-head h2{font-size:16px}.tf-company-head .tf-add-company{padding:10px 12px;font-size:12px}.tf-company-filter select{flex:1 1 120px}.tf-company-filter input[type="search"]{flex-basis:100%}.tf-profile-tab{padding:9px 10px;font-size:12px}}

/* 1.4.1: company-first audited contact entry */
.tf-contact-intro .tf-title-row{gap:20px;align-items:center}
.tf-contact-intro .tf-title-row>a{white-space:nowrap;display:inline-flex;padding:10px 16px;border:1px solid #b6dbc2;border-radius:9px;font-size:12px;font-weight:700;color:#12693e;text-decoration:none}
.tf-contacts-layout{grid-template-columns:minmax(360px,1.1fr) minmax(380px,1fr)}
.tf-contact-company-first{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:18px;padding:15px;background:#f7faf8;border:1px solid #d9ebdf;border-radius:13px}
.tf-contact-company-first .tf-field{margin:0;max-width:100%}
.tf-company-auto-info{background:#fff;border:1px solid #dde9e0;border-radius:10px;padding:12px 15px;color:#2a4937;font-size:12px;line-height:1.7}
.tf-company-auto-info strong{display:block;font-size:15px;color:#174d34;margin-bottom:6px}
.tf-company-auto-info p{margin:3px 0;overflow-wrap:anywhere}
.tf-company-auto-info p b{font-weight:700}
.tf-candidate-evidence{padding:11px 14px;border-radius:9px;border:1px solid #c5e4d1;background:#eff9f2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px}
.tf-candidate-evidence[hidden]{display:none!important}
.tf-candidate-evidence>a{color:#126a49;text-decoration:underline}
.tf-contact-final-review{display:flex;align-items:flex-start;gap:8px;background:#f3f8f4;border-radius:9px;border:1px solid #e0ecdf;padding:11px;margin:12px 0 16px;line-height:1.6}
@media(max-width:1050px){.tf-contacts-layout{grid-template-columns:1fr}}
@media(max-width:650px){.tf-contact-intro .tf-title-row{flex-direction:column;align-items:flex-start}}

/* 2.1 unified direct-page pagination, responsive for both portal and wp-admin */
.tf-wrap .tf-pager21{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:18px 0 4px;min-height:40px}
.tf-wrap .tf-pager21-count{font-size:12px;color:#648071;margin-right:auto}
.tf-wrap .tf-pager21-btn{min-height:36px;min-width:66px;padding:8px 11px;box-sizing:border-box;text-decoration:none;color:#176b48;border:1px solid #c9ddd0;border-radius:9px;background:#fff;font-size:12px;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.tf-wrap .tf-pager21-btn:hover{background:#edf8ee;border-color:#7ab78d;color:#0f5f40}
.tf-wrap .tf-pager21-btn.is-disabled{color:#abbab0;background:#f8faf9;border-color:#e3ebe5;cursor:not-allowed}
.tf-wrap .tf-pager21-label{display:inline-flex;gap:7px;align-items:center;color:#567764;font-size:12px;font-weight:600}
.tf-wrap select.tf-pager21-select{width:auto;min-width:116px;max-width:170px;min-height:36px;height:36px;padding:0 27px 0 9px;border:1px solid #c9ddd0;border-radius:9px;background:#fff;color:#1d5537;cursor:pointer;font-size:12px}
@media(max-width:680px){.tf-wrap .tf-pager21{justify-content:center}.tf-wrap .tf-pager21-count{flex-basis:100%;text-align:center;margin-right:0}}

.tf-wrap .tf-research-engine{margin-top:18px}
.tf-wrap .tf-engine-choice{display:block;padding:13px 15px;border:1px solid #dce9e0;border-radius:10px;margin:10px 0;line-height:1.5;color:#214c34;background:#fcfefc}
.tf-wrap .tf-engine-choice input{margin-right:7px}
.tf-wrap .tf-engine-choice small{display:block;font-size:12px;color:#718776;margin:5px 0 0 22px}
.tf-wrap .tf-v21-advice{border-color:#d2e7d7;background:#fbfefa}
.tf-wrap .tf-v21-advice p{font-size:13px;line-height:1.75}

.tf-wrap .tf-research-engine form.tf-inline{display:block;width:100%}

/* TradeFlow 2.1.5: compact batch switcher on AI research pages. */
.tf-ai-batch-picker{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:14px 0 18px}
.tf-ai-batch-control{display:flex;flex-direction:column;gap:7px;flex:1 1 320px;max-width:600px;min-width:200px}
.tf-ai-batch-control label{display:flex;gap:6px 12px;align-items:baseline;flex-wrap:wrap;font-size:13px}
.tf-ai-batch-control label .tf-muted{font-size:12px;font-weight:400}
.tf-ai-batch-control select.tf-ai-batch-select{display:block;width:100%;max-width:100%;height:41px;min-height:41px;border:1px solid #d1e1d6;border-radius:9px;padding:7px 12px;background:#fff;color:#173f2c;font-size:13px}
.tf-ai-batch-control select.tf-ai-batch-select:focus{outline:2px solid #95d50c;outline-offset:1px}
.tf-ai-batch-manage{white-space:nowrap;align-self:flex-end}
@media(max-width:620px){.tf-ai-batch-control{flex-basis:100%}.tf-ai-batch-manage{align-self:flex-start}}

/* 2.2.0 research queue and compact results: no horizontal scrolling on laptops. */
.tf-ai-queue-controls{margin:14px 0 18px;padding:14px;border:1px solid #d8e9da;background:#f7faf7;border-radius:12px}
.tf-ai-run-buttons{display:flex;flex-wrap:wrap;gap:8px}
.tf-ai-run-buttons .button{min-height:37px;white-space:normal;height:auto;padding:6px 13px}
.tf-ai-queue-message{margin-top:10px;line-height:1.65;font-size:13px;color:#284a36;font-weight:600;overflow-wrap:anywhere}
.tf-ai-results-title{display:flex;align-items:start;gap:16px;justify-content:space-between;flex-wrap:wrap}
.tf-ai-compact-wrap{width:100%;max-width:100%;overflow:visible}
.tf-ai-compact{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse}
.tf-ai-compact th,.tf-ai-compact td{vertical-align:top!important;overflow-wrap:anywhere;word-break:break-word;min-width:0;padding:12px!important;line-height:1.6}
.tf-ai-compact th:nth-child(1){width:34%}.tf-ai-compact th:nth-child(2){width:23%}.tf-ai-compact th:nth-child(3){width:18%}.tf-ai-compact th:nth-child(4){width:25%}
.tf-ai-company-name{font-weight:700;color:#146643!important;text-decoration:none}.tf-ai-compact-domain{font-size:12px;margin-top:5px;overflow-wrap:anywhere}
.tf-ai-state{display:inline-block;font-size:12px;font-weight:650;color:#37504a}.tf-ai-state-error{color:#b3363f}.tf-ai-state-review{color:#1b704e}
.tf-ai-error-text{font-size:12px;color:#a02a36;max-height:5em;overflow:auto}.tf-ai-hint{color:#6b7a71;font-size:12px;margin-top:6px}.tf-ai-open-detail{white-space:normal!important;height:auto!important;min-height:35px;text-align:center}
@media(max-width:740px){.tf-ai-compact thead{display:none}.tf-ai-compact,.tf-ai-compact tbody,.tf-ai-compact tr,.tf-ai-compact td{display:block;width:100%!important}.tf-ai-compact tr{padding:10px 0;border-bottom:1px solid #dde6e0}.tf-ai-compact td{border:0!important;padding:5px 11px!important}.tf-ai-compact td::before{content:attr(data-label);display:block;color:#667b70;font-size:11px;font-weight:600;margin-bottom:3px}}

/* 2.2.1: real WP-Cron queue telemetry. Figures come from the server status endpoint. */
.tf-ai-live-progress{margin-top:14px;padding:14px 16px;border-radius:10px;border:1px solid #d6e7dc;background:#fff;display:grid;gap:10px;min-width:0}
.tf-ai-progress-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#1c4934;font-size:14px}
.tf-ai-progress-head #tf-ai-run-percent{font-weight:700;font-variant-numeric:tabular-nums}
.tf-ai-live-progress progress{width:100%;height:13px;border:0;border-radius:16px;overflow:hidden;accent-color:#168357}
.tf-ai-live-progress progress::-webkit-progress-bar{background:#e8efeb;border-radius:16px}
.tf-ai-live-progress progress::-webkit-progress-value{background:#168357;border-radius:16px}
.tf-ai-live-stats{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:13px;color:#344e41}
.tf-ai-live-stats strong{color:#123d2a;font-size:15px;font-variant-numeric:tabular-nums}
.tf-ai-live-detail{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:#4d6658;overflow-wrap:anywhere}
.tf-ai-live-detail strong{font-weight:600;color:#244a36}
.tf-ai-stall{color:#a12e35;font-weight:700;max-width:100%}
@media(max-width:740px){.tf-ai-live-progress{padding:12px}.tf-ai-live-stats{gap:8px 12px}.tf-ai-live-detail{display:grid;gap:7px}}

/* 2.2.5 LinkedIn discovery live queue – responsive on both Portal and WP admin */
.tf-li-panel .tf-li-monitor { border:1px solid #d4e6dc; border-radius:12px; background:#f8fbf9; padding:17px 18px; margin:16px 0; }
.tf-li-panel .tf-li-monitor-heading,.tf-li-panel .tf-li-progress-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tf-li-panel .tf-li-pill { padding:4px 12px; font-size:12px; font-weight:700; border-radius:999px; background:#e5f4ea; color:#14663b; white-space:nowrap; }
.tf-li-panel[data-state="paused"] .tf-li-pill,.tf-li-panel[data-state="delayed"] .tf-li-pill,.tf-li-panel[data-state="stalled"] .tf-li-pill,.tf-li-panel[data-state="unscheduled"] .tf-li-pill { background:#fff0df; color:#9b4910; }
.tf-li-panel .tf-li-progress-head { margin-top:16px; margin-bottom:6px; }
.tf-li-panel .tf-li-progress { width:100%; height:14px; accent-color:#16794c; }
.tf-li-panel .tf-li-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin:14px 0; }
.tf-li-panel .tf-li-stat { padding:12px 9px; border-radius:9px; background:#fff; border:1px solid #e3ebe7; display:flex; flex-direction:column; gap:5px; }
.tf-li-panel .tf-li-stat span { font-size:12px; color:#617366; }
.tf-li-panel .tf-li-stat strong { font-size:21px; color:#1b4330; }
.tf-li-panel .tf-li-facts { display:flex; flex-wrap:wrap; column-gap:25px; row-gap:9px; margin:12px 0; }
.tf-li-panel .tf-li-facts span { font-size:12.5px; color:#536858; }
.tf-li-panel .tf-li-facts strong { color:#173d2b; }
.tf-li-panel .tf-li-warning { font-weight:600; color:#a34a0e; }
.tf-li-panel .tf-li-warning:empty { display:none; }
.tf-li-panel .tf-li-notice { padding:10px 12px; background:#eff9f1; border-left:4px solid #168052; }
.tf-li-panel .tf-li-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:12px 0; }
.tf-li-panel .tf-li-form { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0; }
.tf-li-panel .tf-li-details { padding:12px 0; }
.tf-li-panel .tf-li-details summary { cursor:pointer; font-weight:600; }
.tf-li-panel .tf-li-recent { overflow-x:auto; margin-top:10px; }
.tf-li-panel .tf-li-recent-table td { overflow-wrap:anywhere; }
@media (max-width:980px) {.tf-li-panel .tf-li-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media (max-width:580px) {.tf-li-panel .tf-li-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .tf-li-panel .tf-li-monitor {padding:12px;} .tf-li-panel .tf-li-monitor-heading {align-items:flex-start;} }
