.wb-category-guide-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wb-category-guide-page .ub-hero-grid {
  grid-template-columns: minmax(0, 500px) minmax(0, 686px);
}

.wb-category-guide-page .ub-hero .ub-btn-secondary {
  width: min(100%, 310px);
}

.category-demo {
  width: min(686px, 100%);
  min-height: 611px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  border-radius: 30px;
  background: #c54d4e;
  box-shadow: 0 30px 70px rgba(45, 7, 8, .25);
  pointer-events: none;
}

.category-demo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.category-demo-header h2 {
  margin: 0;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(32px, 4vw, 45px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.category-demo-count {
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 900;
}

.category-demo-list-wrap {
  position: relative;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.category-demo-list {
  width: 520px;
  height: auto;
  padding: 5px 10px;
  overflow: visible;
}

.category-demo-row {
  width: 495px;
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 0 20px 0 25px;
  overflow: hidden;
  border: 1px solid #f14c4e;
  border-radius: 20px;
  background: #f86466;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.category-demo-row.is-active {
  background: #ff7779;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .15);
}

.category-demo-row.is-demo-highlight { animation: categoryDemoPulse .8s cubic-bezier(.22, 1, .36, 1); }

@keyframes categoryDemoPulse {
  0%, 100% { box-shadow: 0 6px 15px rgba(0, 0, 0, .15); }
  45% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .32), 0 10px 20px rgba(0, 0, 0, .2); }
}

.category-demo-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: #fff;
}

.category-demo-icon svg { width: 36px; height: 36px; }

.category-demo-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-demo-info strong {
  overflow: hidden;
  font-size: 18px;
  letter-spacing: .5px;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-demo-info span { margin-top: 3px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.category-demo-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.category-demo-action { width: 30px; height: 30px; display: grid; place-items: center; padding: 5px; border: 0; background: transparent; color: #fff; opacity: .62; }
.category-demo-action svg { width: 20px; height: 20px; }
.category-demo-switch { position: relative; display: inline-flex; }
.category-demo-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.category-demo-track { width: 58px; height: 30px; display: block; padding: 4px; border-radius: 999px; background: rgba(61, 16, 16, .3); }
.category-demo-track span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #a33a3c; transition: transform .35s ease, background .35s ease; }
.category-demo-switch input:checked + .category-demo-track { background: #fff; }
.category-demo-switch input:checked + .category-demo-track span { transform: translateX(28px); background: #f86466; }
.category-demo-footer { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.category-demo-footer p { margin: 0; font-size: 20px; font-weight: 300; opacity: .9; }
.category-demo-create { width: 180px; height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; color: #555; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); font: 900 18px/1 Roboto, Arial, sans-serif; }
.category-demo-create svg { width: 22px; height: 22px; }

/* The content below intentionally changes pace from the linear URL Blocking guide. */
.cpg-scenarios {
  padding: 34px 0 12px;
}

.cpg-scenario-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.cpg-scenario-intro h2 { margin-bottom: 0; }
.cpg-scenario-intro p { max-width: 430px; margin: 0 0 4px; color: var(--ub-muted); font-size: 17px; }

.cpg-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cpg-scenario-card {
  min-height: 176px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ub-border);
  border-radius: 22px;
  background: var(--ub-card);
}

.cpg-scenario-card:nth-child(2), .cpg-scenario-card:nth-child(4) { transform: translateY(18px); }
.cpg-scenario-number { color: var(--ub-accent-soft); font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 900; }
.cpg-scenario-card h3 { margin: 20px 0 8px; font-family: Montserrat, sans-serif; font-size: 19px; line-height: 1.25; }
.cpg-scenario-card p { margin: 0; color: var(--ub-muted); font-size: 15px; }

.cpg-explorer-section { padding-top: 104px; }
.cpg-explorer-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: end; margin-bottom: 30px; }
.cpg-explorer-heading h2 { margin-bottom: 0; }
.cpg-explorer-heading p { margin: 0 0 4px; color: var(--ub-muted); font-size: 18px; }

.cpg-explorer {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  min-height: 512px;
  overflow: hidden;
  border: 1px solid var(--ub-border);
  border-radius: 30px;
  background: var(--ub-card);
  box-shadow: 0 24px 60px rgba(30, 10, 10, .14);
}

.cpg-category-tabs {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 7px;
  border-right: 1px solid var(--ub-border);
  background: rgba(255, 255, 255, .035);
}

.cpg-category-tab {
  width: 100%;
  min-height: 70px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cpg-category-tab:hover { border-color: var(--ub-border); background: var(--ub-card); }
.cpg-category-tab[aria-selected="true"] { border-color: rgba(248, 100, 102, .46); background: rgba(248, 100, 102, .13); }
.cpg-category-tab--custom { margin-top: 7px; border-color: rgba(248, 100, 102, .42); border-style: dashed; background: rgba(248, 100, 102, .06); }
.cpg-category-tab--custom[aria-selected="true"] { border-style: solid; }
.cpg-category-tab--custom .cpg-tab-icon { color: #fff; background: #f86466; }
.cpg-category-tab--custom > small { color: #c54d4e; letter-spacing: .04em; }
.cpg-tab-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #c54d4e; background: #fff; }
.cpg-tab-icon svg { width: 24px; height: 24px; }
.cpg-tab-copy { min-width: 0; display: grid; gap: 3px; }
.cpg-tab-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cpg-tab-copy small, .cpg-category-tab > small { color: var(--ub-muted); font-size: 12px; }
.cpg-category-tab > small { font-weight: 800; }

.cpg-category-panel-wrap { position: relative; min-width: 0; padding: clamp(32px, 5vw, 62px); background: linear-gradient(145deg, rgba(248,100,102,.17), transparent 66%); }
.cpg-category-panel[hidden] { display: none; }
.cpg-category-panel { animation: categoryPanelIn .24s ease-out; }
@keyframes categoryPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.cpg-panel-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #a72f31; background: #ffe7e7; font-size: 12px; font-weight: 900; }
.cpg-category-panel h3 { max-width: 620px; margin: 20px 0 12px; font-family: Montserrat, sans-serif; font-size: clamp(29px, 4vw, 44px); line-height: 1.06; }
.cpg-category-panel > p { max-width: 620px; margin: 0; color: var(--ub-muted); font-size: 18px; }
.cpg-domain-label { margin: 32px 0 11px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cpg-domain-list { display: flex; flex-wrap: wrap; gap: 9px; }
.cpg-domain-list span { padding: 10px 13px; border: 1px solid var(--ub-border); border-radius: 12px; background: var(--ub-card); font-weight: 700; }
.cpg-panel-note { margin-top: 29px; padding-top: 20px; border-top: 1px solid var(--ub-border); color: var(--ub-muted); font-size: 14px; }
.cpg-custom-category-cta { width: fit-content; margin-top: 26px; }

.cpg-compare-section { padding: 0; background: #c54d4e; }
.cpg-compare { display: grid; grid-template-columns: 1fr 1fr; }
.cpg-compare-card { min-height: 430px; padding: 72px clamp(28px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.cpg-compare-card:first-child { border-right: 1px solid rgba(255,255,255,.23); }
.cpg-compare-card.is-url { background: rgba(71, 9, 10, .18); }
.cpg-compare-tag { width: fit-content; padding: 7px 11px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: 12px; font-weight: 900; }
.cpg-compare-card h2, .cpg-compare-card h3 { max-width: 490px; margin: 20px 0 12px; color: #fff; font-family: Montserrat, sans-serif; font-size: clamp(28px, 4vw, 45px); line-height: 1.08; }
.cpg-compare-card p { max-width: 490px; margin: 0; color: rgba(255,255,255,.84); font-size: 18px; }
.cpg-compare-answer { margin-top: 26px; font-weight: 900; }

.cpg-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; counter-reset: cpg-step; }
.cpg-process-step { position: relative; padding: 31px 34px; border-block: 1px solid var(--ub-border); border-left: 1px solid var(--ub-border); background: var(--ub-card); counter-increment: cpg-step; }
.cpg-process-step:first-child { border-radius: 24px 0 0 24px; }
.cpg-process-step:last-child { border-right: 1px solid var(--ub-border); border-radius: 0 24px 24px 0; }
.cpg-process-step::before { content: counter(cpg-step); width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 13px; color: #fff; background: #f86466; font-family: Montserrat, sans-serif; font-weight: 900; }
.cpg-process-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 39px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #c54d4e; background: #fff; font-weight: 900; }
.cpg-process-step h3 { margin: 0 0 9px; font-family: Montserrat, sans-serif; font-size: 20px; }
.cpg-process-step p { margin: 0; color: var(--ub-muted); }
.cpg-process-note { margin: 20px 0 0; color: var(--ub-muted); text-align: center; }

.cpg-customize {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(300px, 1fr);
  gap: 56px;
  align-items: center;
}

.cpg-product-dialog {
  width: min(620px, 100%);
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  color: var(--text-primary);
  background: var(--surface-1);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.cpg-product-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--divider);
}

.cpg-product-dialog h3 { margin: 0 0 5px; font-family: Roboto, Arial, sans-serif; font-size: 26px; font-weight: 900; }
.cpg-product-dialog header p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.cpg-product-close, .cpg-product-trash {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-primary);
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, .12);
}

.cpg-product-close svg, .cpg-product-trash svg { width: 18px; height: 18px; }
.cpg-product-body { min-height: 0; flex: 0 0 auto; margin: 8px 0 0; padding: 12px 24px 16px; overflow: visible; }
.cpg-product-search label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.cpg-product-search input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(61, 16, 16, .2);
  border-radius: 11px;
  color: #333;
  background: #fff;
  caret-color: #8b1e1f;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(61, 16, 16, .08);
}

.cpg-product-search input::placeholder { color: #9a9a9a; font-weight: 300; opacity: 1; }
.cpg-product-domain-list { margin-top: 15px; border-top: 1px solid var(--divider); }
.cpg-product-domain-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 2px; border-bottom: 1px solid var(--divider); }
.cpg-product-domain-row strong { min-width: 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.cpg-product-domain-actions { display: flex; align-items: center; gap: 8px; }
.cpg-product-trash { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
.cpg-product-switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.cpg-product-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cpg-product-switch-track { width: 48px; height: 27px; display: block; padding: 3px; border: 1px solid var(--border-primary); border-radius: 999px; background: rgba(40, 8, 9, .28); }
.cpg-product-switch-track span { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .28); }
.cpg-product-switch input:checked + .cpg-product-switch-track { border-color: #fff; background: #fff; }
.cpg-product-switch input:checked + .cpg-product-switch-track span { transform: translateX(21px); background: #f86466; }
.cpg-product-expand {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid var(--border-primary);
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, .1);
  font: inherit;
  font-weight: 850;
}

.cpg-product-add-panel { flex: 0 0 auto; padding: 18px 24px 24px; border-top: 1px solid var(--divider); background: var(--surface-1); }
.cpg-product-add {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  color: #8b1e1f;
  background: #fff;
  font: inherit;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.cpg-product-add svg { width: 19px; height: 19px; }

.cpg-control-list { display: grid; gap: 18px; margin-top: 28px; }
.cpg-control-item { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.cpg-control-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #f86466; font-weight: 900; }
.cpg-control-item h3 { margin: 0 0 4px; font-family: Montserrat, sans-serif; font-size: 17px; }
.cpg-control-item p { margin: 0; color: var(--ub-muted); }

.cpg-recipes-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.cpg-recipes-heading h2 { margin-bottom: 0; }
.cpg-recipes-heading p { max-width: 410px; margin: 0 0 4px; color: var(--ub-muted); }
.cpg-recipe-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cpg-recipe-card { min-height: 246px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--ub-border); border-radius: 24px; background: var(--ub-card); }
.cpg-recipe-card:nth-child(1), .cpg-recipe-card:nth-child(4) { grid-column: span 7; }
.cpg-recipe-card:nth-child(2), .cpg-recipe-card:nth-child(3) { grid-column: span 5; }
.cpg-recipe-card h3 { margin: 10px 0 9px; font-family: Montserrat, sans-serif; font-size: 23px; }
.cpg-recipe-card p { margin: 0; color: var(--ub-muted); }
.cpg-chip-list { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 7px; }
.cpg-chip { padding: 7px 10px; border-radius: 999px; color: #9a3032; background: #ffe7e7; font-size: 12px; font-weight: 900; }

.cpg-trust {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 58px;
  padding: 45px;
  border: 1px solid rgba(248,100,102,.45);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(248,100,102,.16), rgba(248,100,102,.04));
}

.cpg-trust h2 { margin-bottom: 0; }
.cpg-trust-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cpg-trust-list li { position: relative; padding-left: 31px; color: var(--ub-muted); font-size: 17px; }
.cpg-trust-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #f86466; font-weight: 900; }
.cpg-trust-list strong { color: var(--ub-text); }

.cpg-faq-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
.cpg-faq-layout h2 { font-size: clamp(32px, 4vw, 46px); }
.cpg-faq-layout .faq-list { margin-top: 0; }

html[data-theme="dark"] .category-demo { background: #2c3036; border: 1px solid #48515c; box-shadow: 0 30px 70px rgba(0, 0, 0, .32); }
html[data-theme="dark"] .category-demo-row { border-color: #48515c; background: #343941; }
html[data-theme="dark"] .category-demo-row.is-active { border-color: #697582; background: #414852; }
html[data-theme="dark"] .category-demo-track { background: #15181d; }
html[data-theme="dark"] .category-demo-track span { background: #697582; }
html[data-theme="dark"] .category-demo-switch input:checked + .category-demo-track { background: #f4f5f6; }
html[data-theme="dark"] .category-demo-switch input:checked + .category-demo-track span { background: #343941; }
html[data-theme="dark"] .cpg-tab-icon { color: #f4f5f6; background: #3b4149; }
html[data-theme="dark"] .cpg-panel-label, html[data-theme="dark"] .cpg-chip { color: #f4f5f6; background: #3b424c; }
html[data-theme="dark"] .cpg-process-step:not(:last-child)::after { color: #f4f5f6; background: #343941; }
html[data-theme="dark"] .cpg-product-search input { border-color: #d9dee5; color: #333; background: #fff; -webkit-text-fill-color: #333; }
html[data-theme="dark"] .cpg-product-switch-track { border-color: #48515c; background: #0f1216; }
html[data-theme="dark"] .cpg-product-switch input:checked + .cpg-product-switch-track { border-color: #f4f5f6; background: #f4f5f6; }
html[data-theme="dark"] .cpg-product-switch input:checked + .cpg-product-switch-track span { background: #343941; }

/* This stylesheet is exclusive to the category guide, so the root rules below
   keep the document scrollbar neutral without changing any other public page. */
html[data-theme="dark"],
html[data-theme="dark"] body.wb-category-guide-page {
  scrollbar-color: #7f8995 #171a1f !important;
}
html[data-theme="dark"]::-webkit-scrollbar,
html[data-theme="dark"] body.wb-category-guide-page::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html[data-theme="dark"]::-webkit-scrollbar-track,
html[data-theme="dark"] body.wb-category-guide-page::-webkit-scrollbar-track {
  background: #171a1f !important;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb,
html[data-theme="dark"] body.wb-category-guide-page::-webkit-scrollbar-thumb {
  border: 3px solid #171a1f !important;
  border-radius: 999px;
  background: #7f8995 !important;
}
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] body.wb-category-guide-page::-webkit-scrollbar-thumb:hover {
  background: #aeb7c2 !important;
}

/* Category guide dark mode uses the same neutral graphite system as other public guides. */
html[data-theme="dark"] body.wb-category-guide-page .cpg-category-tab[aria-selected="true"] {
  border-color: var(--dark-border);
  background: var(--dark-panel-raised);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-category-tab--custom {
  border-color: var(--dark-border);
  background: rgba(255,255,255,.035);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-category-tab--custom > small {
  color: var(--dark-accent);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-recipe-card {
  border-color: var(--dark-border-soft);
  background: var(--dark-panel);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-chip {
  color: #f4f5f6;
  border: 1px solid var(--dark-border);
  background: #3b424c;
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-explorer {
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-category-panel-wrap {
  background: linear-gradient(145deg, rgba(255,255,255,.045), transparent 66%);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-section {
  border-block: 1px solid var(--dark-border-soft);
  background: var(--dark-panel-soft);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-card {
  color: var(--text-primary);
  background: var(--dark-panel);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-card:first-child {
  border-color: var(--dark-border);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-card.is-url {
  background: var(--dark-panel-deep);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-tag {
  color: var(--text-primary);
  border-color: var(--dark-border);
  background: rgba(255,255,255,.055);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-card :where(h2, h3) {
  color: var(--text-primary);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-card p {
  color: var(--text-secondary);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-compare-answer {
  color: var(--text-primary);
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-process-step::before,
html[data-theme="dark"] body.wb-category-guide-page .cpg-control-mark {
  color: #171a1f;
  background: #f4f5f6;
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-trust {
  border-color: var(--dark-border);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-trust-list li::before {
  color: #f4f5f6;
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-product-add {
  color: #171a1f;
  border-color: #d9dee5;
  background: #f4f5f6;
}
html[data-theme="dark"] body.wb-category-guide-page .cpg-product-search input {
  caret-color: #333;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.14);
}
html[data-theme="dark"] body.wb-category-guide-page .ub-btn-primary,
html[data-theme="dark"] body.wb-category-guide-page .ub-btn-primary:hover {
  box-shadow: 0 16px 28px rgba(0,0,0,.28);
}

@media (max-width: 1240px) {
  .wb-category-guide-page .ub-hero-grid { grid-template-columns: 1fr; }
  .category-demo { margin-inline: auto; }
}

@media (max-width: 980px) {
  .cpg-scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .cpg-scenario-card:nth-child(2), .cpg-scenario-card:nth-child(4) { transform: none; }
  .cpg-explorer-heading, .cpg-customize, .cpg-trust, .cpg-faq-layout { grid-template-columns: 1fr; }
  .cpg-explorer { grid-template-columns: 290px minmax(0, 1fr); }
  .cpg-customize { gap: 40px; }
  .cpg-product-dialog { margin-inline: auto; }
}

@media (max-width: 760px) {
  .cpg-scenario-intro, .cpg-recipes-heading { display: block; }
  .cpg-scenario-intro p, .cpg-recipes-heading p { margin-top: 12px; }
  .cpg-explorer-section { padding-top: 70px; }
  .cpg-explorer-heading { gap: 12px; }
  .cpg-explorer { grid-template-columns: 1fr; min-height: 0; }
  .cpg-category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--ub-border); }
  .cpg-category-tab { min-height: 82px; grid-template-columns: 1fr; place-items: center; gap: 5px; text-align: center; }
  .cpg-tab-copy strong { font-size: 13px; }
  .cpg-tab-copy small, .cpg-category-tab > small { display: none; }
  .cpg-category-panel-wrap { padding: 30px 24px; }
  .cpg-compare { grid-template-columns: 1fr; }
  .cpg-compare-card { min-height: 0; padding-block: 52px; }
  .cpg-compare-card:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.23); }
  .cpg-process { grid-template-columns: 1fr; }
  .cpg-process-step { border-right: 1px solid var(--ub-border); border-bottom: 0; }
  .cpg-process-step:first-child { border-radius: 22px 22px 0 0; }
  .cpg-process-step:last-child { border-bottom: 1px solid var(--ub-border); border-radius: 0 0 22px 22px; }
  .cpg-process-step:not(:last-child)::after { content: "↓"; top: auto; right: 26px; bottom: -14px; }
  .cpg-recipe-card:nth-child(n) { grid-column: span 12; min-height: 220px; }
  .cpg-trust { padding: 30px 24px; gap: 30px; }
}

@media (max-width: 620px) {
  .category-demo { min-height: 0; padding: 24px 12px; border-radius: 20px; }
  .category-demo-header { flex-direction: column; gap: 10px; }
  .category-demo-header h2 { font-size: 27px; }
  .category-demo-count { width: 50px; height: 50px; flex-basis: 50px; font-size: 22px; }
  .category-demo-list-wrap { height: auto; flex-basis: auto; }
  .category-demo-list { width: 100%; height: auto; padding: 0; }
  .category-demo-row { width: 100%; min-height: 62px; gap: 10px; padding: 0 10px 0 13px; }
  .category-demo-info strong { font-size: 14px; }
  .category-demo-info span { font-size: 11px; }
  .category-demo-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .category-demo-icon svg { width: 28px; height: 28px; }
  .category-demo-action { display: none; }
  .category-demo-track { width: 52px; height: 28px; }
  .category-demo-track span { width: 20px; height: 20px; }
  .category-demo-switch input:checked + .category-demo-track span { transform: translateX(24px); }
  .category-demo-footer { margin-top: 16px; }
  .category-demo-footer p { font-size: 16px; }
  .cpg-scenarios { padding-top: 20px; }
  .cpg-scenario-grid { grid-template-columns: 1fr; }
  .cpg-scenario-card { min-height: 0; }
  .cpg-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .cpg-category-tab { padding: 10px 6px; }
  .cpg-category-panel h3 { font-size: 29px; }
  .cpg-category-panel > p { font-size: 16px; }
  .cpg-product-dialog { height: auto; min-height: 0; border-radius: 20px; }
  .cpg-product-dialog > header { padding: 20px 18px 16px; }
  .cpg-product-dialog h3 { font-size: 23px; }
  .cpg-product-body { margin-right: 0; padding: 10px 18px 12px; }
  .cpg-product-add-panel { padding: 16px 18px 20px; }
  .cpg-product-domain-row { min-height: 58px; gap: 10px; }
  .cpg-product-domain-row strong { font-size: 14px; }
  .cpg-recipe-card { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-demo-row.is-demo-highlight, .cpg-category-panel { animation: none; }
}
