.bz2-marketplace {
  --bz2-navy: #031027;
  --bz2-navy-2: #071b3c;
  --bz2-ink: #101828;
  --bz2-muted: #667085;
  --bz2-line: #dfe5ef;
  --bz2-soft: #f5f8fc;
  --bz2-blue: #1769ff;
  --bz2-blue-dark: #0d4fd7;
  --bz2-green: #15996b;
  --bz2-orange: #ef8b23;
  color: var(--bz2-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.bz2-marketplace *, .bz2-marketplace *::before, .bz2-marketplace *::after { box-sizing: border-box; }
.bz2-shell { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }
.bz2-kicker { display: inline-flex; align-items: center; color: #55a0ff; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.bz2-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; color: #fff !important; font-weight: 750; text-decoration: none !important; transition: transform .18s ease, background .18s ease; }
.bz2-button:hover { transform: translateY(-2px); }
.bz2-button.is-primary { border-color: var(--bz2-blue); background: var(--bz2-blue); }
.bz2-button.is-ghost { background: rgba(3,16,39,.2); }

/* Shared header and footer widths are owned by baize-zibll-header-footer.css. */

/* Homepage hero */
.bz2-home-hero { position: relative; min-height: 510px; overflow: hidden; background: var(--bz2-navy); }
.bz2-home-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: rgba(107,155,232,.35); content: ""; }
.bz2-home-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 510px; align-items: center; }
.bz2-home-hero-copy { position: relative; z-index: 2; padding: 30px 0; color: #fff; }
.bz2-home-hero-copy h1 { max-width: 650px; margin: 9px 0 10px; color: #fff; font-size: clamp(48px,3vw,58px); font-weight: 850; line-height: 1.08; letter-spacing: -.05em; }
.bz2-home-hero-copy > p { width: 700px; max-width: calc(100vw - 180px); margin: 0; color: #c5d2e8; font-size: 16px; line-height: 1.8; }
.bz2-hero-actions { display: flex; gap: 14px; margin-top: 12px; }
.bz2-home-hero-art { position: absolute; z-index: 1; top: 0; right: calc((100vw - 100%) / -2); bottom: 0; width: calc(66% + (100vw - 100%) / 2); pointer-events: none; }
/* Match the fade to the image's intrinsic aspect ratio, not the wider art box. */
.bz2-home-hero-art::before { position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1672 / 941; background: linear-gradient(90deg, var(--bz2-navy) 0%, rgba(3,16,39,.96) 8%, rgba(3,16,39,.65) 22%, rgba(3,16,39,.2) 38%, rgba(3,16,39,0) 55%), url('../img/baize-ai-ecosystem-hero-v2.png') center / 100% 100% no-repeat; content: ""; }
.bz2-home-hero-art::after { position: absolute; inset: 0; content: ""; }

.bz2-search { display: flex; max-width: 720px; min-height: 54px; align-items: center; margin: 28px auto 0; padding: 5px; border: 1px solid #d0d8e5; border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(16,24,40,.08); }
.bz2-search > i, .bz2-filter-search > i { flex: 0 0 auto; margin-left: 12px; color: #7b8798; }
.bz2-search input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
.bz2-search button, .bz2-filter-panel button { min-height: 42px; padding: 0 21px; border: 0; border-radius: 7px; background: var(--bz2-blue); color: #fff; font-weight: 750; }
.bz2-search-dark { width: 700px; max-width: calc(100vw - 180px); margin: 20px 0 0; border-color: rgba(156,188,236,.48); background: rgba(2,13,32,.78); box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.bz2-search-dark input { color: #fff; }
.bz2-search-dark input::placeholder { color: #91a3bd; }
.bz2-hot-search { display: flex; width: 900px; max-width: calc(100vw - 180px); flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; color: #8294af; font-size: 13px; }
.bz2-hot-search a { color: #b6c5da; text-decoration: none; }

/* Channel entry cards */
.bz2-channels { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: -28px 0 28px; }
.bz2-channel { position: relative; display: grid; min-height: 248px; grid-template-columns: 62px minmax(0,1fr); gap: 14px; align-items: start; overflow: hidden; padding: 25px 22px 20px; border: 1px solid #dbe9fa; border-radius: 15px; background: linear-gradient(125deg,#fff 5%,#eef6ff 100%); box-shadow: 0 12px 28px rgba(17,67,131,.09); color: inherit !important; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.bz2-channel::after { position: absolute; right: 0; bottom: 0; width: 52%; height: 63%; background: var(--bz2-channel-art) right bottom / contain no-repeat; content: ""; mask-image: radial-gradient(ellipse at 78% 78%, #000 48%, transparent 87%); mix-blend-mode: multiply; pointer-events: none; }
.bz2-channel.is-tool { --bz2-channel-art: url('../img/baize-home-channel-tool.png'); }
.bz2-channel.is-resource { --bz2-channel-art: url('../img/baize-home-channel-resource.png'); border-color: #d8f2eb; background: linear-gradient(125deg,#fff 5%,#ecfbf7 100%); }
.bz2-channel.is-project { --bz2-channel-art: url('../img/baize-home-channel-project.png'); border-color: #e9e3fb; background: linear-gradient(125deg,#fff 5%,#f5f0ff 100%); }
.bz2-channel.is-academy { --bz2-channel-art: url('../img/baize-home-channel-academy.png'); border-color: #f7e8d6; background: linear-gradient(125deg,#fff 5%,#fff5e9 100%); }
.bz2-channel:hover { transform: translateY(-4px); box-shadow: 0 19px 38px rgba(17,67,131,.14); }
.bz2-channel > i { position: relative; z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 14px; background: #e8f2ff; color: var(--bz2-blue); font-size: 28px; }
.bz2-channel.is-resource > i { background: #dcf8ed; color: #06af83; }
.bz2-channel.is-project > i { background: #f0e9ff; color: #8b45e9; }
.bz2-channel.is-academy > i { background: #fff0dc; color: #f57d19; }
.bz2-channel-index { position: absolute; z-index: 1; top: 19px; right: 22px; color: #8fb9f6; font-size: 18px; font-style: normal; font-weight: 400; }
.bz2-channel.is-resource .bz2-channel-index { color: #88decb; }
.bz2-channel.is-project .bz2-channel-index { color: #c3a9f6; }
.bz2-channel.is-academy .bz2-channel-index { color: #f5c796; }
.bz2-channel > div { position: relative; z-index: 1; min-width: 0; }
.bz2-channel span, .bz2-channel strong, .bz2-channel small { display: block; }
.bz2-channel span { margin: 2px 0 5px; color: #152238; font-size: 22px; font-weight: 850; }
.bz2-channel strong { min-height: 42px; color: #61738d; font-size: 13px; font-weight: 500; line-height: 1.5; }
.bz2-channel ul { position: relative; z-index: 1; margin: 9px 0 0 -76px; padding: 0; color: #4f6684; font-size: 13px; line-height: 1.65; list-style: none; }
.bz2-channel li::before { display: inline-grid; width: 14px; height: 14px; margin-right: 7px; place-items: center; border-radius: 50%; background: var(--bz2-blue); color: #fff; font-size: 9px; content: "✓"; }
.bz2-channel.is-resource li::before { background: var(--bz2-green); color: #fff; }
.bz2-channel.is-project li::before { background: #7c4dff; color: #fff; }
.bz2-channel.is-academy li::before { background: var(--bz2-orange); color: #fff; }
.bz2-channel small { position: relative; z-index: 1; margin: 8px 0 0 -76px; color: var(--bz2-blue); font-size: 13px; font-weight: 750; }
.bz2-channel > b { position: absolute; z-index: 1; bottom: 42px; left: 89px; color: var(--bz2-blue); font-size: 15px; }

.bz2-home > .bz2-shell { display: flow-root; }
.bz2-quality-assurance { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; align-items: center; margin: 0 0 48px; padding: 6px 0 10px; background: transparent; }
.bz2-quality-heading { position: relative; display: block; padding-left: 24px; border-left: 3px solid var(--bz2-blue); }
.bz2-quality-heading > span { display: block; color: #2078ed; font-size: 11px; font-weight: 650; letter-spacing: .09em; }
.bz2-quality-heading h2 { margin: 5px 0 4px; color: #101d37; font-size: 26px; font-weight: 850; }
.bz2-quality-heading p { margin: 0; color: #73849d; font-size: 12px; line-height: 1.5; }
.bz2-quality-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; }
.bz2-quality-cards article { display: flex; min-width: 0; gap: 12px; align-items: center; padding: 0 16px; border-left: 1px solid #dce5f1; background: transparent; box-shadow: none; }
.bz2-quality-cards article:first-child { padding-left: 16px; }
.bz2-quality-cards article:last-child { padding-right: 0; }
.bz2-quality-cards article > i { flex: 0 0 48px; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #eaf4ff; color: #1769ff; font-size: 24px; }
.bz2-quality-cards article:nth-child(2) > i { background: #e6faf4; color: #0daf8b; }
.bz2-quality-cards article:nth-child(3) > i { background: #f1ecff; color: #8545ec; }
.bz2-quality-cards article:nth-child(4) > i { background: #fff2e6; color: #ee8020; }
.bz2-quality-cards strong, .bz2-quality-cards span { display: block; }
.bz2-quality-cards strong { margin: 0 0 3px; color: #14213b; font-size: 14px; font-weight: 750; }
.bz2-quality-cards span { color: #73849d; font-size: 12px; line-height: 1.5; }

/* Shared section and cards */
.bz2-section { margin: 0 0 72px; }
.bz2-section-head, .bz2-results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.bz2-section-head h2 { margin: 0; color: var(--bz2-ink); font-size: 30px; font-weight: 850; letter-spacing: -.025em; }
.bz2-section-head h2::before { display: inline-block; width: 4px; height: 20px; margin-right: 10px; border-radius: 4px; background: var(--bz2-blue); vertical-align: -2px; content: ""; }
.bz2-section-head p { margin: 5px 0 0 14px; color: var(--bz2-muted); font-size: 14px; }
.bz2-section-head > a { color: var(--bz2-blue); font-size: 14px; font-weight: 750; text-decoration: none; }
.bz2-grid { display: grid; gap: 18px; }
.bz2-grid-tool { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bz2-grid-resource { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bz2-grid-academy { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bz2-card { min-width: 0; padding: 17px; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bz2-card:hover { transform: translateY(-3px); border-color: #cbd8eb; box-shadow: 0 16px 34px rgba(16,24,40,.09); }
.bz2-card h3 { margin: 0; color: var(--bz2-ink); font-size: 18px; font-weight: 800; line-height: 1.4; }
.bz2-card h3 a { color: inherit; text-decoration: none; }
.bz2-card > p, .bz2-resource-body > p { display: -webkit-box; overflow: hidden; min-height: 48px; margin: 11px 0 13px; color: var(--bz2-muted); font-size: 14px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-tool-card { display: flex; min-height: 286px; flex-direction: column; }
.bz2-tool-identity { position: relative; display: flex; gap: 12px; align-items: center; padding-right: 42px; }
.bz2-tool-logo { flex: 0 0 52px; display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border: 1px solid var(--bz2-line); border-radius: 13px; background: var(--bz2-soft); color: var(--bz2-blue); font-size: 12px; font-weight: 850; }
.bz2-tool-logo img,
.bz2-resource-card-v2.is-info .bz2-resource-type-icon.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
}
.bz2-meta { display: block; margin-top: 3px; color: var(--bz2-muted); font-size: 12px; }
.bz2-card-badge { position: absolute; top: 0; right: 0; padding: 4px 8px; border-radius: 4px; background: #e9f8ef; color: #15835c; font-size: 11px; font-weight: 800; }
.bz2-facts { display: flex; min-height: 24px; flex-wrap: wrap; gap: 5px; }
.bz2-facts span { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border-radius: 5px; background: #eef4ff; color: #426aa9; font-size: 11px; font-weight: 700; }
.bz2-facts .is-category { background: #e4efff; color: #1758bd; }
.bz2-taxonomy-facts { margin-bottom: 7px; }
.bz2-facts .is-status { background: #ebf8f2; color: #11805a; }
.bz2-tool-facts, .bz2-resource-facts { margin: 5px 0 0; font-size: 12px; }
.bz2-tool-facts > div, .bz2-resource-facts > div { display: grid; grid-template-columns: 58px 1fr; gap: 7px; padding: 3px 0; }
.bz2-tool-facts dt, .bz2-resource-facts dt { color: #7d8898; font-weight: 500; }
.bz2-tool-facts dd, .bz2-resource-facts dd { margin: 0; color: #344054; }
.bz2-tool-facts dd.is-status { color: var(--bz2-green); }
.bz2-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f4; color: var(--bz2-muted); font-size: 13px; }
.bz2-card-actions > span { display: flex; gap: 8px; }
.bz2-card-actions a { color: var(--bz2-blue); font-weight: 750; text-decoration: none; }
.bz2-card-actions .is-primary { padding: 9px 14px; border-radius: 7px; background: var(--bz2-blue); color: #fff; text-align: center; }
.bz2-card-actions .bz2-price { color: var(--bz2-blue); font-size: 17px; }

/* Homepage featured sections share one title rhythm and vertical spacing. */
.bz2-home-tools,
.bz2-home-resource-section,
.bz2-home-academy { margin-bottom: 72px; }
.bz2-home-tools .bz2-section-head > a { display: inline-flex; min-height: 36px; align-items: center; }
.bz2-home-tools .bz2-grid-tool { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.bz2-home-tools .bz2-tool-card { min-height: 186px; padding: 16px; border-color: #e2e8f1; border-radius: 12px; box-shadow: 0 7px 18px rgba(16,24,40,.045); }
.bz2-home-tools .bz2-tool-card:hover { border-color: #b8cff4; box-shadow: 0 12px 26px rgba(26,105,255,.10); }
.bz2-home-tools .bz2-tool-identity { gap: 12px; padding-right: 0; }
.bz2-home-tools .bz2-tool-logo { flex-basis: 56px; width: 56px; height: 56px; border-radius: 13px; background: #fff; }
.bz2-home-tools .bz2-card h3 { overflow: hidden; font-size: 17px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-tools .bz2-card > p { min-height: 20px; margin: 10px 0 12px; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 1; }
.bz2-home-tools .bz2-tool-tags { min-height: 25px; flex-wrap: nowrap; overflow: hidden; margin-top: 0; }
.bz2-home-tools .bz2-tool-tags span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-tools .bz2-card-actions { justify-content: flex-end; min-height: 36px; margin-top: auto; padding-top: 10px; border-top: 0; }
.bz2-home-tools .bz2-card-actions .is-primary { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 6px 13px; border: 1px solid var(--bz2-blue); border-radius: 7px; background: #fff; color: var(--bz2-blue); font-size: 12px; font-weight: 750; line-height: 1.2; }
.bz2-home-tools .bz2-card-actions .is-primary:hover,
.bz2-home-tools .bz2-card-actions .is-primary:focus-visible { background: #f0f6ff; color: var(--bz2-blue-dark); }
.bz2-home-tools .bz2-card-actions .is-primary:focus-visible { outline: 3px solid rgba(23,105,255,.18); outline-offset: 2px; }
.bz2-resource-card { display: flex; min-width: 0; height: 100%; padding: 0; overflow: hidden; flex-direction: column; border-radius: 14px; }
.bz2-resource-card:hover { transform: translateY(-2px); border-color: #b8d1f6; box-shadow: 0 14px 30px rgba(24, 76, 157, .1); }
.bz2-resource-cover, .bz2-academy-cover { display: grid; height: 190px; place-items: center; overflow: hidden; background: #eaf1fb; color: var(--bz2-blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.bz2-resource-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 13px 13px 0 0; }
.bz2-resource-cover img, .bz2-academy-cover img { width: 100%; height: 100%; object-fit: cover; }
.bz2-resource-cover.has-fallback img { object-fit: cover; opacity: .92; }
.bz2-resource-body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 18px; }
.bz2-resource-type { align-self: flex-start; min-height: 26px; padding: 4px 9px; border-radius: 7px; background: #e8f2ff; color: #1769dc; font-size: 12px; font-weight: 800; line-height: 18px; }
.bz2-resource-body h3 { display: -webkit-box; overflow: hidden; min-height: 50px; margin: 8px 0 0; color: var(--bz2-ink); font-size: 18px; font-weight: 800; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-resource-capabilities { min-height: 0; gap: 7px; margin-top: 10px; }
.bz2-resource-capabilities span { min-height: 28px; padding: 4px 9px; border: 1px solid #d7e7ff; border-radius: 999px; background: #eef5ff; color: #2468d6; font-size: 12px; font-weight: 700; line-height: 18px; }
.bz2-resource-body > p { min-height: 48px; margin: 12px 0 0; color: #667085; font-size: 14px; font-weight: 400; line-height: 1.7; }
.bz2-resource-scenarios { display: flex; min-width: 0; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: #667085; font-size: 12px; }
.bz2-resource-scenarios span { min-height: 28px; max-width: 100%; padding: 4px 9px; overflow-wrap: anywhere; border: 1px solid #dbe5f3; border-radius: 999px; background: #f8fbff; line-height: 18px; }
.bz2-resource-card .bz2-card-actions { width: 100%; margin-top: auto; padding-top: 18px; border-top: 0; }
.bz2-resource-card .bz2-card-actions .is-primary { display: grid; width: 100%; min-height: 46px; place-items: center; padding: 10px 16px; border-radius: 9px; background: var(--bz2-blue); color: #fff; font-size: 15px; font-weight: 800; line-height: 1.4; }
.bz2-resource-card .bz2-card-actions .is-primary:hover,
.bz2-resource-card .bz2-card-actions .is-primary:focus-visible { background: #075bd7; box-shadow: 0 8px 18px rgba(26, 108, 232, .2); color: #fff; }
.bz2-resource-card .bz2-card-actions .is-primary:focus-visible { outline: 3px solid rgba(20, 105, 225, .25); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .bz2-resource-card,
  .bz2-resource-card .bz2-card-actions .is-primary { transition: none; }
}
.bz2-academy-card { display: flex; min-height: 392px; overflow: hidden; flex-direction: column; padding: 0; border-radius: 14px; }
.bz2-academy-cover { width: 100%; height: auto; margin: 0; aspect-ratio: 16 / 9; }
.bz2-academy-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 16px 18px; }
.bz2-academy-card .bz2-facts { min-height: 25px; }
.bz2-academy-card .baize-academy-member-badge { display: inline-flex; min-height: 25px; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid #e8cb8e; border-radius: 5px; background: #fff7e7; color: #825a17; font-size: 11px; font-weight: 750; }
.bz2-academy-card h3 { display: -webkit-box; overflow: hidden; min-height: 50px; margin: 11px 0 0; font-size: 18px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-academy-card .bz2-academy-body > p { display: -webkit-box; overflow: hidden; min-height: 48px; margin: 10px 0 14px; color: var(--bz2-muted); font-size: 14px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-academy-card .bz2-card-actions { margin-top: auto; padding-top: 12px; }
.bz2-empty { padding: 32px; border: 1px dashed #bdc9da; border-radius: 10px; background: #f7f9fc; text-align: center; }
.bz2-empty strong { font-size: 16px; }
.bz2-empty p { margin: 6px 0 0; color: var(--bz2-muted); font-size: 13px; }

.bz2-home-academy { padding: 0; border: 0; background: transparent; }
.bz2-home-academy .bz2-section-head > a { color: var(--bz2-blue); }
.bz2-home-resource-section .bz2-empty.is-compact { padding: 18px 22px; text-align: left; }
.bz2-home-cta, .bz2-directory-cta { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 48px; padding: 22px 30px; border-radius: 10px; background: #08245c; color: #fff; }
.bz2-home-cta > div, .bz2-directory-cta > div { display: flex; gap: 18px; align-items: center; }
.bz2-home-cta i, .bz2-directory-cta i { color: #72a9ff; font-size: 30px; }
.bz2-home-cta strong, .bz2-directory-cta strong { display: block; font-size: 19px; }
.bz2-home-cta span, .bz2-directory-cta span { color: #bdcbe2; font-size: 13px; }
.bz2-home-cta > a, .bz2-directory-cta > a { flex: 0 0 auto; padding: 12px 24px; border-radius: 7px; background: var(--bz2-blue); color: #fff; font-weight: 750; text-decoration: none; }

/* Directory hero and controls */
.bz2-directory-head { position: relative; display: flex; min-height: 500px; align-items: center; overflow: hidden; padding: 76px 0; background: var(--bz2-navy); color: #fff; }
.bz2-directory-tool .bz2-directory-head { background: #031027 url('../img/baize-tool-directory-network-v2.png') center center / cover no-repeat; }
.bz2-directory-resource .bz2-directory-head { width: 100%; margin: 0; border-radius: 0; background: #031027 url('../img/baize-resource-market-hero-v2.png') center center / cover no-repeat; }
.bz2-directory-hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(430px,.75fr); gap: 64px; align-items: center; }
.bz2-directory-copy { position: relative; z-index: 2; }
.bz2-directory-copy h1 { max-width: 900px; margin: 15px 0 18px; color: #fff; font-size: clamp(38px,2.35vw,46px); font-weight: 850; line-height: 1.16; letter-spacing: -.04em; }
.bz2-directory-copy p { max-width: 760px; margin: 0; color: #c7d3e6; font-size: 16px; line-height: 1.85; }
.bz2-directory-principles { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; color: #e4efff; font-size: 14px; }
.bz2-directory-principles i { margin-right: 7px; color: #5ba3ff; }
.bz2-directory-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.bz2-directory-stats > div { display: flex; min-height: 116px; flex-direction: column; align-items: center; justify-content: center; padding: 18px; border: 1px solid rgba(60,135,255,.68); border-radius: 11px; background: rgba(8,37,83,.82); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 32px rgba(0,0,0,.12); text-align: center; }
.bz2-directory-stats strong { color: #fff; font-size: 34px; line-height: 1; }
.bz2-directory-stats span { margin-top: 10px; color: #d1dded; font-size: 13px; line-height: 1.55; }
.bz2-directory-stats i { color: #68aaff; font-size: 29px; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list { grid-template-columns: 1fr; gap: 8px; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list > div { min-height: 68px; flex-direction: row; justify-content: flex-start; gap: 16px; padding: 12px 18px; text-align: left; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list i { flex: 0 0 30px; text-align: center; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list span { margin: 0; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list strong,
.bz2-directory-resource .bz2-directory-stats.is-resource-list small { display: block; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list strong { font-size: 17px; line-height: 1.35; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list small { margin-top: 2px; color: #afc1d9; font-size: 12px; line-height: 1.45; }
.bz2-directory-resource .bz2-directory-head::after { display: none; }
.bz2-directory-body { padding: 34px 0 82px; }
.bz2-taxonomy { display: flex; overflow-x: auto; gap: 10px; margin-bottom: 20px; padding: 0 0 3px; scrollbar-width: thin; }
.bz2-taxonomy a { flex: 0 0 auto; min-height: 44px; padding: 12px 19px; border: 1px solid var(--bz2-line); border-radius: 8px; background: #fff; color: #344054; font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.bz2-taxonomy a.is-active { border-color: var(--bz2-blue); background: var(--bz2-blue); color: #fff; }
.bz2-filter-panel { display: grid; grid-template-columns: minmax(320px,1fr) 220px auto auto; gap: 16px; align-items: end; margin-bottom: 34px; padding: 22px; border: 1px solid #dfe6f0; border-radius: 11px; background: #f9fbfe; box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.bz2-filter-search { display: flex; min-height: 42px; align-items: center; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; }
.bz2-filter-search input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
.bz2-filter-panel > label > span { display: block; margin-bottom: 5px; color: #667085; font-size: 12px; }
.bz2-filter-panel select { width: 100%; height: 42px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #344054; }
.bz2-filter-panel > a { display: grid; min-height: 42px; place-items: center; color: #667085; font-size: 13px; text-decoration: none; }
.bz2-results-head { align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--bz2-line); color: var(--bz2-muted); font-size: 13px; }
.bz2-results-head > div { display: flex; gap: 12px; align-items: baseline; }
.bz2-results-head h2 { margin: 0; color: var(--bz2-ink); font-size: 21px; }
.bz2-results-head strong { color: var(--bz2-ink); font-size: 14px; }
.bz2-results-meta { justify-content: flex-end; }
.bz2-tool-submit-link { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #cbdcff; border-radius: 7px; background: #f5f8ff; color: var(--bz2-blue); font-weight: 750; text-decoration: none; white-space: nowrap; }
.bz2-tool-submit-link:hover, .bz2-tool-submit-link:focus-visible { border-color: var(--bz2-blue); background: #eaf1ff; color: #174db8; }

/* AI tool filters use two rows of equal-width controls and multi-select menus. */
.bz2-directory-tool .bz2-tool-filter-panel { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-areas: "search search search sort tooltype scenario" "capability platform pricing chinese apply reset" "selected selected selected selected selected selected"; gap: 12px; align-items: stretch; max-width: 100%; }
.bz2-directory-tool .bz2-tool-filter-panel > * { min-width: 0; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-search { grid-area: search; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-sort { grid-area: sort; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-tool_type { grid-area: tooltype; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-capability { grid-area: capability; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-scenario { grid-area: scenario; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-platform { grid-area: platform; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-pricing_mode { grid-area: pricing; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-field-chinese_support { grid-area: chinese; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-apply { grid-area: apply; width: 100%; min-height: 42px; padding: 0 14px; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-reset { grid-area: reset; width: 100%; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-sort,
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter > summary { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; list-style: none; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-sort > span,
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter summary > span { flex: 0 0 auto; color: #667085; font-size: 12px; font-weight: 700; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-filter-sort select { width: 100%; min-width: 0; height: 40px; padding: 0 0 0 2px; border: 0; background: transparent; box-shadow: none; font-weight: 700; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter { position: relative; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter > summary::-webkit-details-marker { display: none; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter > summary > strong { min-width: 0; flex: 1; overflow: hidden; color: var(--bz2-ink); font-size: 13px; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter > summary > i { color: #7a8798; font-size: 14px; transition: transform .18s ease; }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter[open] > summary { border-color: #9dbdff; box-shadow: 0 0 0 3px rgba(23,105,255,.1); }
.bz2-directory-tool .bz2-tool-filter-panel .bz2-multifilter[open] > summary > i { transform: rotate(180deg); }

/* Resource filters share the tool directory's controls but use their own two-row field map. */
.bz2-directory-resource .bz2-resource-filter-panel { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-areas: "search search search sort resource_type resource_type" "capability scenario platform acquisition apply reset" "selected selected selected selected selected selected"; gap: 12px; align-items: stretch; max-width: 100%; }
.bz2-directory-resource .bz2-resource-filter-panel > * { min-width: 0; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-search { grid-area: search; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-sort { grid-area: sort; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-resource_type { grid-area: resource_type; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-capability { grid-area: capability; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-scenario { grid-area: scenario; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-platform { grid-area: platform; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-acquisition { grid-area: acquisition; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-apply { grid-area: apply; width: 100%; min-height: 42px; padding: 0 14px; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-reset { grid-area: reset; width: 100%; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-sort,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-resource_type,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-acquisition,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter > summary { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; list-style: none; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-sort > span,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-resource_type > span,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-acquisition > span,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter summary > span { flex: 0 0 auto; margin: 0; color: #667085; font-size: 12px; font-weight: 700; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-sort select,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-resource_type select,
.bz2-directory-resource .bz2-resource-filter-panel .bz2-filter-field-acquisition select { width: 100%; min-width: 0; height: 40px; padding: 0 0 0 2px; border: 0; background: transparent; box-shadow: none; font-weight: 700; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter { position: relative; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter > summary::-webkit-details-marker { display: none; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter > summary > strong { min-width: 0; flex: 1; overflow: hidden; color: var(--bz2-ink); font-size: 13px; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter > summary > i { color: #7a8798; font-size: 14px; transition: transform .18s ease; }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter[open] > summary { border-color: #9dbdff; box-shadow: 0 0 0 3px rgba(23,105,255,.1); }
.bz2-directory-resource .bz2-resource-filter-panel .bz2-multifilter[open] > summary > i { transform: rotate(180deg); }
.bz2-filter-popover { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0; display: grid; max-height: 246px; overflow-y: auto; padding: 8px; border: 1px solid #cbd9ec; border-radius: 8px; background: #fff; box-shadow: 0 16px 30px rgba(16,24,40,.14); }
.bz2-filter-popover label { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; color: #344054; cursor: pointer; font-size: 13px; line-height: 1.35; }
.bz2-filter-popover label:hover { background: #f2f6ff; }
.bz2-filter-popover input { width: 15px; height: 15px; margin: 0; accent-color: var(--bz2-blue); }
.bz2-selected-filters { grid-area: selected; display: flex; align-items: center; gap: 10px; min-width: 0; padding-top: 2px; }
.bz2-selected-filters[hidden] { display: none; }
.bz2-selected-filters > span { flex: 0 0 auto; color: #667085; font-size: 12px; font-weight: 700; }
.bz2-selected-filters > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 7px; }
.bz2-selected-filters button { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #cbdcff; border-radius: 999px; background: #f1f5ff; color: #285ccc; font-size: 12px; font-weight: 700; line-height: 1.2; }
.bz2-selected-filters button:hover, .bz2-selected-filters button:focus-visible { border-color: var(--bz2-blue); background: #e7efff; }
.bz2-directory .bz2-grid-tool { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.bz2-directory .bz2-grid-resource { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.bz2-directory .bz2-tool-card { min-height: 320px; height: 100%; padding: 16px; text-align: center; }
.bz2-directory .bz2-tool-card .bz2-tool-identity { flex-direction: column; gap: 6px; padding-right: 0; text-align: center; }
.bz2-directory .bz2-tool-card .bz2-tool-identity > div { width: 100%; }
.bz2-directory .bz2-tool-card h3 { font-size: 16px; line-height: 1.35; }
.bz2-directory .bz2-tool-card > p { min-height: 32px; margin: 6px 0 7px; font-size: 13px; line-height: 1.5; text-align: center; }
.bz2-directory .bz2-tool-card .bz2-tool-logo { flex-basis: 52px; width: 52px; height: 52px; border-radius: 12px; }
.bz2-directory .bz2-tool-card .bz2-card-badge { top: 0; right: 0; }
.bz2-directory .bz2-tool-card .bz2-tool-facts { margin-top: 0; padding-top: 5px; border-top: 1px solid #edf1f5; font-size: 13px; }
.bz2-directory .bz2-tool-card .bz2-tool-facts > div { min-height: 22px; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); align-items: center; gap: 4px; padding: 2px 0; text-align: center; }
.bz2-directory .bz2-tool-card .bz2-tool-facts dt, .bz2-directory .bz2-tool-card .bz2-tool-facts dd { text-align: center; }
.bz2-directory .bz2-tool-card .bz2-tool-facts dd { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory .bz2-tool-card .bz2-card-actions { margin-top: auto; padding-top: 8px; }
.bz2-directory .bz2-tool-card .bz2-card-actions .is-primary { width: 100%; min-height: 38px; display: grid; place-items: center; padding: 7px 12px; font-size: 14px; }
.bz2-directory-tool .bz2-tool-submission-banner { margin-top: 36px; }
.bz2-tool-submission-banner { width: min(100%, 1400px); margin-right: auto; margin-bottom: 30px; margin-left: auto; overflow: hidden; border-radius: 24px; background: transparent; box-shadow: 0 16px 34px rgba(12, 52, 127, .14); }
.bz2-tool-submission-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 350; object-fit: contain; }
.bz2-directory .bz2-resource-card { min-height: 0; }
.bz2-directory .bz2-resource-cover { height: auto; min-height: 0; }
.bz2-directory .bz2-resource-body { min-height: 0; padding: 18px; }
.bz2-directory .bz2-resource-body > p { min-height: 48px; margin: 12px 0 0; -webkit-line-clamp: 2; }
.bz2-directory .bz2-resource-facts > div:nth-child(n+4) { display: none; }
.bz2-directory .bz2-resource-card .bz2-card-actions .is-primary { min-width: 0; }
.bz2-resource-facts { margin-top: 4px; padding: 8px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.bz2-pagination { margin-top: 32px; }
.bz2-pagination ul { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bz2-pagination a, .bz2-pagination span { display: grid; min-width: 36px; height: 36px; place-items: center; padding: 0 9px; border: 1px solid var(--bz2-line); border-radius: 6px; color: var(--bz2-blue); text-decoration: none; }
.bz2-pagination .current { border-color: var(--bz2-blue); background: var(--bz2-blue); color: #fff; }
.bz2-directory-cta { margin: 36px 0 0; background: var(--bz2-blue-dark); }
.bz2-directory-cta > a { background: #fff; color: var(--bz2-blue-dark); }
.bz2-quality-grid { margin-top: 40px; }
.bz2-quality-grid h2 { margin: 0 0 16px; font-size: 24px; }
.bz2-quality-grid > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.bz2-quality-grid article { display: grid; grid-template-columns: 42px 1fr; padding: 19px; border: 1px solid #e1e6ee; border-radius: 9px; }
.bz2-quality-grid article i { grid-row: 1 / 3; color: var(--bz2-blue); font-size: 24px; }
.bz2-quality-grid article strong { font-size: 14px; }
.bz2-quality-grid article span { margin-top: 5px; color: var(--bz2-muted); font-size: 12px; line-height: 1.55; }
.bz2-detail-contract { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 11px 13px; border: 1px solid #dbe5f3; border-radius: 9px; background: #f8fbff; color: #475467; font-size: 13px; }
.bz2-detail-contract span { color: var(--bz2-blue); font-weight: 850; }

@media (max-width: 1380px) {
  .bz2-shell { width: min(100% - 40px,1400px); }
}

@media (max-width: 1100px) {
  .bz2-home-hero, .bz2-home-hero-grid { min-height: 610px; }
  .bz2-home-hero-grid { align-items: center; }
  .bz2-home-hero-copy { padding-left: 0; }
  .bz2-home-hero-copy > p, .bz2-search-dark, .bz2-hot-search { width: auto; max-width: 650px; }
  .bz2-quality-assurance { grid-template-columns: 1fr; gap: 22px; }
  .bz2-quality-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  .bz2-quality-cards article:nth-child(3) { padding-left: 16px; }
  .bz2-home-hero-grid { grid-template-columns: 1fr 1fr; }
  .bz2-home-hero-art { right: calc((100vw - 100%) / -2); width: calc(72% + (100vw - 100%) / 2); }
  .bz2-channels, .bz2-grid-tool, .bz2-grid-resource, .bz2-directory .bz2-grid-tool, .bz2-directory .bz2-grid-resource { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bz2-directory .bz2-resource-cover { height: auto; min-height: 0; }
  .bz2-directory-tool .bz2-tool-filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-areas: "search search sort" "tooltype scenario capability" "platform pricing chinese" "apply reset reset" "selected selected selected"; }
  .bz2-directory-resource .bz2-resource-filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-areas: "search search sort" "resource_type capability scenario" "platform acquisition apply" "reset reset reset" "selected selected selected"; }
}

@media (max-width: 760px) {
  .bz2-shell { width: min(100% - 28px,1400px); }
  .bz2-home-hero { min-height: 680px; }
  .bz2-home-hero-grid { display: block; min-height: 680px; }
  .bz2-home-hero-copy { padding: 44px 0 245px; }
  .bz2-home-hero-copy h1 { font-size: 38px; }
  .bz2-home-hero-copy > p { font-size: 14px; }
  .bz2-home-hero-art { top: auto; right: -150px; bottom: 0; width: 680px; height: 350px; opacity: .72; }
  .bz2-home-hero-art::after { background: linear-gradient(180deg, var(--bz2-navy), rgba(3,16,39,0) 40%); }
  .bz2-hero-actions { flex-wrap: wrap; }
  .bz2-button { flex: 1; padding-inline: 14px; }
  .bz2-search-dark { position: relative; z-index: 2; }
  .bz2-search-dark button { padding-inline: 13px; }
  .bz2-hot-search { display: none; }
  .bz2-channels { grid-template-columns: 1fr 1fr; gap: 11px; margin-top: -30px; }
  .bz2-channel { min-height: 210px; grid-template-columns: 42px 1fr; gap: 11px; padding: 17px 14px; }
  .bz2-channel > i { width: 40px; height: 40px; font-size: 18px; }
  .bz2-channel > b { display: none; }
  .bz2-channel span { font-size: 16px; }
  .bz2-channel strong { font-size: 11px; }
  .bz2-channel ul, .bz2-channel small { margin-left: -53px; }
  .bz2-channel::after { width: 50%; height: 54%; }
  .bz2-quality-assurance { padding: 20px 0; }
  .bz2-quality-cards article { padding: 0 12px; }
  .bz2-quality-cards article:first-child { padding-left: 12px; }
  .bz2-quality-cards article:nth-child(3) { padding-left: 12px; }
  .bz2-grid-tool, .bz2-grid-resource, .bz2-grid-academy, .bz2-directory .bz2-grid-tool, .bz2-directory .bz2-grid-resource { grid-template-columns: 1fr; }
  .bz2-section { margin-bottom: 46px; }
  .bz2-section-head { align-items: flex-start; }
  .bz2-section-head h2 { font-size: 23px; }
  .bz2-academy-entry > a { position: static; display: inline-block; margin-top: 16px; }
  .bz2-home-cta, .bz2-directory-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .bz2-home-cta > a, .bz2-directory-cta > a { width: 100%; text-align: center; }
  .bz2-directory-head { min-height: 0; padding: 52px 0; }
  .bz2-directory-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .bz2-directory-copy h1 { font-size: 34px; }
  .bz2-directory-principles { gap: 10px 18px; }
  .bz2-directory-stats > div { min-height: 82px; }
  .bz2-filter-panel { grid-template-columns: 1fr 1fr; }
  .bz2-filter-search { grid-column: 1 / -1; }
  .bz2-filter-panel > button, .bz2-filter-panel > a { width: 100%; }
  .bz2-results-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bz2-results-meta { width: 100%; justify-content: space-between; }
  .bz2-directory-tool .bz2-tool-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "search search" "sort tooltype" "scenario capability" "platform pricing" "chinese chinese" "apply reset" "selected selected"; }
  .bz2-directory-resource .bz2-resource-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "search search" "sort resource_type" "capability scenario" "platform acquisition" "apply reset" "selected selected"; }
  .bz2-directory .bz2-tool-card { min-height: 0; }
  .bz2-directory .bz2-resource-card { min-height: 0; }
  .bz2-directory .bz2-resource-cover { height: auto; min-height: 0; }
  .bz2-resource-body { min-height: 0; padding: 16px; }
  .bz2-resource-body h3 { min-height: 0; }
  .bz2-quality-grid > div { grid-template-columns: 1fr; }
  .bz2-tool-submission-banner { border-radius: 10px; }
}

@media (max-width: 560px) {
  .bz2-directory-tool .bz2-tool-filter-panel { grid-template-columns: 1fr; grid-template-areas: "search" "sort" "tooltype" "scenario" "capability" "platform" "pricing" "chinese" "apply" "reset" "selected"; }
  .bz2-directory-resource .bz2-resource-filter-panel { grid-template-columns: 1fr; grid-template-areas: "search" "sort" "resource_type" "capability" "scenario" "platform" "acquisition" "apply" "reset" "selected"; }
  .bz2-selected-filters { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .bz2-home-hero-copy h1 { font-size: 34px; }
  .bz2-channels { grid-template-columns: 1fr; }
  .bz2-channel { min-height: 210px; }
  .bz2-quality-cards { grid-template-columns: 1fr; gap: 14px; }
  .bz2-quality-cards article { min-height: 52px; }
  .bz2-filter-panel { grid-template-columns: 1fr; }
  .bz2-filter-search { grid-column: auto; }
  .bz2-results-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 1100px) {
  .bz2-home-tools .bz2-grid-tool { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 980px) {
  .bz2-home-tools .bz2-grid-tool { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bz2-home-tools .bz2-grid-tool { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bz2-home-tools .bz2-tool-card { min-height: 178px; padding: 14px; }
  .bz2-home-tools .bz2-tool-logo { flex-basis: 48px; width: 48px; height: 48px; }
  .bz2-home-tools .bz2-card h3 { font-size: 15px; }
}

@media (max-width: 520px) {
  .bz2-home-tools .bz2-grid-tool { grid-template-columns: 1fr; }
}

/* BAIZE-139: AI tool directory-only information hierarchy. */
.bz2-directory-tool .bz2-directory-body { padding-top: 28px; padding-bottom: 4px; }
.bz2-directory-tool .bz2-tools-recommended { margin: 0 0 28px; padding: 22px; border-color: #d9e8fb; background: linear-gradient(135deg, #f8fbff 0%, #fff 76%); }
.bz2-directory-tool .bz2-tools-recommended .bz2-section-head { margin-bottom: 17px; }
.bz2-directory-tool .bz2-tools-recommended .bz2-section-head h2 { font-size: 24px; }
.bz2-tools-recommended-layout { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: 16px; }
.bz2-tools-recommended-primary, .bz2-tools-recommended-secondary { min-width: 0; }
.bz2-tools-recommended-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.bz2-tool-card-link { display: flex; height: 100%; min-width: 0; flex-direction: column; color: inherit; text-decoration: none !important; }
.bz2-tool-card.is-recommended-primary { min-height: 300px; padding: 26px; border: 0; background: linear-gradient(145deg, #e7f0ff 0%, #fafdff 58%, #dceaff 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.bz2-tool-card.is-recommended-primary .bz2-tool-identity { gap: 15px; padding: 0; }
.bz2-tool-card.is-recommended-primary .bz2-tool-logo { flex-basis: 68px; width: 68px; height: 68px; border-radius: 17px; background: #fff; }
.bz2-tool-card.is-recommended-primary h3 { font-size: 22px; }
.bz2-tool-card.is-recommended-primary > .bz2-tool-card-link > p { min-height: 0; margin: 20px 0 14px; font-size: 14px; line-height: 1.75; }
.bz2-tool-card.is-recommended-primary .bz2-tool-tags { margin-top: 0; }
.bz2-tool-card.is-recommended-primary .bz2-card-actions { margin-top: auto; padding-top: 17px; border: 0; }
.bz2-tool-card.is-recommended-primary .bz2-card-actions .is-primary { display: inline-flex; min-width: 142px; min-height: 40px; align-items: center; justify-content: center; gap: 10px; padding: 8px 17px; }
.bz2-tool-card.is-recommended-secondary { position: relative; min-height: 138px; padding: 15px; border-color: #e0eaf7; box-shadow: 0 5px 14px rgba(28,75,139,.035); }
.bz2-tool-card.is-recommended-secondary:hover { border-color: #b9d1f6; }
.bz2-tool-card.is-recommended-secondary .bz2-tool-identity { gap: 10px; padding: 0 22px 0 0; }
.bz2-tool-card.is-recommended-secondary .bz2-tool-logo { flex-basis: 42px; width: 42px; height: 42px; border-radius: 11px; }
.bz2-tool-card.is-recommended-secondary h3 { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p { min-height: 38px; margin: 9px 0 8px; font-size: 12px; line-height: 1.55; }
.bz2-tool-card.is-recommended-secondary .bz2-tool-tags { overflow: hidden; flex-wrap: nowrap; }
.bz2-tool-card.is-recommended-secondary .bz2-tool-tags span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz2-recommended-arrow { position: absolute; top: 18px; right: 15px; color: #6b9ce8; font-size: 13px; }

.bz2-tools-directory-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 24px; align-items: start; }
.bz2-tools-directory-nav { position: sticky; top: 96px; padding: 18px 10px 12px; border: 1px solid #e1eaf6; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(24,65,122,.045); }
.bz2-tools-directory-nav h2 { margin: 0 8px 14px; color: #14213a; font-size: 17px; font-weight: 850; }
.bz2-tools-directory-nav a, .bz2-tools-directory-nav-group > span.is-unavailable { display: flex; min-height: 36px; align-items: center; gap: 9px; padding: 0 9px; border-radius: 7px; color: #53647c; font-size: 13px; font-weight: 650; text-decoration: none; }
.bz2-tools-directory-nav a:hover { background: #f1f6ff; color: #1769ff; }
.bz2-tools-directory-nav a > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz2-tools-directory-nav a > b { color: #9aa8bb; font-size: 12px; font-weight: 650; }
.bz2-tools-directory-nav a.is-active, .bz2-tools-directory-all.is-active { background: #1769ff; color: #fff; box-shadow: 0 5px 12px rgba(23,105,255,.19); }
.bz2-tools-directory-nav a.is-active > b, .bz2-tools-directory-all.is-active > b { color: #e6efff; }
.bz2-tools-directory-all { margin-bottom: 13px; }
.bz2-tools-directory-nav-group { display: grid; gap: 2px; padding: 13px 0; border-top: 1px solid #edf1f6; }
.bz2-tools-directory-nav-group > span:not(.is-unavailable) { padding: 0 9px 5px; color: #8a98ab; font-size: 12px; font-weight: 800; }
.bz2-tools-directory-nav-group.is-utility { margin-top: 4px; }
.bz2-tools-directory-nav-group.is-utility .is-unavailable { color: #9aa8b9; cursor: help; }
.bz2-tools-directory-nav-group.is-utility i { width: 15px; color: #5e89d4; text-align: center; }
.bz2-tools-directory-main { min-width: 0; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { grid-template-columns: minmax(200px, 1.6fr) minmax(112px, .72fr) minmax(118px, .8fr) minmax(118px, .8fr) auto auto; grid-template-areas: "search sort pricing platform more apply" "selected selected selected selected selected reset"; gap: 10px; margin: 0 0 25px; padding: 14px; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-search { grid-area: search; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort { grid-area: sort; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-field-pricing_mode { grid-area: pricing; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-field-platform { grid-area: platform; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters { grid-area: more; position: relative; min-width: 0; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > summary::-webkit-details-marker { display: none; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters[open] > summary { border-color: #9dbdff; box-shadow: 0 0 0 3px rgba(23,105,255,.1); }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters[open] > summary i { transform: rotate(180deg); }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > div { position: absolute; z-index: 31; top: calc(100% + 6px); right: 0; display: grid; grid-template-columns: minmax(162px, 1fr); gap: 7px; width: min(440px, calc(100vw - 72px)); padding: 10px; border: 1px solid #cbd9ec; border-radius: 9px; background: #fff; box-shadow: 0 16px 30px rgba(16,24,40,.14); }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters .bz2-multifilter { position: relative; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters .bz2-multifilter > summary { display: flex; min-height: 39px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; cursor: pointer; list-style: none; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters .bz2-multifilter > summary::-webkit-details-marker { display: none; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-apply { grid-area: apply; min-height: 42px; padding-inline: 16px; white-space: nowrap; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset { grid-area: reset; display: grid; min-height: 42px; place-items: center; padding: 0 13px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #526178; font-size: 13px; font-weight: 700; text-decoration: none; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-selected-filters { grid-area: selected; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-grid-tool { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact { min-height: 166px; height: 100%; padding: 15px; text-align: left; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-identity { gap: 10px; padding: 0; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-logo { flex-basis: 42px; width: 42px; height: 42px; border-radius: 11px; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact h3 { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact > .bz2-tool-card-link > p { min-height: 40px; margin: 11px 0 10px; font-size: 12px; line-height: 1.65; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-tags { margin-top: auto; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-tags span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-pagination { margin-top: 26px; }

/* BAIZE-139 round two: keep curation editorial and the directory compact. */
.bz2-tools-recommended-count-7 .bz2-tools-recommended-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); }
.bz2-tools-recommended-secondary-count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz2-tools-recommended-secondary-count-1 { grid-template-columns: 1fr; }
.bz2-tools-recommended-secondary-count-2,
.bz2-tools-recommended-secondary-count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bz2-tools-recommended-secondary-count-7,
.bz2-tools-recommended-secondary-count-8,
.bz2-tools-recommended-secondary-count-9,
.bz2-tools-recommended-secondary-count-10,
.bz2-tools-recommended-secondary-count-11 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz2-tool-card.is-recommended-primary { min-height: 296px; }
.bz2-recommended-kicker { display: block; margin-bottom: 12px; color: #276bd7; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.bz2-recommended-primary-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(74,132,216,.18); }
.bz2-recommended-primary-facts span { min-width: 0; }
.bz2-recommended-primary-facts small, .bz2-recommended-primary-facts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz2-recommended-primary-facts small { color: #70819a; font-size: 11px; }
.bz2-recommended-primary-facts b { margin-top: 3px; color: #244262; font-size: 12px; }
.bz2-tools-directory-nav { padding: 18px 10px 12px; }
.bz2-tools-directory-nav h2 { margin-bottom: 2px; }
.bz2-tools-directory-nav-hint { margin: 0 8px 13px; color: #8492a5; font-size: 11px; line-height: 1.45; }
.bz2-tools-directory-nav a, .bz2-tools-directory-nav-group > span.is-unavailable { position: relative; border-radius: 6px; }
.bz2-tools-directory-nav a.is-active, .bz2-tools-directory-all.is-active { border-radius: 6px; background: #edf5ff; color: #1769df; box-shadow: none; }
.bz2-tools-directory-nav a.is-active::before, .bz2-tools-directory-all.is-active::before { position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; border-radius: 3px; background: #1769df; content: ''; }
.bz2-tools-directory-nav a.is-active > b, .bz2-tools-directory-all.is-active > b { color: #1769df; }
.bz2-tools-directory-nav-group.is-utility > span:not(.is-unavailable) { padding-bottom: 7px; }
.bz2-tools-directory-nav-group.is-utility .is-unavailable { gap: 7px; }
.bz2-tools-directory-nav-group.is-utility .is-unavailable em { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #f3f6fa; color: #9aa8b9; font-size: 10px; font-style: normal; font-weight: 700; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-areas: "search search search search search" "sort pricing platform more apply" "selected selected selected selected reset"; gap: 10px; }
.bz2-tool-capability-nav { display: flex; align-items: flex-start; gap: 13px; margin: -10px 0 18px; padding: 0 1px; }
.bz2-tool-capability-nav > strong { flex: 0 0 auto; padding-top: 6px; color: #53647c; font-size: 12px; }
.bz2-tool-capability-nav > div { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; gap: 7px; }
.bz2-tool-capability-nav a, .bz2-tool-capability-nav summary { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 10px; border: 1px solid #e1e9f5; border-radius: 999px; background: #f8fbff; color: #5e6f87; font-size: 12px; font-weight: 650; line-height: 1.25; text-decoration: none; cursor: pointer; list-style: none; }
.bz2-tool-capability-nav a:hover, .bz2-tool-capability-nav a.is-active, .bz2-tool-capability-nav details[open] summary { border-color: #a8c7f5; background: #1769df; color: #fff; }
.bz2-tool-capability-nav summary::-webkit-details-marker { display: none; }
.bz2-tool-capability-nav summary i { margin-left: 5px; }
.bz2-tool-capability-nav details { position: relative; }
.bz2-tool-capability-nav details > div { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: flex; width: min(390px, calc(100vw - 72px)); flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid #cbd9ec; border-radius: 10px; background: #fff; box-shadow: 0 16px 30px rgba(16,24,40,.14); }
.bz2-directory-tool .bz2-tool-card.is-directory-compact { min-height: 118px; padding: 14px; border-color: #e3eaf3; box-shadow: 0 4px 12px rgba(28,75,139,.025); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact:hover { transform: translateY(-2px); border-color: #a8c9fa; box-shadow: 0 8px 18px rgba(28,75,139,.09); }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-logo { flex-basis: 42px; width: 42px; height: 42px; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact > .bz2-tool-card-link > p { display: -webkit-box; min-height: 36px; margin: 9px 0 0; overflow: hidden; color: #728197; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-tags { display: none; }

/* BAIZE-139 round three: directory cards read as a navigational index, not an app grid. */
.bz2-directory-tool .bz2-tool-card.is-directory-compact { position: relative; display: block; min-height: 106px; padding: 13px; overflow: hidden; border-color: #e7edf5; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(28, 75, 139, .025); text-align: left; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact:hover { transform: translateY(-1px); border-color: #b8d4fb; box-shadow: 0 8px 18px rgba(28, 75, 139, .08); }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-card-link { position: relative; display: block; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-identity { min-width: 0; flex-direction: row; align-items: flex-start; gap: 11px; padding: 0 14px 0 0; text-align: left; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-logo { flex: 0 0 40px; width: 40px; height: 40px; border-color: #e6edf6; border-radius: 10px; background: #fbfcfe; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 1px; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-copy > strong { display: block; width: 100%; overflow: hidden; color: #24364e; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-copy > span { display: -webkit-box; width: 100%; min-height: 35px; overflow: hidden; color: #748297; font-size: 12px; line-height: 1.48; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-arrow { position: absolute; top: 1px; right: 0; color: #8aafe4; font-size: 15px; line-height: 1; opacity: 0; transform: translateX(-2px); transition: opacity .15s ease, transform .15s ease; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact:hover .bz2-tool-compact-copy > strong { color: #1769df; }
.bz2-directory-tool .bz2-tool-card.is-directory-compact:hover .bz2-tool-compact-arrow { opacity: 1; transform: translateX(0); }

.bz2-directory-tool .bz2-tool-card.is-recommended-primary .bz2-tool-identity,
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-identity { flex-direction: row; align-items: center; text-align: left; }
.bz2-directory-tool .bz2-tool-card.is-recommended-primary > .bz2-tool-card-link > p,
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p { text-align: left; }
.bz2-directory-tool .bz2-tool-card.is-recommended-primary { min-height: 292px; background: linear-gradient(145deg, #edf5ff 0%, #fbfdff 63%, #e5f0ff 100%); }
.bz2-directory-tool .bz2-tool-card.is-recommended-primary .bz2-card-actions { padding-top: 13px; }
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary { min-height: 132px; padding: 14px; }
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p { min-height: 34px; margin: 7px 0; }

/* BAIZE-140: separate the curated list view from the small top recommendation showcase. */
.bz2-directory-tool #bz2-tool-results { scroll-margin-top: 118px; }
.bz2-directory-tool .bz2-tools-recommended .bz2-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.bz2-tools-recommended-more { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-top: 4px; color: #1769df; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bz2-tools-recommended-more:hover, .bz2-tools-recommended-more:focus-visible { color: #0d54bb; text-decoration: underline; }
.bz2-directory-tool .bz2-tool-card.is-recommended-primary > .bz2-tool-card-link > p,
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-tool .bz2-tool-card.is-recommended-primary > .bz2-tool-card-link > p { min-height: 49px; max-height: 49px; }
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p { min-height: 37px; max-height: 37px; }
.bz2-directory-tool .bz2-results-head.is-hot-tools-view h2::before { display: inline-block; margin-right: 8px; color: #ef9145; font-family: FontAwesome; font-size: .9em; content: '\f06d'; }

@media (max-width: 640px) {
  .bz2-directory-tool .bz2-tools-recommended .bz2-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bz2-tools-recommended-more { margin-top: 0; }
}

.bz2-directory-tool .bz2-tools-directory-nav { padding: 17px 10px 12px; border-color: #e6edf5; border-radius: 13px; box-shadow: 0 6px 18px rgba(28, 75, 139, .035); }
.bz2-directory-tool .bz2-tools-directory-nav h2 { display: flex; align-items: center; gap: 7px; margin: 0 8px 2px; color: #1d2c41; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.bz2-directory-tool .bz2-tools-directory-nav h2 i { color: #4a85dd; font-size: 16px; }
.bz2-directory-tool .bz2-tools-directory-nav-hint { margin-bottom: 15px; color: #8b98a9; font-size: 11px; }
.bz2-directory-tool .bz2-tools-directory-nav a,
.bz2-directory-tool .bz2-tools-directory-nav-group > span.is-unavailable { min-height: 35px; gap: 8px; padding: 0 9px; border-radius: 7px; color: #4d5e74; font-size: 13px; font-weight: 650; }
.bz2-directory-tool .bz2-tools-directory-nav a > i { flex: 0 0 16px; width: 16px; color: #7d95b5; font-size: 14px; text-align: center; }
.bz2-directory-tool .bz2-tools-directory-nav a:hover { background: #f5f8fd; color: #245fae; }
.bz2-directory-tool .bz2-tools-directory-nav a:hover > i { color: #397bd9; }
.bz2-directory-tool .bz2-tools-directory-nav a.is-active,
.bz2-directory-tool .bz2-tools-directory-all.is-active { background: #edf5ff; color: #1769df; box-shadow: none; }
.bz2-directory-tool .bz2-tools-directory-nav a.is-active > i,
.bz2-directory-tool .bz2-tools-directory-nav a.is-active > b,
.bz2-directory-tool .bz2-tools-directory-all.is-active > b { color: #1769df; }
.bz2-directory-tool .bz2-tools-directory-nav a.is-active::before,
.bz2-directory-tool .bz2-tools-directory-all.is-active::before { top: 7px; bottom: 7px; }
.bz2-directory-tool .bz2-tools-directory-all { margin-bottom: 14px; }
.bz2-directory-tool .bz2-tools-directory-nav-group { gap: 2px; padding: 14px 0; border-top-color: #eef2f7; }
.bz2-directory-tool .bz2-tools-directory-nav-group > span:not(.is-unavailable) { display: flex; align-items: center; gap: 8px; padding: 0 9px 7px; color: #8090a5; font-size: 11px; font-weight: 800; letter-spacing: .035em; }
.bz2-directory-tool .bz2-tools-directory-nav-group > span:not(.is-unavailable)::after { height: 1px; flex: 1; background: #edf2f7; content: ''; }
.bz2-directory-tool .bz2-tools-directory-nav-group.is-utility { margin-top: 2px; }
.bz2-directory-tool .bz2-tools-directory-nav-group.is-utility a > i { color: #e28a49; }
.bz2-directory-tool .bz2-tools-directory-nav-group.is-utility .is-unavailable { color: #98a4b4; cursor: default; }
.bz2-directory-tool .bz2-tools-directory-nav-group.is-utility .is-unavailable i { color: #98aeca; }

/* BAIZE-148: clearer tool navigation without changing its links or filters. */
.bz2-directory-tool .bz2-tools-directory-nav a { min-height: 41px; gap: 11px; padding: 0 11px; color: #334155; font-size: 14px; font-weight: 550; }
.bz2-directory-tool .bz2-tools-directory-nav a > i { flex-basis: 18px; width: 18px; color: #6487b2; font-size: 15px; }
.bz2-directory-tool .bz2-tools-directory-nav a > b { color: #687f9b; font-size: 12px; }
.bz2-directory-tool .bz2-tools-directory-nav a:hover { background: #eaf3ff; color: #1459be; }
.bz2-directory-tool .bz2-tools-directory-nav-group { gap: 4px; padding: 17px 0; }
.bz2-directory-tool .bz2-tools-directory-nav a.is-active,
.bz2-directory-tool .bz2-tools-directory-all.is-active { background: #e9f3ff; color: #1769df; }

.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { margin-bottom: 21px; padding: 12px; border-color: #edf1f6; border-radius: 11px; background: #fbfcfe; box-shadow: 0 3px 12px rgba(28, 75, 139, .025); }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-search,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort,
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > summary { min-height: 40px; border-color: #e1e8f1; border-radius: 7px; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-search input { height: 38px; font-size: 13px; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort select { height: 38px; font-size: 12px; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-apply,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset { min-height: 40px; }
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset { border-color: transparent; background: transparent; color: #77869a; }

.bz2-directory-tool .bz2-tool-capability-nav { display: flex; align-items: stretch; flex-direction: column; gap: 8px; margin: -2px 0 20px; padding: 0; }
.bz2-directory-tool .bz2-tool-capability-nav > strong { padding: 0; color: #53657c; font-size: 12px; font-weight: 800; }
.bz2-directory-tool .bz2-tool-capability-links { display: flex; flex-wrap: wrap; gap: 7px; }
.bz2-directory-tool .bz2-tool-capability-nav a,
.bz2-directory-tool .bz2-tool-capability-nav summary { min-height: 28px; padding: 3px 10px; border: 0; border-radius: 7px; background: #f2f6fb; color: #52667e; font-size: 12px; font-weight: 650; }
.bz2-directory-tool .bz2-tool-capability-nav a:hover { background: #e7f1ff; color: #1769df; }
.bz2-directory-tool .bz2-tool-capability-nav a.is-active,
.bz2-directory-tool .bz2-tool-capability-nav details[open] summary { background: #1769df; color: #fff; }

/* BAIZE-148: larger capability tabs; the existing wrap and More menu remain intact. */
.bz2-directory-tool .bz2-tool-capability-links { gap: 8px; }
.bz2-directory-tool .bz2-tool-capability-nav a,
.bz2-directory-tool .bz2-tool-capability-nav summary { min-height: 36px; padding: 7px 16px; border: 1px solid #d6e2f1; border-radius: 9px; background: #f8fbff; color: #334b68; font-size: 13px; font-weight: 600; }
.bz2-directory-tool .bz2-tool-capability-nav a:hover,
.bz2-directory-tool .bz2-tool-capability-nav summary:hover { border-color: #a9c9f4; background: #eaf3ff; color: #1769df; }
.bz2-directory-tool .bz2-tool-capability-nav a.is-active,
.bz2-directory-tool .bz2-tool-capability-nav details[open] summary { border-color: #1769df; background: #1769df; color: #fff; }

/* Homepage Academy cards only. */
.bz2-home-academy .bz2-academy-card .bz2-card-actions { display: flex; width: 100%; margin-top: auto; padding-top: 12px; }
.bz2-home-academy .bz2-academy-card .bz2-card-actions a { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; background: #1769df; color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.bz2-home-academy .bz2-academy-card .bz2-card-actions a:hover,
.bz2-home-academy .bz2-academy-card .bz2-card-actions a:focus-visible { background: #0d55be; color: #fff; transform: translateY(-1px); }

@media (max-width: 1180px) {
  .bz2-directory-tool .bz2-tools-directory-main .bz2-grid-tool { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "search search search search" "sort pricing platform more" "apply reset selected selected"; }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > div { left: 0; right: auto; }
}

@media (max-width: 900px) {
  .bz2-tools-recommended-layout { grid-template-columns: 1fr; }
  .bz2-tools-directory-layout { grid-template-columns: 1fr; gap: 16px; }
  .bz2-tools-directory-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; white-space: nowrap; }
  .bz2-tools-directory-nav h2, .bz2-tools-directory-nav-hint, .bz2-tools-directory-nav-group > span:not(.is-unavailable) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .bz2-tools-directory-nav a, .bz2-tools-directory-nav-group > span.is-unavailable { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 1px solid #e1e9f5; }
  .bz2-tools-directory-nav a > b { display: none; }
  .bz2-tools-directory-nav-group { display: flex; gap: 7px; padding: 0; border: 0; }
  .bz2-tools-directory-nav-group.is-utility { margin: 0; }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "search search" "sort pricing" "platform more" "apply reset" "selected selected"; }
  .bz2-tools-recommended-secondary-count-6, .bz2-tools-recommended-secondary-count-7, .bz2-tools-recommended-secondary-count-8, .bz2-tools-recommended-secondary-count-9, .bz2-tools-recommended-secondary-count-10, .bz2-tools-recommended-secondary-count-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bz2-directory-tool .bz2-directory-body { padding-top: 18px; }
  .bz2-directory-tool .bz2-tools-recommended { padding: 15px; }
  .bz2-tools-recommended-secondary { grid-template-columns: 1fr; }
  .bz2-recommended-primary-facts { grid-template-columns: 1fr 1fr; }
  .bz2-tool-capability-nav { flex-direction: column; gap: 6px; margin-top: -6px; }
  .bz2-tool-capability-nav > strong { padding-top: 0; }
  .bz2-tool-card.is-recommended-primary { min-height: 260px; padding: 20px; }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-grid-tool { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bz2-directory-tool .bz2-tool-card.is-directory-compact { min-height: 108px; padding: 12px; }
  .bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-identity { flex-direction: row; align-items: flex-start; }
  .bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-copy > strong { font-size: 14px; }
  .bz2-directory-tool .bz2-tool-card.is-directory-compact .bz2-tool-compact-copy > span { font-size: 12px; }
  .bz2-directory-tool .bz2-tool-capability-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .bz2-directory-tool .bz2-tool-capability-links > a, .bz2-directory-tool .bz2-tool-capability-links > details { flex: 0 0 auto; }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel { grid-template-columns: 1fr; grid-template-areas: "search" "sort" "pricing" "platform" "more" "apply" "reset" "selected"; }
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > div { left: 0; width: min(340px, calc(100vw - 56px)); }
}

@media (max-width: 390px) {
  .bz2-directory-tool .bz2-tools-directory-main .bz2-grid-tool { grid-template-columns: 1fr; }
}

/* BAIZE-117: directory CTA uses the page container and a semantic, linked layout. */
.bz2-tool-submission-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  min-height: 272px;
  margin: 34px 0 0;
  border: 1px solid rgba(56, 116, 223, .34);
  border-radius: 18px;
  background: linear-gradient(112deg, #092577 0%, #0b3aaa 58%, #0d2b7f 100%);
  box-shadow: 0 16px 34px rgba(12, 52, 127, .14);
  color: #fff;
  isolation: isolate;
}

.bz2-tool-submission-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 22px 30px clamp(28px, 4vw, 58px);
}

.bz2-tool-submission-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(224, 237, 255, .9);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .035em;
}

.bz2-tool-submission-brand i { color: #8bc5ff; font-size: 15px; }

.bz2-tool-submission-copy h2 {
  max-width: 560px;
  margin: 11px 0 8px;
  color: #fff;
  font-size: clamp(25px, 2.25vw, 34px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.bz2-tool-submission-copy > p {
  max-width: 570px;
  margin: 0;
  color: rgba(224, 237, 255, .88);
  font-size: 14px;
  line-height: 1.7;
}

.bz2-tool-submission-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 15px 0 17px;
  padding: 0;
  list-style: none;
}

.bz2-tool-submission-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(244, 249, 255, .92);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bz2-tool-submission-benefits i { color: #83c4ff; font-size: 14px; }

.bz2-tool-submission-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 24, 94, .22);
  color: #1555bf;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.bz2-tool-submission-action:hover,
.bz2-tool-submission-action:focus-visible {
  background: #eaf4ff;
  box-shadow: 0 11px 23px rgba(0, 24, 94, .28);
  color: #1049a8;
  transform: translateY(-1px);
}

.bz2-tool-submission-action:active { transform: translateY(0); }

.bz2-tool-submission-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 0 17px 17px 0;
}

.bz2-tool-submission-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #0b3aaa 0%, #0b3aaa 17%, rgba(11, 58, 170, .18) 43%, rgba(11, 58, 170, 0) 100%);
  content: '';
}

.bz2-tool-submission-art::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 82px;
  background: linear-gradient(90deg, #0b3aaa 0%, #0c348f 46%, #0d2b7f 100%);
  content: '';
}

.bz2-tool-submission-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: right center;
}

.bz2-tool-submission-banner--submit {
  display: block;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.bz2-tool-submission-banner--submit > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 350;
  object-fit: contain;
}

@media (max-width: 920px) {
  .bz2-tool-submission-banner { grid-template-columns: minmax(0, 1fr) 38%; }
  .bz2-tool-submission-copy { padding: 28px 20px 28px 30px; }
  .bz2-tool-submission-benefits { gap: 7px 11px; }
}

@media (max-width: 680px) {
  .bz2-tool-submission-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 14px;
  }
  .bz2-tool-submission-copy { padding: 26px 22px; }
  .bz2-tool-submission-copy h2 { font-size: 25px; }
  .bz2-tool-submission-art { display: none; }
  .bz2-tool-submission-action { width: 100%; justify-content: center; }
}

/* BAIZE-142: resource library hierarchy. Product resources lead with real covers;
 * capability resources stay deliberately compact and information-led. */
.bz2-directory-resource .bz2-directory-head { min-height: 430px; }
.bz2-directory-resource .bz2-directory-body { padding-top: 42px; }
.bz2-directory-resource .bz2-section-head { align-items: flex-end; margin-bottom: 18px; }
.bz2-directory-resource .bz2-section-head h2 { color: #102f5c; font-size: 25px; letter-spacing: -.02em; }
.bz2-directory-resource .bz2-section-head p { max-width: 700px; margin: 7px 0 0; color: #6b7d95; font-size: 14px; line-height: 1.55; }
.bz2-directory-resource .bz2-section-head > a { flex: 0 0 auto; color: #1769df; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bz2-directory-resource .bz2-section-head > a:hover,
.bz2-directory-resource .bz2-section-head > a:focus-visible { color: #0d4fd7; text-decoration: underline; }

.bz2-resource-product-feature { margin: 0 0 48px; padding: 26px; border: 1px solid #d9e7f6; border-radius: 16px; background: linear-gradient(145deg, #f7fbff 0%, #fff 56%); box-shadow: 0 14px 36px rgba(32, 77, 137, .07); }
.bz2-resource-product-feature-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 18px; }
.bz2-resource-product-feature-count-1 .bz2-resource-product-feature-layout { grid-template-columns: minmax(0, 1fr); }
.bz2-resource-product-feature .bz2-resource-card-v2 { height: 100%; }
.bz2-resource-product-feature-primary .bz2-resource-card-v2 { min-height: 100%; }
.bz2-resource-product-feature-primary .bz2-resource-product-cover { aspect-ratio: 16 / 9; }
.bz2-resource-product-feature-primary .bz2-resource-v2-body { padding: 21px; }
.bz2-resource-product-feature-primary .bz2-resource-card-v2 h3 { font-size: 22px; }
.bz2-resource-product-feature-primary .bz2-resource-v2-summary { height: auto; min-height: 43px; -webkit-line-clamp: 3; }
.bz2-resource-product-feature-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bz2-resource-product-feature-count-2 .bz2-resource-product-feature-secondary { grid-template-columns: minmax(0, 1fr); }
.bz2-resource-product-feature-count-4 .bz2-resource-product-feature-secondary > :last-child { grid-column: 1 / -1; }
.bz2-resource-product-feature-secondary .bz2-resource-card-v2 { min-width: 0; }
.bz2-resource-product-feature-secondary .bz2-resource-product-cover { aspect-ratio: 16 / 10; }
.bz2-resource-product-feature-secondary .bz2-resource-v2-body { padding: 14px; }
.bz2-resource-product-feature-secondary .bz2-resource-card-v2 h3 { font-size: 15px; }
.bz2-resource-product-feature-secondary .bz2-resource-v2-summary { display: none; }
.bz2-resource-product-feature-secondary .bz2-resource-v2-tags { display: none; }
.bz2-resource-product-feature-secondary .bz2-resource-v2-footer { padding-top: 10px; }

.bz2-resource-product-type { margin: 0 0 44px; }
.bz2-resource-product-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bz2-resource-product-type .bz2-resource-card-v2 { min-height: 100%; }
.bz2-resource-product-type .bz2-resource-product-cover { aspect-ratio: 16 / 9; }
.bz2-resource-product-type .bz2-resource-v2-body { padding: 15px; }
.bz2-resource-product-type .bz2-resource-v2-summary { min-height: 43px; }

.bz2-resource-capability-feature { margin: 2px 0 48px; padding: 27px; border: 1px solid #dbe7f5; border-radius: 16px; background: #fbfdff; }
.bz2-resource-capability-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bz2-resource-capability-feature .bz2-resource-card-v2.is-info { min-height: 184px; box-shadow: none; }
.bz2-resource-capability-feature .bz2-resource-v2-body { padding: 17px 18px 15px; }
.bz2-resource-capability-feature .bz2-resource-v2-summary { min-height: 0; height: auto; margin-top: 11px; font-size: 13px; }
.bz2-resource-capability-feature .bz2-resource-v2-tags { margin-top: 10px; }
.bz2-resource-capability-feature .bz2-resource-v2-footer { padding-top: 11px; }

.bz2-resource-library { margin-top: 4px; padding: 28px; border: 1px solid #e1eaf5; border-radius: 16px; background: #fff; }
.bz2-resource-capability-tabs { gap: 8px; margin-bottom: 16px; padding-bottom: 4px; }
.bz2-resource-capability-tabs a { min-height: 40px; padding: 10px 15px; border-color: #dce6f2; border-radius: 8px; background: #f7faff; color: #47607c; }
.bz2-resource-capability-tabs a.is-active { border-color: #1769ff; background: #1769ff; color: #fff; }
.bz2-resource-library .bz2-resource-filter-panel { margin: 0 0 27px; padding: 16px; border-color: #dce7f4; border-radius: 12px; background: #f8fbff; box-shadow: none; }
.bz2-resource-library .bz2-results-head { margin-top: 0; padding-top: 2px; }
.bz2-resource-library .bz2-results-head h3 { margin: 0; color: #18375f; font-size: 18px; font-weight: 800; }
.bz2-resource-library .bz2-resource-zone + .bz2-resource-zone { margin-top: 38px; }
.bz2-directory-resource .bz2-quality-grid { margin-top: 46px; padding-bottom: 12px; }
.bz2-directory-resource .bz2-quality-grid h2 { color: #18375f; }
.bz2-directory-resource .bz2-quality-grid article { border-color: #dce7f3; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(32, 77, 137, .035); }

@media (max-width: 1100px) {
  .bz2-resource-product-feature-layout { grid-template-columns: 1fr; }
  .bz2-resource-product-feature-primary .bz2-resource-product-cover { aspect-ratio: 16 / 8; }
  .bz2-resource-product-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bz2-directory-resource .bz2-directory-body { padding-top: 28px; }
  .bz2-directory-resource .bz2-section-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .bz2-directory-resource .bz2-section-head h2 { font-size: 23px; }
  .bz2-resource-product-feature, .bz2-resource-capability-feature, .bz2-resource-library { margin-bottom: 31px; padding: 18px; border-radius: 13px; }
  .bz2-resource-product-feature-layout, .bz2-resource-product-feature-secondary, .bz2-resource-capability-feature-grid, .bz2-resource-product-type-grid { grid-template-columns: 1fr; }
  .bz2-resource-product-feature-primary .bz2-resource-product-cover { aspect-ratio: 16 / 9; }
  .bz2-resource-product-feature-secondary .bz2-resource-v2-summary, .bz2-resource-product-feature-secondary .bz2-resource-v2-tags { display: -webkit-box; }
  .bz2-resource-product-feature-secondary .bz2-resource-v2-tags { display: flex; }
  .bz2-resource-product-type { margin-bottom: 32px; }
  .bz2-resource-capability-feature .bz2-resource-card-v2.is-info { min-height: 0; }
  .bz2-resource-library .bz2-resource-filter-panel { padding: 12px; }
}

/* BAIZE-123: directory-only partitioned resource cards. */
.bz2-directory-resource .bz2-grid-resource {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  scroll-margin-top: 110px;
  gap: 16px;
  align-items: stretch;
}

.bz2-resource-zone + .bz2-resource-zone { margin-top: 42px; }
.bz2-recommended { margin: 30px 0 38px; padding: 24px; border: 1px solid #dbe8f7; border-radius: 14px; background: linear-gradient(135deg,#f8fbff,#fff); box-shadow: 0 8px 24px rgba(37,83,143,.05); }
.bz2-recommended .bz2-section-head { margin-bottom: 16px; }
.bz2-recommended .bz2-section-head h2 { font-size: 23px; }
.bz2-recommended .bz2-section-head p { margin-left: 14px; }
.bz2-recommended-resources_product_recommended { margin-top: 42px; }
.bz2-resource-zone .bz2-results-head { margin-top: 0; }
.bz2-resource-zone-more { color: #1769df; font-size: 13px; font-weight: 800; text-decoration: none; }
.bz2-resource-zone-more:hover,
.bz2-resource-zone-more:focus-visible { color: #0d54bb; }
.bz2-resource-zone .bz2-empty.is-compact { padding: 18px 22px; text-align: left; }

.bz2-directory-resource .bz2-resource-card-v2,
.bz2-home-resource-section .bz2-resource-card-v2 {
  --bz2-type-ink: #1f63c7;
  --bz2-type-surface: #edf5ff;
  position: relative;
  min-height: 0;
  border-color: #dce4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(31, 66, 118, .055);
}

.bz2-directory-resource .bz2-resource-card-v2:hover,
.bz2-home-resource-section .bz2-resource-card-v2:hover {
  border-color: #b9cbea;
  box-shadow: 0 16px 34px rgba(31, 66, 118, .1);
}

.bz2-resource-card-v2.tone-deep-blue { --bz2-type-ink: #1853aa; --bz2-type-surface: #eaf2ff; }
.bz2-resource-card-v2.tone-indigo { --bz2-type-ink: #4659b8; --bz2-type-surface: #eff1ff; }
.bz2-resource-card-v2.tone-violet-blue { --bz2-type-ink: #5a55b6; --bz2-type-surface: #f1f0ff; }
.bz2-resource-card-v2.tone-cyan-blue { --bz2-type-ink: #187aa1; --bz2-type-surface: #eaf8fc; }
.bz2-resource-card-v2.tone-teal-blue { --bz2-type-ink: #177b80; --bz2-type-surface: #e9f8f7; }
.bz2-resource-card-v2.tone-soft-violet { --bz2-type-ink: #665cae; --bz2-type-surface: #f2f0fb; }

.bz2-resource-v2-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.bz2-resource-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bz2-resource-info-copy { min-width: 0; flex: 1; }

.bz2-resource-type-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  flex: 0 0 56px;
}

.bz2-resource-card-v2.is-info .bz2-resource-type-icon {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--bz2-line);
  border-radius: 12px;
  background: var(--bz2-soft);
}

.bz2-resource-type-icon.has-image { padding: 0; }
.bz2-resource-type-icon.is-system-icon { color: #1f63c7; }
.bz2-resource-type-icon.is-system-icon .dashicons { width: auto; height: auto; font-size: 26px; line-height: 1; }
.bz2-resource-type-icon.has-image .dashicons { display: none !important; }
.bz2-resource-type-icon i[hidden] { display: none; }

.bz2-directory-resource .bz2-resource-card-v2 h3,
.bz2-home-resource-section .bz2-resource-card-v2 h3 {
  overflow: hidden;
  margin: 0;
  color: #172b4d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bz2-resource-v2-subtitle {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #52647b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bz2-resource-v2-taxonomy {
  overflow: hidden;
  margin: 9px 0 0;
  color: #35659e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bz2-resource-info-copy .bz2-resource-v2-taxonomy { margin-top: 3px; }

.bz2-resource-card-v2.is-product .bz2-resource-v2-subtitle { min-height: 18.45px; }

.bz2-resource-v2-summary {
  display: -webkit-box;
  overflow: hidden;
  min-height: 43.4px;
  height: 43.4px;
  margin: 10px 0 0;
  color: #5e6f86;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bz2-resource-card-v2.is-product .bz2-resource-v2-summary { margin-top: 10px; }

.bz2-resource-v2-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.bz2-resource-v2-tags { flex-wrap: nowrap; margin-top: 11px; }

.bz2-resource-v2-tags span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  background: #f8fafc;
  color: #53657c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bz2-resource-product-cover {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #dce4ef;
  background: #edf2f7;
  color: #73849a;
}

.bz2-resource-product-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.bz2-resource-card-v2:hover .bz2-resource-product-cover img { transform: scale(1.018); }

.bz2-resource-product-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #7c8ca1;
  text-align: center;
}

.bz2-resource-product-placeholder .dashicons { width: auto; height: auto; color: #9aa9bb; font-size: 34px; line-height: 1; }
.bz2-resource-product-placeholder small { font-size: 12px; font-weight: 650; letter-spacing: .04em; }

.bz2-resource-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #edf1f5;
  color: #78879a;
  font-size: 12px;
  line-height: 1;
}

.bz2-resource-v2-views,
.bz2-resource-v2-author,
.bz2-resource-v2-favorites,
.bz2-resource-v2-metrics {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.bz2-resource-v2-author { overflow: hidden; }
.bz2-resource-v2-author > span { overflow: hidden; text-overflow: ellipsis; }
.bz2-resource-v2-author img { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; object-fit: cover; }
.bz2-resource-v2-metrics { flex: 0 0 auto; gap: 11px; }
.bz2-resource-v2-footer i { color: #91a0b3; }

@media (prefers-reduced-motion: reduce) {
  .bz2-directory-resource .bz2-resource-card-v2,
  .bz2-home-resource-section .bz2-resource-card-v2,
  .bz2-resource-product-cover img { transition: none; }
}

@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-grid-resource { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz2-resource-type-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .bz2-resource-card-v2.is-info .bz2-resource-type-icon { border-radius: 11px; }
  .bz2-resource-type-icon.is-system-icon .dashicons { font-size: 25px; }
}

@media (max-width: 760px) {
  .bz2-recommended { margin: 22px 0 30px; padding: 18px; }
  .bz2-directory-resource .bz2-grid-resource { grid-template-columns: 1fr; gap: 15px; }
  .bz2-directory-resource .bz2-resource-card-v2,
  .bz2-home-resource-section .bz2-resource-card-v2 { min-height: 0; }
  .bz2-resource-v2-body { padding: 19px; }
  .bz2-resource-info-head { gap: 11px; }
  .bz2-resource-type-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .bz2-resource-card-v2.is-info .bz2-resource-type-icon { border-radius: 10px; }
  .bz2-resource-type-icon.is-system-icon .dashicons { font-size: 24px; }
}

/*
 * BAIZE-141: AI 工具目录中部 UI 收尾
 *
 * This is deliberately limited to the tool-directory presentation layer.
 * Query arguments, selected-filter DOM, curated IDs, hot-view routing and
 * pagination remain owned by the existing PHP/JS implementation above.
 */
.bz2-directory-tool .bz2-tools-recommended {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bz2-directory-tool .bz2-tools-recommended .bz2-section-head {
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 0 2px;
}

.bz2-directory-tool .bz2-tools-recommended .bz2-section-head h2 {
  font-size: 24px;
}

.bz2-tools-recommended-count-7 .bz2-tools-recommended-layout {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 16px;
}

.bz2-tools-recommended-primary {
  display: flex;
}

.bz2-tools-recommended-primary .bz2-tool-card {
  width: 100%;
  height: 100%;
  min-height: 316px;
}

.bz2-tools-recommended-secondary-count-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}

.bz2-tools-recommended-secondary-count-6 .bz2-tool-card.is-recommended-secondary {
  min-height: 0;
  height: 100%;
}

/* BAIZE-141 visual defect fix: secondary recommendations are centered feature cards. */
.bz2-directory-tool .bz2-tool-card.is-recommended-secondary {
  display: flex;
  padding: 16px 14px;
  border-color: #e0eaf7;
  text-align: center;
  box-shadow: 0 5px 14px rgba(28, 75, 139, .035);
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary:hover {
  border-color: #b9d1f6;
  box-shadow: 0 9px 20px rgba(28, 75, 139, .08);
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-identity {
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: center;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-identity > span:last-child {
  width: 100%;
  min-width: 0;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary h3 {
  width: 100%;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary > .bz2-tool-card-link > p {
  display: -webkit-box;
  width: 100%;
  min-height: 37px;
  max-height: 37px;
  margin: 7px 0 10px;
  overflow: hidden;
  color: #728197;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-tags {
  width: 100%;
  min-height: 25px;
  justify-content: center;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-tool-tags span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bz2-directory-tool .bz2-tool-card.is-recommended-secondary .bz2-recommended-arrow {
  display: none;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel {
  grid-template-columns: minmax(0, 1.18fr) repeat(3, minmax(132px, 1fr)) minmax(130px, .95fr) minmax(76px, .54fr);
  grid-template-areas:
    "search search search search search search"
    "sort pricing platform more apply reset"
    "selected selected selected selected selected selected";
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px;
  border-color: #e6edf6;
  border-radius: 12px;
  background: #fbfcfe;
  box-shadow: 0 4px 14px rgba(28, 75, 139, .025);
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-search,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-field-pricing_mode,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-field-platform,
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > summary,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-apply,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset {
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-search input,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort select {
  height: 42px;
  font-size: 14px;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-sort,
.bz2-directory-tool .bz2-tools-directory-main .bz2-tool-more-filters > summary {
  padding-inline: 12px;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-apply {
  min-height: 44px;
  padding-inline: 18px;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset {
  min-height: 44px;
  padding-inline: 14px;
  border-color: #cfdae8;
  border-radius: 10px;
  background: #fff;
  color: #5f7087;
}

.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset:hover,
.bz2-directory-tool .bz2-tools-directory-main .bz2-filter-reset:focus-visible {
  border-color: #9fbef0;
  background: #f4f8fe;
  color: #1769df;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(116px, .9fr) minmax(76px, .55fr);
    grid-template-areas:
      "search search search search search search"
      "sort pricing platform more apply reset"
      "selected selected selected selected selected selected";
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "search search search"
      "sort pricing platform"
      "more apply reset"
      "selected selected selected";
  }
}

@media (max-width: 640px) {
  .bz2-directory-tool .bz2-tools-recommended {
    margin-bottom: 24px;
  }

  .bz2-tools-recommended-primary {
    display: block;
  }

  .bz2-tools-recommended-secondary-count-6 {
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .bz2-tools-recommended-primary .bz2-tool-card {
    min-height: 276px;
  }

  .bz2-directory-tool .bz2-tools-directory-main .bz2-tool-filter-panel {
    grid-template-columns: minmax(0, 1fr) minmax(86px, .58fr);
    grid-template-areas:
      "search search"
      "sort sort"
      "pricing pricing"
      "platform platform"
      "more more"
      "apply reset"
      "selected selected";
  }
}

/* BAIZE-142 visual acceptance: all rules below are limited to the AI resource directory. */
.bz2-directory-resource .bz2-directory-body { padding-top: 26px; padding-bottom: 48px; }
.bz2-directory-resource .bz2-section-head { align-items: center; margin-bottom: 14px; }
.bz2-directory-resource .bz2-section-head > div { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 5px 13px; }
.bz2-directory-resource .bz2-section-head h2 { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; white-space: nowrap; }
.bz2-directory-resource .bz2-section-head h2::before { display: none; }
.bz2-directory-resource .bz2-section-head h2 > i { color: #1769df; font-size: 19px; }
.bz2-directory-resource .bz2-section-head p { max-width: none; margin: 0; font-size: 13px; }
.bz2-directory-resource .bz2-section-head > a { align-self: center; }

.bz2-directory-resource .bz2-resource-product-feature,
.bz2-directory-resource .bz2-resource-capability-feature,
.bz2-directory-resource .bz2-resource-library { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.bz2-directory-resource .bz2-resource-product-feature { margin: 0 0 30px; }
.bz2-directory-resource .bz2-resource-product-type { margin: 0 0 30px; }
.bz2-directory-resource .bz2-resource-capability-feature { margin: 0 0 31px; }
.bz2-directory-resource .bz2-resource-library { margin: 0; }

.bz2-directory-resource .bz2-resource-product-feature-layout { height: 365px; gap: 12px; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.bz2-directory-resource .bz2-resource-product-feature-count-1 { grid-template-columns: minmax(0, 1fr); }
.bz2-directory-resource .bz2-resource-product-feature-primary,
.bz2-directory-resource .bz2-resource-product-feature-secondary { min-width: 0; min-height: 0; }
.bz2-directory-resource .bz2-resource-product-feature-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bz2-directory-resource .bz2-resource-product-feature-count-2 .bz2-resource-product-feature-secondary { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.bz2-directory-resource .bz2-resource-product-feature-count-3 .bz2-resource-product-feature-secondary { grid-template-columns: minmax(0, 1fr); }
.bz2-directory-resource .bz2-resource-product-feature-count-4 .bz2-resource-product-feature-secondary > :last-child { grid-column: 1 / -1; }
.bz2-directory-resource .bz2-resource-spotlight { position: relative; display: block; height: 100%; min-width: 0; overflow: hidden; border: 1px solid #d5e2f0; border-radius: 9px; background: #10233e; box-shadow: 0 5px 15px rgba(20, 50, 92, .08); }
.bz2-directory-resource .bz2-resource-spotlight-cover { position: absolute; inset: 0; display: block; overflow: hidden; }
.bz2-directory-resource .bz2-resource-spotlight-cover img { width: 100%; height: 100%; object-fit: cover; }
.bz2-directory-resource .bz2-resource-spotlight-cover .bz2-resource-product-placeholder { width: 100%; height: 100%; }
.bz2-directory-resource .bz2-resource-spotlight-content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 38px 16px 14px; background: linear-gradient(0deg, rgba(5, 17, 34, .95) 0%, rgba(5, 17, 34, .78) 62%, rgba(5, 17, 34, 0) 100%); color: #fff; pointer-events: none; }
.bz2-directory-resource .bz2-resource-spotlight-content h3 { width: 100%; margin: 0; overflow: hidden; font-size: 16px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-spotlight-content h3 a { color: #fff; text-decoration: none; pointer-events: auto; }
.bz2-directory-resource .bz2-resource-spotlight-content p { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: #e6eef8; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.bz2-directory-resource .bz2-resource-spotlight-tags { display: flex; max-width: 100%; gap: 5px; }
.bz2-directory-resource .bz2-resource-spotlight-tags span { max-width: 110px; padding: 3px 6px; overflow: hidden; border-radius: 4px; background: rgba(227, 239, 255, .18); color: #f3f7ff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content { gap: 9px; padding: 65px 22px 20px; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content h3 { font-size: 27px; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content p { max-width: 78%; font-size: 14px; -webkit-line-clamp: 2; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-tags span { font-size: 11px; }
.bz2-directory-resource .bz2-resource-spotlight-detail { position: absolute; right: 20px; bottom: 18px; padding: 8px 13px; border-radius: 5px; background: #fff; color: #1769df; font-size: 12px; font-weight: 800; text-decoration: none; pointer-events: auto; }

.bz2-directory-resource .bz2-resource-product-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bz2-directory-resource .bz2-resource-product-type .bz2-resource-card-v2,
.bz2-directory-resource .bz2-resource-zone.is-product .bz2-resource-card-v2 { border-radius: 9px; box-shadow: 0 3px 12px rgba(20, 50, 92, .04); }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover { aspect-ratio: 2.2 / 1; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-body { padding: 11px 12px 10px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-subtitle { min-height: 0; margin-top: 4px; font-size: 12px; line-height: 1.38; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-tags { margin-top: 9px; }

.bz2-directory-resource .bz2-resource-capability-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.bz2-directory-resource .bz2-resource-capability-feature .bz2-resource-card-v2 { min-height: 0; border-radius: 9px; }
.bz2-directory-resource .bz2-resource-capability-feature .bz2-resource-v2-body { padding: 11px 13px 10px; }
.bz2-directory-resource .bz2-resource-capability-feature .bz2-resource-type-icon { width: 42px; height: 42px; flex-basis: 42px; }
.bz2-directory-resource .bz2-resource-capability-feature .bz2-resource-v2-subtitle { margin-top: 3px; -webkit-line-clamp: 1; }
.bz2-directory-resource .bz2-resource-capability-feature .bz2-resource-v2-tags { margin-top: 8px; }

.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory { border-radius: 9px; box-shadow: 0 3px 12px rgba(20, 50, 92, .035); }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body { padding: 11px 12px 10px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-type-icon { width: 42px; height: 42px; flex-basis: 42px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-tags { margin-top: 8px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-subtitle { margin-top: 3px; font-size: 12px; line-height: 1.38; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags span { padding: 3px 6px; font-size: 11px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-footer { margin-top: 9px; padding-top: 8px; font-size: 11px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-author img { width: 18px; height: 18px; flex-basis: 18px; }

.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 10px; border-color: #e4ebf4; border-radius: 8px; background: #f8faff; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search { max-width: none; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-multifilter > summary { min-height: 36px; border-color: #e1e8f1; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search input,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition select { height: 34px; font-size: 12px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-apply,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset { min-height: 36px; padding: 0 10px; font-size: 12px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset { border: 0; background: transparent; color: #667b98; }
.bz2-directory-resource .bz2-resource-library .bz2-results-head { margin-bottom: 10px; padding-bottom: 8px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { margin-bottom: 12px; gap: 6px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a { min-height: 31px; padding: 6px 10px; border-radius: 5px; font-size: 12px; }
.bz2-directory-resource .bz2-resource-library .bz2-grid-resource { gap: 12px; }
.bz2-directory-resource .bz2-quality-grid { margin-top: 32px; }

@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-resource-product-feature-layout { height: auto; grid-template-columns: minmax(0, 1fr); }
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 330px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: 340px; }
  .bz2-directory-resource .bz2-resource-product-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "search search sort" "resource_type capability scenario" "platform acquisition apply" "reset reset reset" "selected selected selected"; }
}

@media (max-width: 760px) {
  .bz2-directory-resource .bz2-directory-body { padding-top: 22px; }
  .bz2-directory-resource .bz2-section-head { align-items: flex-start; gap: 7px; }
  .bz2-directory-resource .bz2-section-head > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .bz2-directory-resource .bz2-section-head h2 { font-size: 21px; }
  .bz2-directory-resource .bz2-resource-product-feature,
  .bz2-directory-resource .bz2-resource-product-type,
  .bz2-directory-resource .bz2-resource-capability-feature { margin-bottom: 26px; }
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 300px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 180px; }
  .bz2-directory-resource .bz2-resource-product-feature-count-4 .bz2-resource-product-feature-secondary > :last-child { grid-column: auto; }
  .bz2-directory-resource .bz2-resource-product-type-grid,
  .bz2-directory-resource .bz2-resource-capability-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "search search" "sort resource_type" "capability scenario" "platform acquisition" "apply reset" "selected selected"; }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { overflow-x: auto; }
}

@media (max-width: 560px) {
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "sort" "resource_type" "capability" "scenario" "platform" "acquisition" "apply" "reset" "selected"; }
  .bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content p { max-width: 100%; }
  .bz2-directory-resource .bz2-resource-spotlight-detail { display: none; }
}

/* BAIZE-143: AI resource page card rhythm and category navigation. */
.bz2-directory-resource .bz2-resource-card-v2,
.bz2-directory-resource .bz2-resource-spotlight { border-color: #dce6f1; border-radius: 11px; box-shadow: 0 5px 17px rgba(25, 61, 110, .055); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.bz2-directory-resource .bz2-resource-card-v2:hover,
.bz2-directory-resource .bz2-resource-spotlight:hover { border-color: #a9c9f2; box-shadow: 0 9px 23px rgba(25, 82, 151, .105); transform: translateY(-1px); }
.bz2-directory-resource .bz2-resource-card-v2 h3 { color: #193451; font-weight: 700; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-body { min-height: 0; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-subtitle { display: -webkit-box; height: 40px; min-height: 40px; max-height: 40px; overflow: hidden; font-size: 13px; font-weight: 400; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-subtitle,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-subtitle,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-subtitle { height: 40px; min-height: 40px; max-height: 40px; margin-top: 9px; font-size: 13px; line-height: 20px; -webkit-line-clamp: 2; }
.bz2-directory-resource .bz2-resource-card-v2.is-info .bz2-resource-info-head { align-items: center; min-height: 48px; }
.bz2-directory-resource .bz2-resource-card-v2.is-info .bz2-resource-type-icon { width: 46px; height: 46px; flex-basis: 46px; border-color: #dbe8f5; border-radius: 11px; background: #f0f6fd; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-type-icon { width: 48px; height: 48px; flex-basis: 48px; }
.bz2-directory-resource .bz2-resource-card-v2.is-info h3 { display: -webkit-box; max-height: 44px; overflow: hidden; line-height: 22px; text-overflow: clip; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3 { font-size: 17px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-body { padding: 17px 18px 15px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-body { padding: 14px 15px 13px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags { display: flex; min-width: 0; height: 24px; min-height: 24px; max-height: 24px; flex-wrap: nowrap; gap: 6px; margin-top: 10px; overflow: hidden; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags span { display: inline-flex; box-sizing: border-box; min-width: 0; max-width: calc(50% - 3px); height: 23px; align-items: center; padding: 0 8px; overflow: hidden; border: 1px solid #e6edf5; border-radius: 5px; background: #f4f7fb; color: #61758e; font-size: 11.5px; font-weight: 550; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-footer { margin-top: auto; padding-top: 12px; border-color: #e8eef6; font-size: 12px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-author img { width: 20px; height: 20px; flex-basis: 20px; }
.bz2-directory-resource .bz2-resource-product-feature-layout { height: 440px; }
.bz2-directory-resource .bz2-resource-spotlight-content { gap: 8px; padding: 48px 17px 15px; }
.bz2-directory-resource .bz2-resource-spotlight-content h3 { font-weight: 700; }
.bz2-directory-resource .bz2-resource-spotlight-footer { display: flex; width: 100%; min-width: 0; min-height: 24px; justify-content: space-between; align-items: center; gap: 9px; margin-top: auto; color: #e8f1fc; font-size: 12px; }
.bz2-directory-resource .bz2-resource-spotlight-author,
.bz2-directory-resource .bz2-resource-spotlight-views { display: inline-flex; min-width: 0; align-items: center; gap: 5px; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-spotlight-author { overflow: hidden; }
.bz2-directory-resource .bz2-resource-spotlight-author > span { overflow: hidden; text-overflow: ellipsis; }
.bz2-directory-resource .bz2-resource-spotlight-author img { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; object-fit: cover; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-footer { padding-right: 120px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { gap: 6px; margin-bottom: 13px; padding-bottom: 2px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a { display: inline-flex; min-height: 35px; align-items: center; padding: 0 12px; border: 1px solid #e5ebf3; border-radius: 6px; background: #f8fafc; color: #52677f; font-size: 13px; font-weight: 550; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a:hover,
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a:focus-visible { border-color: #c8dcf5; background: #e2efff; color: #1769df; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a.is-active { border-color: #1769df; background: #1769df; color: #fff; }
@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-resource-product-feature-layout { height: auto; }
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 360px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: 430px; }
}
@media (max-width: 760px) {
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 330px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: auto; grid-auto-rows: 210px; }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-footer { padding-right: 0; }
}

/* BAIZE-143 visual upgrade: Chinese-first resource hierarchy and lighter ability lists. */
.bz2-directory-resource .bz2-section-head { margin-bottom: 17px; }
.bz2-directory-resource .bz2-section-head h2 { color: #102e57; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.bz2-directory-resource .bz2-section-head h2 > i { font-size: 22px; }
.bz2-directory-resource .bz2-section-head p { color: #58708d; font-size: 14px; line-height: 1.5; }
.bz2-directory-resource .bz2-section-head > a { color: #1769df; font-size: 13px; font-weight: 700; }

.bz2-directory-resource .bz2-resource-original-title { display: block; min-width: 0; overflow: hidden; color: #7187a4; font-size: 11.5px; font-weight: 600; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-directory-resource .bz2-resource-spotlight .bz2-resource-original-title { max-width: 100%; color: #c9d8ee; font-size: 12px; }
.bz2-directory-resource .bz2-resource-product-feature-layout { height: 354px; }
.bz2-directory-resource .bz2-resource-spotlight-cover img { object-fit: contain; object-position: center; }
.bz2-directory-resource .bz2-resource-spotlight-content { gap: 4px; padding-top: 35px; background: linear-gradient(0deg, rgba(4, 17, 38, .95), rgba(4, 17, 38, .72) 67%, transparent); }
.bz2-directory-resource .bz2-resource-spotlight-content h3 { display: -webkit-box; height: 38px; max-height: 38px; font-size: 15px; line-height: 19px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content { gap: 8px; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content h3 { height: 68px; max-height: 68px; font-size: 27px; line-height: 34px; }
.bz2-directory-resource .bz2-resource-spotlight-footer { opacity: .82; }

.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover { aspect-ratio: 16 / 9; background: #eaf0f7; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover img { object-fit: contain; transform: none; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section h3 { display: -webkit-box; height: 44px; max-height: 44px; margin-top: 4px; overflow: hidden; color: #123960; font-size: 15px; font-weight: 750; line-height: 22px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-subtitle { color: #637b98; font-size: 12.5px; }

.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured { border-color: transparent; border-bottom: 1px solid #dfeaf7; border-radius: 0; background: linear-gradient(90deg, #f6faff, #fff 82%); box-shadow: none; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured:hover { border-color: #b7d4f6; background: #f1f7ff; box-shadow: none; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-body,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; align-items: start; column-gap: 12px; row-gap: 4px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-body { padding: 18px 18px 14px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body { padding: 14px 13px 12px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-info-head,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-info-head { display: contents; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-type-icon,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-type-icon { grid-column: 1; grid-row: 1 / span 4; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-info-copy,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-info-copy { grid-column: 2; min-width: 0; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory h3 { display: -webkit-box; height: 44px; max-height: 44px; margin-top: 2px; color: #123b67; font-size: 15px; font-weight: 750; line-height: 22px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3 { font-size: 18px; line-height: 23px; height: 46px; max-height: 46px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-subtitle,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-subtitle { grid-column: 2; height: 20px; min-height: 20px; max-height: 20px; margin: 0; overflow: hidden; color: #617895; font-size: 12.5px; line-height: 20px; -webkit-line-clamp: 1; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-subtitle { font-size: 13px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-tags,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-tags { grid-column: 2; height: 23px; min-height: 23px; max-height: 23px; margin: 3px 0 0; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-footer,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-footer { grid-column: 1 / -1; margin-top: 8px; padding-top: 9px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-footer { color: #8899ac; }

.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { padding: 12px; border-color: #dce7f5; border-radius: 10px; background: #f7faff; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-multifilter > summary,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-apply,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset { min-height: 42px; font-size: 13px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search input,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition select { height: 40px; font-size: 13px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { gap: 8px; margin-bottom: 17px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a { min-height: 42px; padding: 0 17px; border-color: #d2e1f3; border-radius: 8px; background: #fff; color: #36597f; font-size: 14px; font-weight: 650; box-shadow: 0 2px 7px rgba(25, 74, 135, .04); }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a.is-active { border-color: #1769df; background: #1769df; color: #fff; box-shadow: 0 5px 12px rgba(23, 105, 223, .19); }

@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-resource-product-feature-layout { height: auto; }
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 390px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: 390px; }
}
@media (max-width: 760px) {
  .bz2-directory-resource .bz2-section-head h2 { font-size: 23px; }
  .bz2-directory-resource .bz2-resource-product-feature-primary { height: 350px; }
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: auto; grid-auto-rows: 220px; }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a { flex: 0 0 auto; }
}

/* BAIZE-143 final subtraction: full-bleed covers, compact capability rows, text metadata. */
.bz2-directory-resource .bz2-resource-spotlight-cover img,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover img { object-fit: cover; object-position: center; }
.bz2-directory-resource .bz2-resource-spotlight-content { gap: 3px; padding: 26px 16px 14px; }
.bz2-directory-resource .bz2-resource-spotlight-content h3 { height: auto; min-height: 0; max-height: 42px; font-size: 17px; line-height: 21px; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content { padding: 45px 150px 26px 22px; }
.bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content h3 { height: auto; min-height: 0; max-height: 70px; font-size: 28px; line-height: 35px; }
.bz2-directory-resource .bz2-resource-spotlight .bz2-resource-original-title { color: #d4e2f4; font-size: 12.5px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-body { padding-bottom: 12px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section h3 { height: auto; min-height: 22px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-subtitle { margin-top: 5px; }

.bz2-directory-resource .bz2-resource-capability-feature-grid { gap: 0 22px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured { border: 0; border-bottom: 1px solid #e1eaf5; background: transparent; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured:hover { border-color: #b9d3f1; background: #f6faff; transform: none; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-body { padding: 10px 12px 10px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body { padding: 11px 12px 10px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-body,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-body { row-gap: 0; column-gap: 11px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-type-icon,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-type-icon { grid-row: 1 / span 3; width: 44px; height: 44px; flex-basis: 44px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-original-title,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-original-title { color: #687f9c; font-size: 12.5px; line-height: 18px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory h3 { height: auto; min-height: 0; max-height: 42px; margin-top: 0; line-height: 21px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3 { max-height: 44px; font-size: 17px; line-height: 22px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-subtitle,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-subtitle { margin-top: 3px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags { height: 18px; min-height: 18px; max-height: 18px; gap: 0; margin-top: 6px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-tags,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-tags { height: 18px; min-height: 18px; max-height: 18px; margin: 4px 0 0; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags span { display: inline-flex; height: 18px; max-width: calc(50% - 3px); align-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; color: #71849c; font-size: 12px; font-weight: 550; line-height: 18px; }
.bz2-directory-resource .bz2-resource-card-v2 .bz2-resource-v2-tags span + span::before { content: '·'; padding: 0 7px; color: #a6b4c5; }
.bz2-directory-resource .bz2-resource-library .bz2-grid-resource { gap: 10px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs { margin-bottom: 14px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a:not(.is-active) { box-shadow: none; }

@media (max-width: 560px) {
  .bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content { padding-right: 22px; }
}

/* BAIZE-143 final pass: native 1200:630 cover ratio and compact resource hero matrix. */
.bz2-directory-resource .bz2-directory-stats.is-resource-list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list > div { min-width: 0; min-height: 94px; gap: 10px; padding: 13px; border: 1px solid rgba(101, 167, 255, .38); border-radius: 10px; background: rgba(9, 39, 88, .65); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(0, 7, 27, .08); backdrop-filter: blur(10px); }
.bz2-directory-resource .bz2-directory-stats.is-resource-list i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: rgba(70, 151, 255, .17); color: #82bdff; font-size: 19px; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list span { min-width: 0; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list strong { font-size: 18px; font-weight: 760; line-height: 1.25; white-space: nowrap; }
.bz2-directory-resource .bz2-directory-stats.is-resource-list small { margin-top: 4px; color: #b8cbe4; font-size: 11.5px; line-height: 1.35; }

.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover { display: block; height: auto; aspect-ratio: auto; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover img { display: block; width: 100%; height: auto; object-fit: initial; transform: none; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-product-cover.has-fallback { display: grid; aspect-ratio: 1200 / 630; }
.bz2-directory-resource .bz2-resource-product-feature-layout { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.bz2-directory-resource .bz2-resource-product-feature-primary,
.bz2-directory-resource .bz2-resource-product-feature-secondary { height: auto; }
.bz2-directory-resource .bz2-resource-product-feature-secondary { grid-template-rows: repeat(2, auto); align-content: start; }
.bz2-directory-resource .bz2-resource-spotlight { height: auto; aspect-ratio: 1200 / 630; }
.bz2-directory-resource .bz2-resource-spotlight-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-capability-tabs a:not(.is-active) { border-color: #dce5f1; background: #f6f8fc; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory h3 { margin-top: 2px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-subtitle,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-subtitle { margin-top: 4px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured .bz2-resource-v2-tags,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory .bz2-resource-v2-tags { margin-top: 5px; }

@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-directory-stats.is-resource-list { max-width: 640px; }
  .bz2-directory-resource .bz2-resource-product-feature-layout { grid-template-columns: minmax(0, 1fr); }
  .bz2-directory-resource .bz2-resource-product-feature-primary,
  .bz2-directory-resource .bz2-resource-product-feature-secondary { height: auto; }
}
@media (max-width: 760px) {
  .bz2-directory-resource .bz2-resource-product-feature-secondary { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
@media (max-width: 560px) {
  .bz2-directory-resource .bz2-directory-stats.is-resource-list { grid-template-columns: minmax(0, 1fr); }
  .bz2-directory-resource .bz2-directory-stats.is-resource-list > div { min-height: 66px; }
}

/* BAIZE-143 final density pass: one-line product copy and a plain filter toolbar. */
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-body { padding-bottom: 10px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section h3,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3,
.bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory h3 { display: block; min-width: 0; height: 22px; min-height: 22px; max-height: 22px; overflow: hidden; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; -webkit-line-clamp: unset; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section h3 { margin-top: 3px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-subtitle { display: block; height: 20px; min-height: 20px; max-height: 20px; margin-top: 6px; overflow: hidden; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; -webkit-line-clamp: unset; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section .bz2-resource-v2-tags { margin-top: 8px; }
.bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3 { font-size: 17px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(2, 38px) auto; grid-template-areas: "search search search search sort sort resource_type resource_type resource_type resource_type" "capability capability scenario scenario platform platform acquisition acquisition apply reset" "selected selected selected selected selected selected selected selected selected selected"; column-gap: 9px; row-gap: 6px; margin: 0 0 16px; padding: 7px 0 9px; border: 0; border-top: 1px solid #e4eaf3; border-bottom: 1px solid #e4eaf3; border-radius: 0; background: transparent; box-shadow: none; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search { max-width: none; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-multifilter { height: 38px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-multifilter > summary,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-apply,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset { min-height: 38px; height: 38px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search input,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type select,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition select { height: 36px; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-search,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-sort,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-resource_type,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-field-acquisition,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-multifilter > summary { border-color: #dce5f0; border-radius: 7px; background: #fff; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset { border: 0; background: transparent; box-shadow: none; color: #6a7e98; font-weight: 600; }
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset:hover,
.bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel .bz2-filter-reset:focus-visible { background: #f2f6fc; color: #1769df; }

@media (max-width: 1100px) {
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, 38px) auto; grid-template-areas: "search search search sort sort sort" "resource_type resource_type capability capability scenario scenario" "platform platform acquisition acquisition apply reset" "selected selected selected selected selected selected"; }
}
@media (max-width: 760px) {
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, 38px) auto; grid-template-areas: "search search" "sort resource_type" "capability scenario" "platform acquisition" "apply reset" "selected selected"; }
}
@media (max-width: 560px) {
  .bz2-directory-resource .bz2-resource-library .bz2-resource-filter-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(9, 38px) auto; grid-template-areas: "search" "sort" "resource_type" "capability" "scenario" "platform" "acquisition" "apply" "reset" "selected"; }
}
/* BAIZE-145: Chinese titles and product summaries occupy one line. */
body .bz2-directory-resource .bz2-resource-card-v2 h3,
body .bz2-directory-resource .bz2-resource-spotlight-content h3,
body .bz2-directory-resource .is-variant-product-primary .bz2-resource-spotlight-content h3,
body .bz2-directory-resource .bz2-resource-card-v2.is-variant-product-section h3,
body .bz2-directory-resource .bz2-resource-card-v2.is-variant-capability-featured h3,
body .bz2-directory-resource .bz2-resource-card-v2.is-variant-resource-directory h3 {
  display: block;
  height: auto;
  max-height: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

/* BAIZE-146: homepage featured products and capabilities only. */
.bz2-home-products .bz2-grid-home-featured-product {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-rows: repeat(var(--bz146-product-list-count, 3), 116px);
  gap: 12px 18px;
}
.bz2-home-products .bz146-product {
  display: grid;
  min-width: 0;
  height: 100%;
  grid-template-columns: 218px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--bz2-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 40, 76, .055);
  color: var(--bz2-ink);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.bz2-home-products .bz146-product:hover,
.bz2-home-products .bz146-product:focus-visible {
  border-color: #b8d1f6;
  box-shadow: 0 12px 28px rgba(24, 76, 157, .12);
  color: var(--bz2-ink);
}
.bz2-home-products .bz146-product-image { display: grid; min-width: 0; width: 100%; height: auto; aspect-ratio: 1024 / 538; align-self: center; place-items: center; overflow: hidden; background: #eaf2fd; color: var(--bz2-blue); }
.bz2-home-products .bz146-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bz2-home-products .bz146-product-image > i { font-size: 42px; }
.bz2-home-products .bz146-product-content { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; }
.bz2-home-products .bz146-product-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; }
.bz2-home-products .bz146-product-original-title { display: block; min-width: 0; overflow: hidden; color: #59708f; font-size: 12px; font-weight: 700; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-products .bz146-product-title { display: -webkit-box; min-width: 0; max-height: 2.8em; overflow: hidden; color: #142b4d; font-size: 17px; font-weight: 800; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-home-products .bz146-product-description { display: -webkit-box; min-width: 0; min-height: 32px; max-height: 32px; margin-top: 2px; overflow: hidden; color: #61758e; font-size: 11px; line-height: 16px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-home-products .bz146-product-action { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--bz2-blue); }
.bz2-home-products .bz146-product-action-text { display: none; }
.bz2-home-products .bz146-product:first-child { position: relative; grid-row: 1 / -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); border: 0; background: #091a30; }
.bz2-home-products .bz146-product:first-child .bz146-product-image,
.bz2-home-products .bz146-product:first-child .bz146-product-content { grid-area: 1 / 1; }
.bz2-home-products .bz146-product:first-child .bz146-product-image { width: 100%; height: 100%; }
.bz2-home-products .bz146-product:first-child .bz146-product-image img { object-fit: contain; }
.bz2-home-products .bz146-product:first-child .bz146-product-content { position: relative; align-items: flex-end; padding: 34px; background: linear-gradient(0deg, rgba(2, 10, 26, .9), transparent 72%); }
.bz2-home-products .bz146-product:first-child .bz146-product-original-title { color: #cbdfff; font-size: 15px; line-height: 22px; }
.bz2-home-products .bz146-product:first-child .bz146-product-title { color: #fff; font-size: 30px; line-height: 1.25; }
.bz2-home-products .bz146-product:first-child .bz146-product-description { min-height: 40px; max-height: 40px; margin-top: 8px; color: #e4ecf8; font-size: 13px; line-height: 20px; }
.bz2-home-products .bz146-product:first-child .bz146-product-action { display: inline-flex; width: auto; height: auto; flex: 0 0 auto; gap: 10px; padding: 10px 14px; border-radius: 7px; background: #fff; color: var(--bz2-blue); font-size: 13px; font-weight: 800; }
.bz2-home-products .bz146-product:first-child .bz146-product-action-text { display: inline; }

.bz2-home-capabilities .bz2-grid-home-featured-capability { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: stretch; }
.bz2-home-capabilities .bz146-capability { display: grid; min-width: 0; min-height: 144px; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid var(--bz2-line); border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(16, 40, 76, .045); color: var(--bz2-ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.bz2-home-capabilities .bz146-capability:hover,
.bz2-home-capabilities .bz146-capability:focus-visible { border-color: #b8d1f6; box-shadow: 0 12px 28px rgba(24, 76, 157, .1); color: var(--bz2-ink); }
.bz2-home-capabilities .bz146-capability-icon { display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; border: 1px solid #dfebf9; border-radius: 12px; background: #f0f6ff; color: var(--bz2-blue); }
.bz2-home-capabilities .bz146-capability-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bz2-home-capabilities .bz146-capability-icon i { font-size: 28px; }
.bz2-home-capabilities .bz146-capability-icon i[hidden] { display: none; }
.bz2-home-capabilities .bz146-capability-content { display: flex; min-width: 0; flex-direction: column; }
.bz2-home-capabilities .bz146-capability-original-title { display: block; min-width: 0; height: 18px; overflow: hidden; color: #59708f; font-size: 12px; font-weight: 700; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-capabilities .bz146-capability-title { display: block; min-width: 0; height: 21px; overflow: hidden; color: #142b4d; font-size: 16px; font-weight: 800; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-capabilities .bz146-capability-description { display: -webkit-box; height: 36px; min-height: 36px; max-height: 36px; margin-top: 3px; overflow: hidden; color: #61758e; font-size: 12px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bz2-home-capabilities .bz146-capability-footer { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; }
.bz2-home-capabilities .bz146-capability-tags { display: flex; min-width: 0; gap: 5px; overflow: hidden; }
.bz2-home-capabilities .bz146-capability-tags > span { display: block; min-width: 0; max-width: 100%; padding: 3px 7px; overflow: hidden; border-radius: 4px; background: #eef4ff; color: #2863b8; font-size: 11px; font-weight: 700; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.bz2-home-capabilities .bz146-capability-tags > span:first-child { flex: 0 0 auto; }
.bz2-home-capabilities .bz146-capability-arrow { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--bz2-blue); }

@media (max-width: 1100px) {
  .bz2-home-products .bz2-grid-home-featured-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bz2-home-products .bz146-product { grid-template-columns: 125px minmax(0, 1fr); }
  .bz2-home-products .bz146-product-title { font-size: 15px; }
  .bz2-home-capabilities .bz2-grid-home-featured-capability { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bz2-home-products .bz2-grid-home-featured-product { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .bz2-home-products .bz146-product { min-height: 116px; grid-template-columns: 132px minmax(0, 1fr); }
  .bz2-home-products .bz146-product:first-child { min-height: 280px; grid-row: auto; }
  .bz2-home-products .bz146-product:first-child .bz146-product-content { padding: 22px; }
  .bz2-home-products .bz146-product:first-child .bz146-product-title { font-size: 24px; }
  .bz2-home-capabilities .bz2-grid-home-featured-capability { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .bz2-home-products .bz146-product { grid-template-columns: 110px minmax(0, 1fr); }
  .bz2-home-products .bz146-product-content { padding: 12px; }
  .bz2-home-products .bz146-product:first-child .bz146-product-content { gap: 10px; }
  .bz2-home-products .bz146-product:first-child .bz146-product-action { padding: 8px; }
  .bz2-home-products .bz146-product:first-child .bz146-product-action-text { display: none; }
}

@media (max-width: 900px) {
  .bz2-directory-tool .bz2-tools-directory-layout { grid-template-columns: minmax(0, 1fr); }
  .bz2-directory-tool .bz2-tools-directory-nav { min-width: 0; max-width: 100%; contain: paint; }
  .bz2-directory-tool .bz2-tools-directory-nav-group { padding: 0; }
}

/* BAIZE-186: retain four-card defaults and existing mobile breakpoints. */
@media (min-width: 1101px) {
  .bz2-home .bz2-channels-count-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bz2-home .bz2-channels-count-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.bz2-home .bz2-channels-count-1 { grid-template-columns: minmax(0,1fr); }
.bz2-home .bz2-channels-without-hero { margin-top: 0; }
