    /* PAGINATION */
    .pagination-controls {
      display: flex; align-items: center; justify-content: center;
      gap: 12px; padding: 16px 0; font-size: 14px;
    }
    .pagination-btn {
      background: var(--gray-50); border: 1px solid var(--gray-200);
      border-radius: 6px; padding: 6px 14px; cursor: pointer;
      font-size: 14px; color: var(--gray-800); font-family: inherit;
    }
    .pagination-btn:hover:not(:disabled) { background: var(--gray-100); }
    .pagination-btn:disabled { opacity: 0.4; cursor: default; }
    .pagination-info { color: var(--gray-600); }

    /* DELETE CHECKBOX */
    .strategy-table-scroll td.del-cell,
    .strategy-table-scroll th.del-cell { width: 36px; min-width: 36px; max-width: 36px; text-align: center; padding: 6px 4px; }
    .del-cb { width: 15px; height: 15px; cursor: pointer; accent-color: var(--red-500); }

    /* CAMPAIGN OVERVIEW BULK TARGET */
    .ov-check-cell { width: 36px; min-width: 36px; max-width: 36px; text-align: center; padding: 6px 4px; }
    .ov-cb { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }
    .bulk-target-bar {
      display: flex; align-items: center; gap: 12px;
      background: var(--accent-50); border: 1px solid var(--accent-100);
      border-radius: 8px; padding: 10px 16px; margin-bottom: 12px;
      font-size: 0.88rem; color: var(--gray-700);
    }
    .bulk-target-bar .btn-sm {
      padding: 5px 14px; font-size: 0.82rem; font-weight: 600;
      background: var(--primary); color: #fff; border: none; border-radius: 6px; cursor: pointer;
    }
    .bulk-target-bar .btn-sm:hover { opacity: 0.9; }
    tr.row-deleted { opacity: 0.45; }
    tr.row-deleted td { text-decoration: line-through; }
    tr.row-deleted td.del-cell { text-decoration: none; }

    /* COLUMN FILTER */
    .col-filter-dropdown {
      position: fixed; z-index: 99999;
      background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
      padding: 0; min-width: 280px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      font-weight: 400;
    }
    .col-filter-search {
      display: flex; align-items: center; gap: 6px;
      padding: 10px 12px; border-bottom: 1px solid var(--gray-100);
    }
    .col-filter-search svg { flex-shrink: 0; color: var(--gray-400); }
    .col-filter-search input {
      width: 100%; padding: 8px 12px; height: 36px; border: 1px solid var(--gray-200); border-radius: 6px;
      /* color-accessible-pairs: explicit color/bg so element is dark-themed consistently */
      font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box;
      color: var(--gray-800); background: var(--white);
    }
    .col-filter-search input:focus { border-color: var(--accent-500); }
    .col-filter-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
    .col-filter-item {
      display: flex; align-items: center; gap: 8px;
      padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis;
    }
    .col-filter-item:hover { background: var(--gray-50); }
    .col-filter-item input[type="checkbox"] { flex-shrink: 0; cursor: pointer; accent-color: var(--accent-500); width: 14px; height: 14px; }
    .col-filter-item label { cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
    .col-filter-item.select-all { border-bottom: 1px solid var(--gray-100); padding-bottom: 7px; margin-bottom: 2px; font-weight: 600; }
    .col-filter-footer {
      padding: 10px 12px; border-top: 1px solid var(--gray-100);
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .col-filter-count { font-size: 11px; color: var(--gray-500); white-space: nowrap; }
    .col-filter-actions { display: flex; gap: 8px; }
    .col-filter-btn {
      padding: 6px 16px; border-radius: 6px; font-size: 12px; font-family: inherit;
      cursor: pointer; font-weight: 600; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700);
      white-space: nowrap;
    }
    .col-filter-btn:hover { background: var(--gray-50); }
    /* color-accessible-pairs: white on --accent-500 = 3.87:1, fails AA for 12px text.
       Using --accent-600 (#C04E28) gives 4.81:1. */
    .col-filter-btn.primary { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }
    .col-filter-btn.primary:hover { background: var(--accent-700); border-color: var(--accent-700); }

    /* COLUMN HOVER */
    .col-hovered { background: rgba(216, 90, 48, 0.06); }

    /* TABLE SORT/FILTER CONTROLS */
    thead th:has(.tsc-controls) { cursor: pointer; user-select: none; }
    .tsc-controls { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; vertical-align: middle; }
    .tsc-sort { display: inline-flex; flex-direction: column; gap: 0; line-height: 1; }
    /* Resting state was #B0B0B0 (1.84:1 vs --gray-50 thead bg, fails AA). Use
       var(--gray-400) which lands above the AA-Large 3:1 threshold for icon glyphs. */
    .tsc-arrow { font-size: 7px; color: var(--gray-400); cursor: pointer; line-height: 1; transition: color 0.15s; }
    .tsc-arrow:hover { color: var(--gray-700); }
    .tsc-arrow.active { color: var(--accent-500); }
    .tsc-filter-btn { cursor: pointer; color: var(--gray-400); display: inline-flex; align-items: center; transition: color 0.15s; }
    .tsc-filter-btn:hover { color: var(--gray-700); }
    .tsc-filter-btn.active { color: var(--accent-500); }

    /* Clear all filters button */
    .tsc-clear-all-btn {
      display: none; margin-bottom: 8px; float: right;
      padding: 5px 14px; border: 1px solid var(--gray-200); border-radius: 6px;
      background: var(--white); color: var(--gray-600); font-size: 12px;
      font-family: inherit; font-weight: 500; cursor: pointer; transition: all 0.15s;
    }
    .tsc-clear-all-btn:hover { border-color: var(--accent-500); color: var(--accent-500); }

    /* Filter dropdown shared */
    .tsc-dropdown { min-width: 280px; padding: 0; }
    .tsc-input {
      width: 100%; height: 36px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 6px;
      /* color-accessible-pairs: explicit color so browser UA black doesn't land on --white dark surface */
      font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box;
      color: var(--gray-800); background: var(--white);
    }
    .tsc-input:focus { border-color: var(--gray-800); }

    /* Numeric filter */
    .tsc-num-filter-body { padding: 14px; }
    .tsc-num-label {
      font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 10px;
    }
    .tsc-num-op {
      width: 100%; height: 36px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 6px;
      /* color-accessible-pairs: background: var(--white) = rgb(17,22,42); needs explicit light text */
      font-size: 13px; font-family: inherit; color: var(--gray-800); background: var(--white); outline: none; cursor: pointer;
      margin-bottom: 6px;
    }
    .tsc-num-op option { color: var(--gray-800); background: var(--bg-2); }
    .tsc-num-op:focus { border-color: var(--gray-800); }
    .tsc-num-val1, .tsc-num-val2 { margin-bottom: 8px; }
    .tsc-num-logic-row {
      display: flex; align-items: center; justify-content: center; margin: 4px 0;
    }
    .tsc-num-logic {
      width: auto; min-width: 70px; height: 30px; padding: 4px 10px; border: 1px solid var(--gray-200);
      /* color-accessible-pairs: same fix — dark bg needs light text */
      border-radius: 6px; font-size: 12px; font-family: inherit; color: var(--gray-800); background: var(--white);
      outline: none; cursor: pointer; text-align: center;
    }
    .tsc-num-logic option { color: var(--gray-800); background: var(--bg-2); }
    .tsc-num-logic:focus { border-color: var(--gray-800); }

    /* Sidebar collapsed rules live in audit-panels.css — removed the duplicate here. */

    /* SEARCH TERM ANALYSIS PANELS */
    .performing-panel { display: none; }
    .performing-panel.active { display: block; }
    .underperforming-panel { display: none; }
    .underperforming-panel.active { display: block; }
    .brandedauto-panel { display: none; }
    .brandedauto-panel.active { display: block; }
    .ngram-panel { display: none; }
    .ngram-panel.active { display: block; }

    .ngram-tab-btn {
      padding: 6px 16px; border-radius: 6px; border: 1px solid var(--gray-200);
      background: var(--white); font-family: var(--font-body); font-size: 13px;
      font-weight: 600; color: var(--gray-600); cursor: pointer; transition: all 0.15s;
    }
    .ngram-tab-btn:hover { border-color: var(--accent-500); color: var(--accent-500); }
    /* color-accessible-pairs: white on --accent-500 = 3.87:1 fails; --accent-600 = 4.81:1 passes */
    .ngram-tab-btn.active { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }

    .ngram-wasted td { background: rgba(239,68,68,0.06); }
    .ngram-wasted td:first-child { border-left: 3px solid var(--red-500); }
    .ngram-efficient td { background: rgba(34,197,94,0.06); }
    .ngram-efficient td:first-child { border-left: 3px solid var(--green-500); }

    .st-config-bar {
      display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
      padding: 16px 24px; background: var(--white); border: 1px solid var(--gray-100);
      border-radius: 10px; margin-bottom: 20px;
    }
    .st-config-bar label { font-size: 14px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
    .st-config-bar input[type="number"],
    .st-config-bar input[type="text"] {
      width: 80px; padding: 8px 12px; height: 36px; border: 1px solid var(--gray-200);
      border-radius: 6px; font-size: 14px; font-family: inherit;
    }
    .st-config-bar input[type="number"]:focus,
    .st-config-bar input[type="text"]:focus { border-color: var(--accent-500); }
    .st-summary { font-size: 14px; color: var(--gray-400); margin-left: auto; }
    .st-table-wrap {
      background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px;
    }
    .st-table-header {
      padding: 16px 24px; border-bottom: 1px solid var(--gray-50);
      display: flex; align-items: center; justify-content: space-between;
    }
    .st-table-header h2 { font-size: 16px; font-weight: 700; color: var(--gray-900); }
    /* overflow-x:auto: widened columns scroll the wrapper instead of redistributing
       peers. overflow-x:auto forces overflow-y to auto too (CSS spec), so cap the
       height and anchor the sticky thead to top:0 (the .strategy-table-scroll
       pattern) — otherwise an uncapped scroll container has no vertical scroll
       range and the sticky header scrolls away with the page. */
    .st-table-scroll { overflow-x: auto; overflow-y: auto; max-height: 70vh; }
    .st-table-scroll table { width: 100%; font-size: 14px; border-collapse: collapse; table-layout: fixed; }
    .st-table-scroll thead th {
      position: sticky; top: 0; z-index: 10; background: var(--gray-50);
      padding: 10px 14px; white-space: nowrap; text-align: left; font-weight: 600;
      font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
      color: var(--gray-600); border-bottom: 1px solid var(--gray-100); cursor: pointer; user-select: none;
      overflow: visible;
    }
    .st-table-scroll thead th.num { text-align: right; }
    .st-table-scroll thead th.sort-asc::after,
    .st-table-scroll thead th.sort-desc::after {
      content: ''; display: inline-block; margin-left: 5px; vertical-align: middle;
      width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    }
    .st-table-scroll thead th.sort-asc::after { border-bottom: 5px solid var(--gray-600); }
    .st-table-scroll thead th.sort-desc::after { border-top: 5px solid var(--gray-600); }
    .st-table-scroll tbody td { padding: 8px 14px; font-size: 14px; border-bottom: 1px solid var(--gray-50); color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .st-table-scroll tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
    .st-table-scroll tbody tr:hover { background: var(--gray-50); }
    .st-table-scroll td.campaign-name { max-width: 350px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .st-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
    /* color-accessible-pairs: --red-500 (#EF4444) on --red-50 composite (4.36:1) fails
       AA for 12px text. --badge-crit-fg (#F87171) gives 5.93:1. */
    .st-badge.zero-sales { background: var(--red-50); color: var(--badge-crit-fg); }
    .st-badge.high-acos { background: var(--amber-50); color: var(--amber-500); }

    /* Bulk-preview harvest-row badge: shown next to the New Bid input when the
       suggested bid was clamped to the server-owned CPC ceiling. */
    .harvest-cap-badge {
      display: inline-block;
      margin-left: 6px;
      padding: 2px 6px;
      border-radius: 4px;
      background: #fef3c7;
      color: #92400e;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: help;
      white-space: nowrap;
      vertical-align: middle;
    }

    /* Campaign picker button */
    .perf-target-btn {
      display: block; width: 100%; max-width: 220px; padding: 5px 10px;
      border: 1px solid var(--gray-200); border-radius: 6px; background: var(--white);
      font-size: 12px; font-family: inherit; color: var(--gray-400);
      text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis;
      white-space: nowrap; transition: border-color 0.15s;
    }
    .perf-target-btn:hover { border-color: var(--gray-400); }
    .perf-target-btn.has-value { color: var(--gray-800); }

    /* Campaign picker dropdown - selected item */
    .perf-campaign-item { cursor: pointer; }
    .perf-campaign-item.selected { background: var(--gray-50); font-weight: 600; }
    .perf-campaign-item.selected::before {
      content: '\2713'; margin-right: 6px; color: var(--accent-500); font-weight: 700;
    }
    .perf-campaign-picker { min-width: 320px; }

    .st-totals { display: inline-flex; gap: 10px; margin-left: auto; }
    .st-total-pill {
      display: inline-flex; flex-direction: column; align-items: center;
      background: var(--gray-50); border: 1px solid var(--gray-100);
      border-radius: 8px; padding: 12px 16px; min-width: 90px;
    }
    .st-total-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 1px; color: var(--gray-400); line-height: 1.2;
    }
    .st-total-value {
      font-size: 16px; font-weight: 600; color: var(--gray-800);
      font-variant-numeric: tabular-nums; line-height: 1.3;
    }

    @media (max-width: 900px) {
      .config-grid { grid-template-columns: 1fr; }
    }
