.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  box-sizing: border-box;
}

.list-pagination__summary,
.list-pagination__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-pagination__summary strong {
  color: #334155;
  font-weight: 600;
}

.list-pagination__size,
.list-pagination__jump {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  outline: none;
}

.list-pagination__size {
  min-width: 92px;
  padding: 0 28px 0 10px;
}

.list-pagination__jump {
  width: 54px;
  padding: 0 6px;
  text-align: center;
  box-sizing: border-box;
}

.list-pagination__jump::-webkit-inner-spin-button,
.list-pagination__jump::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.list-pagination__nav,
.list-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.list-pagination__page:hover,
.list-pagination__nav:hover:not(:disabled) {
  border-color: #93c5fd;
  color: #2563eb;
}

.list-pagination__page.is-active {
  border-color: #1687f8;
  background: #1687f8;
  color: #fff;
}

.list-pagination__nav {
  color: #64748b;
  font-size: 22px;
  font-weight: 400;
}

.list-pagination__nav:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: .7;
}

.list-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  color: #64748b;
  font-weight: 700;
}

.list-pagination__jump-label {
  color: #475569;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .list-pagination { align-items: flex-start; flex-direction: column; }
  .list-pagination__controls { max-width: 100%; flex-wrap: wrap; }
}

.list-filter-form {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.list-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

.list-filter-field {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.list-filter-field__label {
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.list-filter-field__control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.list-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.list-filter-search-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #dc2626;
  border-radius: 4px;
  background: #ef2d2d;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.list-filter-search-button:hover {
  background: #dc2626;
}

.list-multi-select,
.list-filter-form .geo-combined-select {
  position: relative;
  width: 100%;
  overflow: visible;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  box-sizing: border-box;
}

.list-multi-select > summary,
.list-filter-form .geo-combined-select > summary {
  position: relative;
  display: block;
  min-height: 34px;
  padding: 8px 34px 8px 12px;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
}

.list-multi-select > summary::-webkit-details-marker,
.list-filter-form .geo-combined-select > summary::-webkit-details-marker {
  display: none;
}

.list-multi-select > summary::after,
.list-filter-form .geo-combined-select > summary::after {
  position: absolute;
  top: 7px;
  right: 12px;
  content: "⌄";
  color: #64748b;
  font-size: 16px;
  transition: transform .15s ease;
}

.list-multi-select[open] > summary::after,
.list-filter-form .geo-combined-select[open] > summary::after {
  transform: rotate(180deg);
}

.list-multi-select__panel,
.list-filter-form .list-floating-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}

.list-multi-select__panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 8px 12px;
  width: min(430px, calc(100vw - 48px));
  max-height: 260px;
  padding: 12px;
  overflow-y: auto;
  box-sizing: border-box;
}

.list-multi-select__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.list-filter-form .country-region-filter--compact {
  width: 100%;
  min-width: 0;
}

.list-filter-form .list-floating-panel {
  right: auto;
  left: 0;
  width: min(720px, calc(100vw - 64px));
  max-height: min(620px, calc(100vh - 180px));
  padding: 14px;
  overflow-y: auto;
  box-sizing: border-box;
}

.institution-list-filter .country-region-filter .list-floating-panel {
  left: auto;
  right: 0;
}

.list-floating-panel__title {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.list-floating-panel__title--region {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.list-filter-form .list-floating-panel .region-cascade {
  height: 280px;
}

.list-filter-form .region-cascade-footer {
  gap: 12px;
}

.region-selected-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .list-filter-grid { grid-template-columns: 1fr; }
  .list-filter-form .list-floating-panel { width: min(640px, calc(100vw - 64px)); }
}

@media (max-width: 560px) {
  .list-filter-field { grid-template-columns: 64px minmax(0, 1fr); }
  .list-multi-select__panel { grid-template-columns: repeat(2, minmax(76px, 1fr)); }
  .list-filter-form .list-floating-panel { left: -64px; width: calc(100vw - 48px); }
}

.session-filter-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.session-filter-options.is-collapsed {
  max-height: 34px;
  overflow: hidden;
}

.session-filter-toggle {
  height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.organization-behavior-text-field {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.organization-behavior-text-field > input {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.search-result-export-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.search-result-export-button:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.search-result-export-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Stable layout for the layered-tag assignment dialog.
   These rules intentionally do not depend on generated Tailwind utilities. */
.batch-tag-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
}

.batch-tag-modal-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.batch-tag-modal-header {
  gap: 20px;
  padding: 20px 28px;
  background: #101a31;
}

.batch-tag-modal-body {
  min-height: 0;
  padding: 20px 28px 24px;
  background: #f8fafc;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.batch-tag-modal-tabs {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.batch-tag-modal-groups {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

.batch-tag-modal-selection-summary {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.batch-tag-modal-selection-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1f0;
  color: #cf1322;
  font-size: 12px;
  font-weight: 700;
}

.batch-tag-modal-custom-creator {
  padding: 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fffafa;
}

.batch-tag-modal-custom-heading {
  margin-bottom: 14px;
}

.batch-tag-modal-custom-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.batch-tag-modal-custom-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.batch-tag-modal-custom-field input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  outline: none;
}

.batch-tag-modal-custom-field input:focus {
  border-color: #f5222d;
  box-shadow: 0 0 0 3px rgba(245, 34, 45, 0.1);
}

.batch-tag-modal-custom-submit {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #f5222d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.batch-tag-modal-custom-submit:hover {
  background: #cf1322;
}

.batch-tag-modal-custom-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.batch-tag-modal-category-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 11px;
}

.batch-tag-modal-category-suggestions button {
  padding: 4px 9px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #be123c;
  font-size: 11px;
  cursor: pointer;
}

.batch-tag-modal-custom-empty {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.batch-tag-modal-group-heading {
  align-items: center;
}

.batch-tag-modal-footer {
  gap: 16px;
  padding: 16px 28px;
}

.batch-tag-modal-footer > button {
  min-width: 88px;
  min-height: 40px;
  padding: 0 24px;
}

@media (max-width: 720px) {
  .batch-tag-modal-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .batch-tag-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .batch-tag-modal-header,
  .batch-tag-modal-body,
  .batch-tag-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .batch-tag-modal-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .batch-tag-modal-body {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .batch-tag-modal-groups {
    padding: 16px;
  }

  .batch-tag-modal-tabs {
    grid-template-columns: 1fr;
  }

  .batch-tag-modal-custom-fields {
    grid-template-columns: 1fr;
  }

  .batch-tag-modal-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .batch-tag-modal-tag-list {
    gap: 8px;
  }

  .batch-tag-modal-footer {
    align-items: stretch;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .batch-tag-modal-footer > button {
    width: 100%;
  }
}

@media (max-height: 640px) {
  .batch-tag-modal-dialog {
    max-height: calc(100vh - 16px);
  }

  .batch-tag-modal-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .batch-tag-modal-body {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .batch-tag-modal-footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Decision-center red theme: keep data visualizations multicolor, recolor primary UI controls. */
.theme-red .bg-blue-600 { background-color: #f5222d !important; }
.theme-red .bg-blue-700 { background-color: #cf1322 !important; }
.theme-red .bg-blue-50 { background-color: #fff1f0 !important; }
.theme-red .bg-blue-100 { background-color: #ffccc7 !important; }
.theme-red .text-blue-400 { color: #ff7875 !important; }
.theme-red .text-blue-500,
.theme-red .text-blue-600,
.theme-red .text-blue-700 { color: #f5222d !important; }
.theme-red .border-blue-200 { border-color: #ffccc7 !important; }
.theme-red .border-blue-300,
.theme-red .border-blue-400,
.theme-red .border-blue-500,
.theme-red .border-blue-600 { border-color: #ff7875 !important; }
.theme-red .ring-blue-500 { --tw-ring-color: #f5222d !important; }
.theme-red .focus\:border-blue-500:focus { border-color: #f5222d !important; }
.theme-red .focus\:ring-blue-500:focus { --tw-ring-color: #f5222d !important; }
.theme-red .hover\:bg-blue-50:hover { background-color: #fff1f0 !important; }
.theme-red .hover\:bg-blue-700:hover { background-color: #cf1322 !important; }
.theme-red .hover\:text-blue-600:hover,
.theme-red .hover\:text-blue-700:hover { color: #cf1322 !important; }

.geo-region-priority-hint {
  margin-top: 4px;
  color: #b45309;
  font-size: 11px;
  line-height: 1.4;
}

/* Card-based comprehensive search */
.search-workspace { color: #24324a; padding-bottom: 92px !important; }
.search-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid #cbd9eb;
  border-radius: 10px;
  background: linear-gradient(120deg, #f8fbff 0%, #eef5ff 58%, #f7fafc 100%);
  box-shadow: 0 8px 24px rgba(30, 64, 175, .06);
}
.search-hero::after { content: ""; position: absolute; right: -40px; top: -70px; width: 210px; height: 210px; border: 30px solid rgba(37, 99, 235, .06); border-radius: 50%; }
.search-hero__eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #1d4ed8; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.search-hero__main { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.search-hero h1 { margin: 0; color: #172033; font-family: "STSong", "Songti SC", serif; font-size: 24px; font-weight: 800; }
.search-hero p { margin: 7px 0 0; color: #64748b; font-size: 13px; }
.search-hero__actions { display: flex; align-items: center; gap: 10px; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 16px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-primary { border: 1px solid #1d4ed8; background: #1d4ed8; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-primary:disabled { cursor: not-allowed; opacity: .42; }
.btn-secondary { border: 1px solid #cbd5e1; background: #fff; color: #475569; }
.btn-secondary:hover { border-color: #94a3b8; background: #f8fafc; }
.logic-builder { margin-bottom: 16px; padding: 18px 20px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .035); }
.logic-builder__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.logic-builder h2, .filter-card h2, .search-results h2 { margin: 0; color: #1e293b; font-size: 14px; font-weight: 800; }
.logic-builder p, .filter-card p, .search-results p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.55; }
.logic-toggle { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 12px; font-weight: 700; }
.logic-toggle select { height: 30px; padding: 0 28px 0 10px; border: 1px solid #bfdbfe; border-radius: 5px; background: #eff6ff; color: #1d4ed8; font-weight: 800; }
.logic-group-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.logic-group-tab, .logic-group-add { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; }
.logic-group-tab > span:first-of-type { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: #e2e8f0; color: #475569; font-size: 10px; }
.logic-group-tab.is-active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.logic-group-tab__remove { padding: 3px; border-radius: 4px; }
.logic-group-tab__remove:hover { background: #fee2e2; color: #dc2626; }
.logic-group-add { border-style: dashed; background: #fff; color: #2563eb; }
.logic-builder__rule { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #64748b; font-size: 11px; }
.logic-builder__rule > span { margin-right: 4px; font-weight: 700; }
.logic-builder__rule button { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #64748b; font-size: 11px; cursor: pointer; }
.logic-builder__rule button.is-active { border-color: #93c5fd; background: #dbeafe; color: #1e40af; font-weight: 800; }
.filter-summary { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #2563eb; border-radius: 0 6px 6px 0; background: #f8fafc; }
.filter-summary__sentence { color: #334155; font-size: 12px; line-height: 1.65; }
.filter-summary__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.filter-summary-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #dbe4ef; border-radius: 4px; background: #fff; color: #475569; font-size: 10px; }
.filter-summary-chip button { border: 0; background: transparent; color: #94a3b8; font-size: 14px; line-height: 1; cursor: pointer; }
.filter-summary-chip button:hover { color: #dc2626; }
.filter-summary__empty { color: #94a3b8; font-size: 11px; }
.filter-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.filter-card { overflow: hidden; align-self: start; border: 1px solid #d8e1ec; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(15, 23, 42, .04); }
.filter-card--organization { grid-column: 1 / -1; }
.filter-card--org-base { grid-column: 1 / -1; }
.filter-card--org-base .filter-card__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px 13px; border-bottom: 1px solid #e5eaf1; background: linear-gradient(180deg, #fbfdff, #f8fafc); }
.filter-card__count { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; color: #2563eb; font-size: 10px; font-weight: 800; }
.filter-card__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.filter-card--organization .filter-card__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-field { min-width: 0; padding: 12px 16px; border-bottom: 1px solid #eef2f7; }
.filter-field:nth-last-child(-n+2) { border-bottom-color: transparent; }
.filter-field__label { display: block; margin-bottom: 7px; color: #475569; font-size: 11px; font-weight: 700; }
.filter-input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #1e293b; font-size: 12px; outline: none; }
.filter-input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.filter-choice-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 116px; overflow-y: auto; }
.filter-choice { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #e2e8f0; border-radius: 4px; background: #f8fafc; color: #475569; font-size: 10px; cursor: pointer; }
.filter-choice input { width: 13px; height: 13px; margin: 0; accent-color: #2563eb; }
.filter-choice.is-selected { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.filter-subsection { grid-column: 1 / -1; padding: 8px 16px; border-top: 1px solid #dbe4ef; border-bottom: 1px solid #e8edf4; background: #f3f6fa; color: #334155; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.search-results { overflow: hidden; margin-top: 16px; border: 1px solid #d8e1ec; border-radius: 9px; background: #fff; }
.search-results__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.search-results__logic { max-width: 58%; color: #64748b; font-size: 10px; text-align: right; }
.search-combinations { margin: 14px 0; padding: 16px 18px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #334155; font-size: 12px; }
.search-combinations__header, .search-combinations__actions { display: flex; align-items: center; gap: 12px; }
.search-combinations__header { justify-content: space-between; flex-wrap: wrap; }
.search-combinations h2 { margin: 0; font-size: 14px; font-weight: 700; }
.search-combinations__header p { margin: 5px 0 0; color: #64748b; line-height: 1.7; }
.search-combinations__actions { flex-wrap: wrap; }
.search-combinations__list { margin-top: 14px; }
.search-combinations__title, .search-combinations__card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-combinations__count { padding: 3px 8px; border-radius: 4px; background: #eff6ff; color: #2563eb; font-size: 11px; }
.search-combinations__row { padding: 12px 14px; border: 1px solid #dbe4ef; border-left: 3px solid #2563eb; border-radius: 5px; background: #f8fafc; }
.search-combinations__card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.search-combinations__card-title > strong { color: #1e293b; font-size: 12px; }
.search-combinations__status { padding: 2px 6px; border-radius: 3px; background: #e2e8f0; color: #64748b; font-size: 10px; }
.search-combinations__status--draft { background: #dbeafe; color: #2563eb; }
.search-combinations__conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-combinations__condition { display: flex; align-items: center; min-width: 0; max-width: 100%; gap: 8px; }
.search-combinations__chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; min-width: 0; padding: 6px 9px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; line-height: 1.7; }
.search-combinations__field { color: #64748b; font-size: 11px; }
.search-combinations__value { min-width: 0; color: #1e293b; font-size: 12px; overflow-wrap: anywhere; }
.search-combinations__match { color: #2563eb; font-size: 10px; }
.search-combinations__and { flex: 0 0 auto; color: #94a3b8; font-size: 11px; }
.search-combinations__union { display: flex; align-items: center; gap: 8px; margin: 9px 14px; color: #64748b; font-size: 11px; }
.search-combinations__union > span { display: inline-flex; justify-content: center; align-items: center; width: 23px; height: 23px; border: 1px solid #bfdbfe; border-radius: 50%; background: #eff6ff; color: #2563eb; font-weight: 700; }
.search-combinations__draft { margin-top: 12px; padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 5px; color: #64748b; }
.search-combinations__draft.is-active { border-color: #93c5fd; background: #eff6ff; }
.search-combinations__union + .search-combinations__draft { margin-top: 0; }
.search-combinations__empty { margin: 0; color: #94a3b8; line-height: 1.8; }
.search-combinations__remove { flex: 0 0 auto; padding: 4px 6px; border: 0; background: transparent; color: #64748b; font-size: 12px; cursor: pointer; }
.search-combinations__remove:hover { color: #dc2626; }
.search-combinations__hint { margin: 8px 0 0; color: #2563eb; font-size: 11px; }
.search-combinations button:disabled { opacity: .45; cursor: not-allowed; }
.excel-import-search { margin: 14px 0; padding: 18px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #334155; }
.excel-import-search__heading, .excel-import-search__controls, .excel-import-search__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.excel-import-search__heading { margin-bottom: 14px; }
.excel-import-search__heading h2 { margin: 0; font-size: 14px; font-weight: 700; }
.excel-import-search__heading span, .excel-import-search__help { color: #64748b; font-size: 12px; }
.excel-import-search__controls > label:first-child { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.excel-import-search select { padding: 8px 28px 8px 10px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; font-size: 12px; }
.excel-import-search a { text-decoration: none; }
.excel-import-search__file { position: relative; max-width: 320px; padding: 8px 12px; overflow: hidden; border: 1px dashed #94a3b8; border-radius: 4px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.excel-import-search__file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.excel-import-search__file:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }
.excel-import-search__help { margin: 12px 0 0; line-height: 1.8; }
.excel-import-search__error { margin: 12px 0 0; color: #b91c1c; font-size: 12px; }
.excel-import-search__status { justify-content: space-between; margin-top: 14px; padding: 12px; background: #eff6ff; border-radius: 4px; color: #1d4ed8; font-size: 12px; }
.excel-import-search__status p { margin: 5px 0 0; overflow-wrap: anywhere; color: #64748b; }
.excel-import-search button:disabled { opacity: .45; cursor: not-allowed; }
.search-export-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #0f172a; color: #fff; font-size: 11px; }
.search-export-toolbar strong { color: #fbbf24; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.search-export-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-export-toolbar__button, .search-export-toolbar__cancel { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; color: #e2e8f0; font-size: 11px; cursor: pointer; }
.search-export-toolbar__button { padding: 6px 10px; background: #1e293b; }
.search-export-toolbar__button:hover { background: #334155; }
.search-export-toolbar__button:disabled { opacity: .4; cursor: not-allowed; background: #1e293b; }
.search-export-toolbar__cancel { padding: 6px 8px; background: transparent; color: #94a3b8; }
.search-export-toolbar__cancel:hover { color: #fff; }
.search-result-table { width: 100%; min-width: 900px; border-collapse: collapse; color: #475569; font-size: 11px; }
.search-result-table th { padding: 11px 13px; border-bottom: 1px solid #dbe4ef; background: #f8fafc; color: #334155; font-weight: 800; text-align: left; }
.search-result-table td { padding: 12px 13px; border-bottom: 1px solid #eef2f7; }
.search-result-table .search-result-table__check { width: 42px; padding-right: 6px; text-align: center; }
.search-result-table__check button { display: inline-flex; padding: 2px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; }
.search-result-table__check button:hover, .search-result-table__check .is-selected { color: #2563eb; }
.search-result-table tr:hover td { background: #fbfdff; }
.result-link, .result-detail { border: 0; background: transparent; color: #1d4ed8; font-size: 11px; font-weight: 700; cursor: pointer; }
.result-detail { display: inline-flex; align-items: center; gap: 4px; }
.search-results__empty { padding: 48px 16px !important; color: #94a3b8; text-align: center; }
.search-results__empty svg { display: block; margin: 0 auto 8px; color: #cbd5e1; }
.search-results__footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: #f8fafc; color: #64748b; font-size: 11px; }
.search-results__footer div { display: flex; gap: 8px; }
.search-results__footer button { padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #475569; cursor: pointer; }
.search-results__footer button:disabled { cursor: not-allowed; opacity: .4; }
/* Progressive advanced search: one readable group, expandable business modules. */
.search-workspace--progressive { max-width: none !important; }
.logic-builder--single { padding: 14px 18px; }
.single-group-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.single-group-title { display: flex; align-items: center; gap: 8px; color: #334155; font-size: 12px; }
.single-group-title svg { color: #2563eb; }
.single-group-title > span { padding: 3px 8px; border-radius: 12px; background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; }
.logic-builder--single .logic-builder__rule { margin-top: 0; }
.filter-summary--top { margin-top: 12px; padding: 10px 12px; }
.filter-summary__heading { display: flex; align-items: center; justify-content: space-between; color: #334155; font-size: 11px; }
.filter-summary__heading button { border: 0; background: transparent; color: #2563eb; font-size: 10px; cursor: pointer; }
.filter-summary--top .filter-summary__chips { min-height: 24px; }
.filter-module-list { display: flex; flex-direction: column; gap: 10px; }
.filter-module-list .filter-card { width: 100%; transition: border-color .16s ease, box-shadow .16s ease; }
.filter-module-list .filter-card.is-open { border-color: #c8d7ea; box-shadow: 0 4px 14px rgba(15, 23, 42, .055); }
.filter-module-list .filter-card.is-collapsed { box-shadow: none; }
.filter-card__header--toggle { width: 100%; border: 0; border-bottom: 1px solid #e5eaf1; color: inherit; text-align: left; cursor: pointer; }
.filter-card.is-collapsed .filter-card__header--toggle { border-bottom-color: transparent; }
.filter-card__header--toggle:hover { background: #f4f8fd; }
.filter-card__header-meta { display: flex; align-items: center; gap: 10px; }
.filter-card__chevron { color: #64748b; transition: transform .18s ease; }
.filter-card__chevron.is-rotated, .filter-options-toggle .is-rotated { transform: rotate(180deg); }
.filter-module-list .filter-card__body { grid-template-columns: repeat(3, minmax(0, 1fr)); animation: filter-module-open .16s ease-out; }
.filter-choice-wrap { min-width: 0; }
.filter-choice-wrap .filter-choice-list { max-height: none; overflow: visible; }
.field-match-toolbar { display: flex; align-items: center; gap: 8px; margin: -2px 0 7px; }
.field-match-toolbar__label { color: #64748b; font-size: 10px; white-space: nowrap; }
.field-match-toggle { display: inline-flex; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; }
.field-match-toggle button { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; padding: 0 8px; border: 0; border-right: 1px solid #e2e8f0; background: transparent; color: #64748b; font-size: 10px; cursor: pointer; }
.field-match-toggle button:last-child { border-right: 0; }
.field-match-toggle button:hover { background: #f8fafc; color: #2563eb; }
.field-match-toggle button.is-active { background: #eaf2ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #93b8f8; }
.field-match-toggle button strong { font-size: 11px; }
.field-match-toggle button span { opacity: .8; }
.filter-options-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #2563eb; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-options-toggle svg { transition: transform .18s ease; }
@keyframes filter-module-open { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .filter-card-grid, .filter-card--organization .filter-card__body { grid-template-columns: 1fr 1fr; }
  .filter-card--organization, .filter-card--org-base { grid-column: auto; }
  .filter-card--org-base .filter-card__body { grid-template-columns: 1fr 1fr; }
  .filter-module-list .filter-card__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-sidebar { display: none !important; }
  .app-header { padding-right: 12px !important; padding-left: 12px !important; }
  .app-header__brand { width: auto !important; }
  .app-header__brand span { font-size: 14px !important; }
  .app-header__crumbs, .app-header__account { display: none !important; }
  .search-workspace { padding: 14px !important; }
  .search-hero__main, .logic-builder__header, .search-results__header, .single-group-row { align-items: stretch; flex-direction: column; }
  .search-hero__actions > button { flex: 1; }
  .filter-card-grid, .filter-card__body, .filter-card--organization .filter-card__body, .filter-card--org-base .filter-card__body { grid-template-columns: 1fr; }
  .filter-card--organization, .filter-card--org-base { grid-column: auto; }
  .filter-module-list .filter-card__body { grid-template-columns: 1fr; }
  .filter-field:nth-last-child(-n+2) { border-bottom-color: #eef2f7; }
  .search-results__logic { max-width: none; text-align: left; }
}

/* Flat advanced search shared by user and organization search. */
.search-workspace--flat { max-width: none !important; }
.search-overview-sticky {
  position: sticky;
  z-index: 25;
  top: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}
.search-workspace--flat .search-hero--flat {
  margin-bottom: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.search-workspace--flat .search-hero--flat::after { display: none; }
.search-workspace--flat .search-hero h1 { font-family: inherit; font-size: 18px; }
.search-workspace--flat .search-hero p { margin: 0; font-size: 12px; }
.search-hero__title-row { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.search-hero__title-row h1 { flex: 0 0 auto; white-space: nowrap; }
.search-overview-sticky .btn-primary, .search-overview-sticky .btn-secondary { min-height: 32px; padding: 0 14px; }
.filter-selected-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 6px 14px;
  border: 0;
  border-top: 1px solid #d9e1ec;
  border-radius: 0;
  background: #f8fafc;
}
.filter-selected-bar .filter-summary__heading { flex: 0 0 auto; }
.filter-selected-bar .filter-summary__chips { flex: 1 1 auto; min-height: 22px; margin-top: 0; }
.advanced-filter-panel {
  border: 1px solid #d9e1ec;
  border-radius: 4px;
  background: #fff;
}
.keyword-search-section { border-bottom: 1px solid #d9e1ec; }
.keyword-search-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  background: #f8fafc;
}
.keyword-search-section__header h2 { margin: 0; color: #17233b; font-size: 14px; font-weight: 800; }
.keyword-search-section__header span { color: #71809a; font-size: 12px; }
.keyword-search-section__body > .filter-field--keyword {
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 112px;
  padding: 18px 22px 16px;
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
}
.keyword-search-section__body > .filter-field--keyword:last-child { border-bottom: 0; }
.keyword-search__label { display: flex; flex-direction: column; gap: 5px; }
.advanced-filter-section__body .keyword-search__label { margin-top: 1px; }
.keyword-search__label strong { color: #17233b; font-size: 14px; font-weight: 800; }
.keyword-search__label span { color: #94a3b8; font-size: 12px; font-weight: 400; }
.keyword-search__control { min-width: 0; }
.keyword-search__input-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.keyword-search__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 180px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #246cff;
  border-radius: 4px;
  color: #334155;
  font-size: 14px;
  outline: none;
}
.keyword-search__input::placeholder { color: #9aa9c0; }
.keyword-search__input:focus { border-color: #155eef; box-shadow: 0 0 0 2px rgba(36, 108, 255, .12); }
.keyword-scope-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 28px; padding-top: 8px; }
.keyword-scope-inline label { display: inline-flex; align-items: center; gap: 7px; color: #475569; font-size: 12px; cursor: pointer; white-space: nowrap; }
.keyword-scope-inline input { width: 17px; height: 17px; margin: 0; accent-color: #246cff; cursor: pointer; }
.keyword-search__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; min-height: 46px; }
.keyword-search__actions .aggregate-search__button { min-width: 82px; }
.advanced-filter-section + .advanced-filter-section { border-top: 1px solid #d9e1ec; }
.advanced-filter-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 13px 16px;
  border: 0;
  background: #f8fafc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.advanced-filter-section.is-open .advanced-filter-section__header { border-bottom: 1px solid #e5eaf1; }
.advanced-filter-section__header:hover { background: #f3f7fc; }
.advanced-filter-section__header h2 { margin: 0; color: #1e293b; font-size: 14px; font-weight: 800; }
.advanced-filter-section__header p { margin: 3px 0 0; color: #64748b; font-size: 11px; }
.advanced-filter-section__body { animation: filter-module-open .16s ease-out; }
.advanced-filter-section__body > .filter-field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1f6;
}
.advanced-filter-section__body > .filter-field:last-child { border-bottom: 0; }
.filter-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #edf1f6;
}
.filter-field-pair > .filter-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 0;
}
.filter-field-pair > .filter-field + .filter-field { border-left: 1px solid #edf1f6; }
.filter-field-pair > .filter-field .filter-field__label { margin-right: 12px; }
.filter-field-pair > .filter-field .filter-multi-dropdown { width: 100%; }
.advanced-filter-section__body .filter-field__label {
  margin: 6px 18px 0 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.advanced-filter-section__body .filter-choice-list { max-height: none; overflow: visible; }
.advanced-filter-section__body .filter-choice {
  border-color: transparent;
  background: transparent;
  font-size: 11px;
}
.advanced-filter-section__body .filter-choice:hover { background: #f1f5f9; }
.advanced-filter-section__body .filter-choice.is-selected { border-color: #b9d4ff; background: #edf5ff; }
.advanced-filter-section__body .filter-subsection {
  padding: 8px 16px;
  border-top: 0;
  border-bottom: 1px solid #dde5ef;
  background: #f3f6fa;
  color: #24324a;
}
.filter-field--country-region .country-region-filter--embedded {
  display: block;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}
.filter-field--country-region .country-region-filter--embedded .geo-picker-stack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
}
.filter-field--country-region .country-region-filter--embedded .geo-multi-select {
  flex: 0 1 calc(50% - 5px);
  width: calc(50% - 5px);
  min-width: 0;
}
.aggregate-search {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  max-width: 1080px;
}
.cascade-selects select {
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 12px;
  outline: none;
}
.aggregate-search__box {
  display: flex;
  align-items: center;
  min-height: 38px;
  min-width: 0;
  border: 1px solid #1682ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.aggregate-search__box .filter-input { flex: 1 1 180px; min-width: 120px; height: 36px; border: 0; border-radius: 0; box-shadow: none; }
.aggregate-search__box .filter-input:focus { border: 0; box-shadow: none; }
.keyword-scope-picker { position: relative; flex: 0 0 auto; height: 38px; }
.keyword-scope-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 178px;
  height: 38px;
  padding: 0 14px 0 16px;
  border-right: 1px solid #1682ef;
  color: #1682ef;
  background: #f1f8ff;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.keyword-scope-picker > summary::-webkit-details-marker { display: none; }
.keyword-scope-picker > summary svg { transition: transform .16s ease; }
.keyword-scope-picker[open] > summary { background: #eaf4ff; }
.keyword-scope-picker[open] > summary svg { transform: rotate(180deg); }
.keyword-scope-picker__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  width: 560px;
  overflow: hidden;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}
.keyword-scope-picker__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 14px 18px 10px; }
.keyword-scope-picker__options label { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px; color: #30343b; font-size: 14px; cursor: pointer; }
.keyword-scope-picker__options label:hover { background: #f5f9ff; }
.keyword-scope-picker__options label.is-muted { color: #30343b; }
.keyword-scope-picker__options input { width: 18px; height: 18px; margin: 0; accent-color: #1682ef; }
.keyword-scope-picker__footer { display: flex; justify-content: flex-end; padding: 10px 18px; border-top: 1px solid #edf0f4; }
.keyword-scope-picker__footer button { border: 0; background: transparent; color: #a7adb7; font-size: 13px; cursor: pointer; }
.keyword-scope-picker__footer button:hover { color: #1682ef; }
.keyword-match-mode { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.keyword-match-mode label { display: inline-flex; align-items: center; gap: 5px; color: #334155; font-size: 12px; cursor: pointer; }
.keyword-match-mode input { accent-color: #1682ef; }
.aggregate-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.aggregate-search__button:disabled { cursor: not-allowed; opacity: .42; }
.cascade-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.cascade-selects select { min-width: 180px; border-radius: 4px; }
.cascade-selects select:disabled { background: #f8fafc; color: #94a3b8; }
.date-range-inputs { display: flex; align-items: center; gap: 8px; max-width: 560px; }
.date-range-inputs .filter-input { flex: 1 1 0; min-width: 150px; }
.date-range-separator { flex: 0 0 auto; color: #94a3b8; font-size: 12px; }
.filter-multi-dropdown { position: relative; width: min(100%, 560px); }
.filter-multi-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.filter-multi-dropdown > summary::-webkit-details-marker { display: none; }
.filter-multi-dropdown[open] > summary { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
.filter-multi-dropdown[open] > summary svg { transform: rotate(180deg); }
.filter-multi-dropdown__menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 5px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(720px, calc(100vw - 330px));
  max-height: 280px;
  padding: 10px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
}

@media (max-width: 720px) {
  .advanced-filter-section__body > .filter-field { grid-template-columns: 1fr; gap: 8px; }
  .filter-field-pair { grid-template-columns: 1fr; }
  .filter-field-pair > .filter-field { grid-template-columns: 1fr; gap: 8px; }
  .filter-field-pair > .filter-field + .filter-field { border-top: 1px solid #edf1f6; border-left: 0; }
  .advanced-filter-section__body .filter-field__label { margin-top: 0; }
  .aggregate-search { grid-template-columns: 1fr; gap: 7px; }
  .aggregate-search__box, .aggregate-search__button { width: 100%; border-radius: 4px; }
  .date-range-inputs { align-items: stretch; flex-direction: column; gap: 5px; }
  .date-range-separator { display: none; }
  .keyword-match-mode { min-height: 34px; }
  .keyword-scope-picker > summary { min-width: 140px; }
  .keyword-scope-picker__menu { width: min(420px, calc(100vw - 48px)); }
  .keyword-scope-picker__options { grid-template-columns: 1fr; }
  .keyword-search-section__header { min-height: 50px; padding: 0 14px; }
  .keyword-search-section__body > .filter-field--keyword { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .keyword-scope-inline { gap: 9px 16px; }
  .keyword-search__input-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .keyword-search__input { width: 100%; }
  .keyword-search__actions { align-items: stretch; flex-direction: column; justify-content: flex-start; min-height: 36px; }
  .keyword-search__actions .aggregate-search__button { width: 100%; }
  .filter-multi-dropdown__menu { position: static; grid-template-columns: 1fr; width: 100%; margin-top: 5px; }
  .filter-selected-bar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .search-hero__title-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .filter-field--country-region .country-region-filter--embedded .geo-picker-stack { flex-wrap: wrap; }
  .filter-field--country-region .country-region-filter--embedded .geo-multi-select { flex-basis: 100%; width: 100%; }
}
