body.page-scrape.ae-category-picker-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

body.page-scrape .ae-category-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, .38);
}

body.page-scrape .ae-category-picker-dialog {
  width: min(1180px, calc(100vw - 48px));
  height: min(1140px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--scrape-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}

body.page-scrape .ae-category-picker-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--scrape-line);
  background: #fff;
}

body.page-scrape .ae-category-picker-heading {
  min-width: 0;
}

body.page-scrape .ae-category-picker-title {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

body.page-scrape .ae-category-picker-subtitle {
  margin-top: 3px;
  color: var(--scrape-muted);
  font-size: 12px;
}

body.page-scrape .ae-category-picker-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--scrape-line);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
}

body.page-scrape .ae-category-picker-close:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

body.page-scrape .ae-category-picker-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--scrape-line);
  background: #fbfcfe;
}

body.page-scrape .ae-category-picker-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

body.page-scrape .ae-category-picker-search input {
  width: 100%;
  height: 36px;
}

body.page-scrape .ae-category-current-path,
body.page-scrape .ae-category-footer-path {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-current-path small,
body.page-scrape .ae-category-footer-path small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--scrape-muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-picker-results {
  flex: 0 0 auto;
  max-height: 230px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--scrape-line);
  background: #fff;
}

body.page-scrape .ae-category-picker-section-title {
  padding: 9px 12px;
  border-bottom: 1px solid var(--scrape-line);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
}

body.page-scrape .ae-category-result-list {
  display: grid;
  gap: 6px;
  padding: 8px;
}

body.page-scrape .ae-category-result-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(170px, 1fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--scrape-line-soft);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

body.page-scrape .ae-category-result-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

body.page-scrape .ae-category-result-name {
  overflow: hidden;
  color: #0f172a;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-result-en,
body.page-scrape .ae-category-result-path {
  overflow: hidden;
  color: var(--scrape-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-cascader-scroll {
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  background: #fff;
}

body.page-scrape .ae-category-cascader {
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow-y: hidden;
}

body.page-scrape .ae-category-column {
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: 100%;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--scrape-line);
  background: #fff;
}

body.page-scrape .ae-category-cascader.is-scrollable {
  min-width: max-content;
}

body.page-scrape .ae-category-cascader.is-scrollable .ae-category-column {
  width: 240px;
  min-width: 240px;
  max-width: 280px;
  flex: 0 0 240px;
}

body.page-scrape .ae-category-column-title {
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--scrape-line);
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-column-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  scrollbar-gutter: stable;
}

body.page-scrape .ae-category-column-list::-webkit-scrollbar,
body.page-scrape .ae-category-picker-results::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.page-scrape .ae-category-column-list::-webkit-scrollbar-thumb,
body.page-scrape .ae-category-picker-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

body.page-scrape .ae-category-column-list::-webkit-scrollbar-track,
body.page-scrape .ae-category-picker-results::-webkit-scrollbar-track {
  background: #f8fafc;
}

body.page-scrape .ae-category-cascade-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

body.page-scrape .ae-category-cascade-item:hover {
  border-color: #dbeafe;
  background: #f8fbff;
}

body.page-scrape .ae-category-cascade-item.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

body.page-scrape .ae-category-cascade-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.page-scrape .ae-category-cascade-zh,
body.page-scrape .ae-category-cascade-en {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-scrape .ae-category-cascade-zh {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

body.page-scrape .ae-category-cascade-en {
  color: var(--scrape-muted);
  font-size: 12px;
  font-weight: 500;
}

body.page-scrape .ae-category-cascade-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}

body.page-scrape .ae-category-cascade-next {
  min-width: 18px;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

body.page-scrape .ae-category-leaf-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.page-scrape .ae-category-picker-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--scrape-line);
  background: #fbfcfe;
}

body.page-scrape .ae-category-footer-label {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.page-scrape .ae-category-footer-hint {
  color: var(--scrape-muted);
  font-size: 12px;
  white-space: nowrap;
}

body.page-scrape .ae-category-empty {
  padding: 18px 12px;
  color: var(--scrape-muted);
  font-size: 13px;
  text-align: center;
}

body.page-scrape .ae-category-empty.is-error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  body.page-scrape .ae-category-picker-overlay {
    padding: 12px;
  }

  body.page-scrape .ae-category-picker-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }

  body.page-scrape .ae-category-picker-top,
  body.page-scrape .ae-category-picker-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-scrape .ae-category-result-item {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-scrape .ae-category-column {
    width: 240px;
    min-width: 240px;
  }

  body.page-scrape .ae-category-footer-hint {
    white-space: normal;
  }
}
