.cs_allcat_v3 {
  min-height: 65vh;
  background:
    radial-gradient(circle at 12% 0, rgba(59, 130, 246, 0.09), transparent 28rem),
    #f7f9fc;
}

.cs_allcat_hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 27rem);
  gap: 1.25rem 3rem;
  align-items: end;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  border: 1px solid #e4ebf5;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

.cs_allcat_intro {
  min-width: 0;
}

.cs_allcat_eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.75rem;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #eaf2ff;
  border-radius: 999px;
}

.cs_allcat_title {
  margin: 0 0 0.45rem;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cs_allcat_subtitle {
  max-width: 42rem;
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.cs_allcat_search {
  position: relative;
  display: flex;
  align-items: center;
}

.cs_allcat_search_icon {
  position: absolute;
  left: 1rem;
  color: #64748b;
  pointer-events: none;
}

.cs_allcat_search_input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.8rem 3rem 0.8rem 2.8rem;
  color: #0f172a;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs_allcat_search_input::placeholder {
  color: #94a3b8;
}

.cs_allcat_search_input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.13);
}

.cs_allcat_search_clear {
  position: absolute;
  right: 0.65rem;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  color: #64748b;
  background: #eef2f7;
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.cs_allcat_search_clear:hover,
.cs_allcat_search_clear:focus-visible {
  color: #0f172a;
  background: #e2e8f0;
}

.cs_allcat_search_status {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}

.cs_allcat_grid {
  align-items: stretch;
}

.cs_allcat_col {
  min-width: 0;
}

.cs_catbox {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cs_catbox:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1rem 2.3rem rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.cs_catbox_head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid #edf1f6;
}

.cs_catbox_icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  color: #2563eb;
  font-size: 1.05rem;
  background: #eaf2ff;
  border-radius: 0.85rem;
  place-items: center;
}

.cs_catbox_icon_2 { color: #7c3aed; background: #f1ebff; }
.cs_catbox_icon_3 { color: #047857; background: #e5f8f1; }
.cs_catbox_icon_4 { color: #c2410c; background: #fff0e7; }
.cs_catbox_icon_5 { color: #be185d; background: #fce7f3; }
.cs_catbox_icon_6 { color: #0e7490; background: #e5f7fb; }

.cs_catbox_heading {
  min-width: 0;
}

.cs_catbox_title {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.cs_catbox_title a {
  color: inherit;
  text-decoration: none;
}

.cs_catbox_title a:hover,
.cs_catbox_title a:focus-visible {
  color: #1d4ed8;
}

.cs_catbox_count {
  display: block;
  margin-top: 0.18rem;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 650;
}

.cs_catbox_root_link {
  display: grid;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  margin-left: auto;
  color: #64748b;
  text-decoration: none;
  background: #f1f5f9;
  border-radius: 50%;
  place-items: center;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cs_catbox_root_link:hover,
.cs_catbox_root_link:focus-visible {
  color: #fff;
  background: #2563eb;
  transform: translateX(2px);
}

.cs_catbox_list {
  display: flex;
  flex-direction: column;
}

.cs_catbox_group + .cs_catbox_group {
  border-top: 1px solid #edf1f6;
}

.cs_catbox_item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  color: #0f172a;
  text-decoration: none;
  border: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.cs_catbox_item_sub {
  font-weight: 750;
}

.cs_catbox_item_subsub {
  min-height: 2.6rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-left: 2rem;
  color: #475569;
  font-size: 0.88rem;
  background: #fbfcfe;
}

.cs_catbox_item_subsub .cs_catbox_item_text::before {
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.55rem;
  vertical-align: 0.1rem;
  content: '';
  background: #cbd5e1;
  border-radius: 50%;
}

.cs_catbox_item_text {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.4;
}

.cs_catbox_item_arrow {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 0.82rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.cs_catbox_item:hover,
.cs_catbox_item:focus-visible {
  color: #1d4ed8;
  background: #f3f7ff;
  outline: 0;
}

.cs_catbox_item:hover .cs_catbox_item_arrow,
.cs_catbox_item:focus-visible .cs_catbox_item_arrow {
  color: #2563eb;
  transform: translateX(2px);
}

.cs_allcat_empty {
  max-width: 32rem;
  padding: 3.5rem 1.25rem;
  margin: 0 auto;
  color: #64748b;
  text-align: center;
}

.cs_allcat_empty > i {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #2563eb;
  font-size: 1.35rem;
  background: #eaf2ff;
  border-radius: 50%;
  place-items: center;
}

.cs_allcat_empty h2 {
  margin: 0 0 0.4rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
}

.cs_allcat_empty p {
  margin: 0;
}

@media (max-width: 767.98px) {
  .cs_allcat_hero {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .cs_allcat_search_status {
    grid-column: auto;
    margin-top: -0.5rem;
  }

  .cs_catbox:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs_allcat_v3 *,
  .cs_allcat_v3 *::before,
  .cs_allcat_v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
