/* Baize unified single-page components for Zibll.
 * Scope:
 * - Resource detail template.
 * - Shared right sidebar panels.
 * - Global skin for Zibll pay widgets and author/user cards in sidebars.
 */

body:not(.dark-theme) {
  --baize-page: #f4f8ff;
  --baize-panel: rgba(255, 255, 255, 0.92);
  --baize-solid: #ffffff;
  --baize-text: #101828;
  --baize-subtext: #475467;
  --baize-muted: #667085;
  --baize-line: rgba(214, 228, 248, 0.96);
  --baize-soft: #eef5ff;
  --baize-soft-2: #f7faff;
  --baize-blue: #2f80ff;
  --baize-blue-deep: #1e5fd9;
  --baize-green: #18a36b;
  --baize-orange: #ff8a3d;
  --baize-radius: 8px;
  --baize-shadow: 0 16px 36px rgba(36, 72, 132, 0.10);
}

body:not(.dark-theme) .baize-single-container {
  padding-top: 22px;
  padding-bottom: 84px;
}

body:not(.dark-theme) .baize-resource-crumb {
  margin-bottom: 16px;
  color: var(--baize-muted);
  font-size: 13px;
}

body:not(.dark-theme) .baize-resource-crumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
}

body:not(.dark-theme) .baize-resource-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background:
    radial-gradient(circle at 96% 6%, rgba(47, 128, 255, 0.11), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,251,255,0.96));
  box-shadow: var(--baize-shadow);
}

body:not(.dark-theme) .baize-resource-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body:not(.dark-theme) .baize-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

body:not(.dark-theme) .baize-pill,
body:not(.dark-theme) .baize-tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(194, 216, 252, 0.96);
  border-radius: 999px;
  background: #eef5ff;
  color: #2268e8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

body:not(.dark-theme) .baize-pill-green {
  border-color: rgba(165, 226, 197, 0.9);
  background: #ecfff6;
  color: var(--baize-green);
}

body:not(.dark-theme) .baize-resource-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--baize-text);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-resource-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--baize-subtext);
  font-size: 16px;
  line-height: 1.9;
}

body:not(.dark-theme) .baize-resource-subtitle {
  max-width: 760px;
  margin-top: 10px;
  color: var(--baize-blue);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body:not(.dark-theme) .baize-resource-actions .but,
body:not(.dark-theme) .baize-buy-actions .but,
body:not(.dark-theme) .baize-mobile-buybar .but {
  border-radius: var(--baize-radius);
}

body:not(.dark-theme) .baize-resource-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

body:not(.dark-theme) .baize-resource-stats > div {
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: rgba(255, 255, 255, 0.78);
}

body:not(.dark-theme) .baize-resource-stats strong {
  display: block;
  margin-bottom: 5px;
  color: var(--baize-text);
  font-size: 17px;
  line-height: 1.1;
}

body:not(.dark-theme) .baize-resource-stats span {
  color: var(--baize-muted);
  font-size: 12px;
  font-weight: 700;
}

body:not(.dark-theme) .baize-resource-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(201, 219, 246, 0.96);
  border-radius: var(--baize-radius);
  background: #eaf2ff;
}

body:not(.dark-theme) .baize-resource-cover img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

body:not(.dark-theme) .baize-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

body:not(.dark-theme) .baize-single-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

body:not(.dark-theme) .baize-resource-content-modules {
  display: grid;
  gap: 20px;
}

body:not(.dark-theme) .baize-content-panel,
body:not(.dark-theme) .baize-side-panel {
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: var(--baize-panel);
  box-shadow: 0 12px 28px rgba(36, 72, 132, 0.07);
}

body:not(.dark-theme) .baize-content-panel {
  padding: 24px;
}

body:not(.dark-theme) .baize-section-head {
  margin-bottom: 18px;
}

body:not(.dark-theme) .baize-section-head h2 {
  margin: 0;
  color: var(--baize-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--baize-muted);
  font-size: 14px;
  line-height: 1.8;
}

body:not(.dark-theme) .baize-wp-content {
  color: var(--baize-subtext);
  font-size: 15px;
  line-height: 1.95;
}

body:not(.dark-theme) .baize-wp-content > h2:first-child,
body:not(.dark-theme) .baize-wp-content > h3:first-child {
  margin-top: 0;
}

body:not(.dark-theme) .baize-wp-content h2 {
  color: var(--baize-text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-wp-content h3 {
  color: var(--baize-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

body:not(.dark-theme) .baize-include-grid,
body:not(.dark-theme) .baize-scene-grid,
body:not(.dark-theme) .baize-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

body:not(.dark-theme) .baize-feature-item {
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: linear-gradient(180deg, #fff, #f7faff);
}

body:not(.dark-theme) .baize-feature-item.baize-item-title-only,
body:not(.dark-theme) .baize-scene-item.baize-item-title-only,
body:not(.dark-theme) .baize-case-item.baize-item-title-only,
body:not(.dark-theme) .baize-step-body.baize-item-title-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body:not(.dark-theme) .baize-feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: var(--baize-radius);
  color: #fff;
  background: linear-gradient(135deg, var(--baize-blue), var(--baize-blue-deep));
  font-weight: 900;
}

body:not(.dark-theme) .baize-feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--baize-text);
  font-size: 15px;
}

body:not(.dark-theme) .baize-feature-item p {
  margin: 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-item-title-only p {
  display: none;
}

body:not(.dark-theme) .baize-item-title-only strong {
  margin-bottom: 0 !important;
}

body:not(.dark-theme) .baize-text-list {
  display: grid;
  gap: 0;
}

body:not(.dark-theme) .baize-text-list-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(214, 228, 248, 0.82);
}

body:not(.dark-theme) .baize-text-list-row:first-child {
  padding-top: 4px;
}

body:not(.dark-theme) .baize-text-list-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not(.dark-theme) .baize-text-list-row.baize-item-title-only {
  align-items: center;
  min-height: 54px;
}

body:not(.dark-theme) .baize-text-list-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--baize-blue);
  box-shadow: 0 0 0 4px rgba(47, 128, 255, 0.09);
}

body:not(.dark-theme) .baize-text-list-row.baize-item-title-only .baize-text-list-dot {
  margin-top: 0;
}

body:not(.dark-theme) .baize-text-list-row strong {
  color: var(--baize-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.65;
}

body:not(.dark-theme) .baize-text-list-row p {
  display: block;
  margin: 4px 0 0;
  color: var(--baize-subtext);
  font-size: 15px;
  line-height: 1.85;
}

body:not(.dark-theme) .baize-include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: #fff;
}

body:not(.dark-theme) .baize-include-item > span {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--baize-radius);
  color: #fff;
  background: var(--baize-green);
  font-size: 14px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-include-item.baize-item-title-only {
  align-items: center;
  justify-content: flex-start;
}

body:not(.dark-theme) .baize-include-item strong,
body:not(.dark-theme) .baize-scene-item strong,
body:not(.dark-theme) .baize-case-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--baize-text);
  font-size: 14px;
}

body:not(.dark-theme) .baize-include-item p,
body:not(.dark-theme) .baize-scene-item p,
body:not(.dark-theme) .baize-case-item p {
  margin: 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-scene-item,
body:not(.dark-theme) .baize-case-item {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: var(--baize-soft-2);
}

body:not(.dark-theme) .baize-case-item {
  background: #fff;
}

body:not(.dark-theme) .baize-step-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

body:not(.dark-theme) .baize-step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body:not(.dark-theme) .baize-step-item.baize-item-title-only {
  align-items: stretch;
}

body:not(.dark-theme) .baize-step-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(194, 216, 252, 0.96);
  border-radius: var(--baize-radius);
  color: var(--baize-blue);
  background: var(--baize-soft);
  font-size: 18px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-step-body {
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: #fff;
}

body:not(.dark-theme) .baize-step-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--baize-text);
  font-size: 15px;
}

body:not(.dark-theme) .baize-step-body p {
  margin: 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-faq-list {
  display: grid;
  gap: 0;
}

body:not(.dark-theme) .baize-update-list {
  display: grid;
  gap: 0;
}

body:not(.dark-theme) .baize-update-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--baize-line);
}

body:not(.dark-theme) .baize-update-row.baize-item-title-only {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 54px;
}

body:not(.dark-theme) .baize-update-row:last-child {
  border-bottom: 0;
}

body:not(.dark-theme) .baize-update-row time {
  color: var(--baize-blue);
  font-size: 13px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-update-row p {
  margin: 0;
  color: var(--baize-subtext);
  font-size: 13px;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-faq-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--baize-line);
}

body:not(.dark-theme) .baize-faq-item:last-child {
  border-bottom: 0;
}

body:not(.dark-theme) .baize-faq-item summary {
  cursor: pointer;
  color: var(--baize-text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

body:not(.dark-theme) .baize-faq-item div {
  margin-top: 12px;
  color: var(--baize-muted);
  font-size: 14px;
  line-height: 1.9;
}

body:not(.dark-theme) .baize-faq-item div p {
  margin: 0;
}

body:not(.dark-theme) .baize-preview-box {
  margin: 14px 0;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--baize-radius);
  color: #eaf3ff;
  background: linear-gradient(135deg, rgba(37,76,134,0.96), rgba(14,35,72,0.98));
}

body:not(.dark-theme) .baize-preview-box strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

body:not(.dark-theme) .baize-preview-box pre {
  margin: 0;
  overflow: auto;
  color: #eaf3ff;
  background: transparent;
  border: 0;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
}

body:not(.dark-theme) .baize-resource-footer-actions {
  overflow: hidden;
}

body:not(.dark-theme) .baize-resource-footer-actions > .box-body {
  padding: 8px 0 16px !important;
  color: var(--baize-muted) !important;
  font-size: 13px !important;
}

body:not(.dark-theme) .baize-resource-footer-actions .post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action {
  min-width: 110px;
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--baize-line) !important;
  border-radius: var(--baize-radius) !important;
  background: #f7faff !important;
  color: var(--baize-subtext) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action:hover,
body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action.actived,
body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action.active {
  border-color: rgba(47, 128, 255, 0.36) !important;
  background: var(--baize-soft) !important;
  color: var(--baize-blue) !important;
}

body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action svg,
body:not(.dark-theme) .baize-resource-footer-actions .post-actions .action i {
  margin: 0 !important;
  font-size: 15px;
}

body:not(.dark-theme) .baize-content-taxonomy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body:not(.dark-theme) .baize-tax-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body:not(.dark-theme) .baize-tax-row > span {
  color: var(--baize-muted);
  font-size: 13px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-tax-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 3px 6px 3px 0;
  padding: 0 10px;
  border: 1px solid var(--baize-line);
  border-radius: 999px;
  background: var(--baize-soft);
  color: var(--baize-blue);
  font-size: 12px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-resource-footer-actions .theme-box,
body:not(.dark-theme) .baize-resource-footer-actions .box-body {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .baize-unified-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

body:not(.dark-theme) .baize-side-panel {
  overflow: hidden;
  padding: 20px;
}

body:not(.dark-theme) .baize-side-panel h3 {
  margin: 0 0 14px;
  color: var(--baize-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-purchase-panel {
  padding: 0;
  background: var(--baize-solid);
}

body:not(.dark-theme) .baize-purchase-head {
  padding: 24px 22px 22px;
  border-bottom: 1px solid var(--baize-line);
  background: linear-gradient(180deg, #fff, #f6faff);
}

body:not(.dark-theme) .baize-side-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--baize-soft);
  color: var(--baize-blue);
  font-size: 12px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-price-wrap {
  margin-top: 16px;
}

body:not(.dark-theme) .baize-price-wrap .price-box,
body:not(.dark-theme) .baize-mobile-price .price-box {
  margin: 0;
}

body:not(.dark-theme) .baize-price-card {
  display: block !important;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.dark-theme) .baize-price-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--baize-subtext);
  font-size: 13px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-price-card strong {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--baize-blue);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
}

body:not(.dark-theme) .baize-price-card em {
  font-style: normal;
  font-size: 22px;
}

body:not(.dark-theme) .baize-points-price-card strong {
  color: #18a36b;
}

body:not(.dark-theme) .baize-points-price-card .baize-points-number {
  color: inherit;
}

body:not(.dark-theme) .baize-points-price-card .baize-points-mark {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-pay-price {
  color: var(--baize-blue);
}

body:not(.dark-theme) .baize-pay-price .em3x,
body:not(.dark-theme) .baize-pay-price b {
  color: var(--baize-blue);
  font-size: 34px;
  line-height: 1;
}

body:not(.dark-theme) .baize-vip-price-wrap {
  margin-top: 12px;
}

body:not(.dark-theme) .baize-purchase-panel .vip-price-buts,
body:not(.dark-theme) .baize-vip-price-wrap .vip-price-buts {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

body:not(.dark-theme) .baize-purchase-panel .vip-price,
body:not(.dark-theme) .baize-vip-price-wrap .vip-price,
body:not(.dark-theme) .baize-purchase-panel .vip-price-buts > * {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(194, 216, 252, 0.96) !important;
  border-radius: var(--baize-radius) !important;
  background: #f6f8fc !important;
  color: #475467 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-vip-name,
body:not(.dark-theme) .baize-vip-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body:not(.dark-theme) .baize-vip-value {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-vip-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: currentColor !important;
}

body:not(.dark-theme) .baize-purchase-panel .baize-vip-level-1 {
  border-color: rgba(255, 214, 166, 0.72) !important;
  background: #fff7ed !important;
  color: #667085 !important;
}

body:not(.dark-theme) .baize-purchase-panel .baize-vip-level-1 .baize-vip-icon {
  color: #ff7a3d !important;
}

body:not(.dark-theme) .baize-purchase-panel .baize-vip-level-2 {
  border-color: rgba(210, 214, 255, 0.8) !important;
  background: #f4f5ff !important;
  color: #667085 !important;
}

body:not(.dark-theme) .baize-purchase-panel .baize-vip-level-2 .baize-vip-icon {
  color: #9b8cf6 !important;
}

body:not(.dark-theme) .baize-purchase-panel .vip-price-buts > * *,
body:not(.dark-theme) .baize-vip-price-wrap .vip-price *,
body:not(.dark-theme) .baize-vip-price-wrap .badg,
body:not(.dark-theme) .baize-vip-price-wrap b,
body:not(.dark-theme) .baize-vip-price-wrap span,
body:not(.dark-theme) .baize-vip-price-wrap i {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background: transparent !important;
  text-shadow: none !important;
}

body:not(.dark-theme) .baize-member-price-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(180, 207, 250, 0.96);
  border-radius: var(--baize-radius);
  background: #f7faff;
}

body:not(.dark-theme) .baize-member-price-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #2268e8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(194, 216, 252, 0.96);
}

body:not(.dark-theme) .baize-member-price-card strong {
  color: #101828;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-member-price-card small {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

body:not(.dark-theme) .baize-paid-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--baize-radius);
  color: var(--baize-green);
  background: #ecfff6;
  font-weight: 900;
}

body:not(.dark-theme) .baize-purchase-body {
  padding: 18px 22px 22px;
}

body:not(.dark-theme) .baize-pay-doc {
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-service-row {
  margin-top: 12px;
  color: var(--baize-muted);
  font-size: 12px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-buy-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

body:not(.dark-theme) .baize-buy-actions .pay-button,
body:not(.dark-theme) .baize-pay-main-button,
body:not(.dark-theme) .baize-purchase-panel .cashier-link,
body:not(.dark-theme) .baize-buy-actions .pay-vip,
body:not(.dark-theme) .baize-buy-actions .signin-loader,
body:not(.dark-theme) .baize-buy-actions .but.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--baize-radius) !important;
  border-color: var(--baize-blue) !important;
  border-width: 0 !important;
  background: linear-gradient(135deg, var(--baize-blue), var(--baize-blue-deep)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.2;
}

body:not(.dark-theme) .baize-buy-actions .pay-button *,
body:not(.dark-theme) .baize-pay-main-button *,
body:not(.dark-theme) .baize-purchase-panel .cashier-link *,
body:not(.dark-theme) .baize-buy-actions .pay-vip *,
body:not(.dark-theme) .baize-buy-actions .signin-loader *,
body:not(.dark-theme) .baize-buy-actions .but.btn-block * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}

body:not(.dark-theme) .baize-purchase-panel .cashier-link:hover,
body:not(.dark-theme) .baize-pay-main-button:hover,
body:not(.dark-theme) .baize-buy-actions .pay-vip:hover {
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(47, 128, 255, 0.22);
}

body:not(.dark-theme) .baize-demo-link .but,
body:not(.dark-theme) .baize-pay-secondary-button {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: var(--baize-radius) !important;
  background: var(--baize-soft);
  color: var(--baize-blue);
}

body:not(.dark-theme) .baize-sales-note {
  margin-top: 12px;
  color: var(--baize-muted);
  font-size: 12px;
  text-align: center;
}

body:not(.dark-theme) .baize-info-list,
body:not(.dark-theme) .baize-related-list {
  display: grid;
  gap: 10px;
}

body:not(.dark-theme) .baize-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--baize-line);
  color: var(--baize-muted);
  font-size: 13px;
}

body:not(.dark-theme) .baize-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not(.dark-theme) .baize-info-row strong,
body:not(.dark-theme) .baize-info-row .attr-value {
  color: var(--baize-text);
  font-weight: 800;
  text-align: right;
}

body:not(.dark-theme) .baize-resource-information .baize-resource-info-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--baize-line);
}

body:not(.dark-theme) .baize-resource-information .baize-resource-info-section h4 {
  margin: 0 0 10px;
  color: var(--baize-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

body:not(.dark-theme) .baize-resource-information .baize-resource-info-chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.dark-theme) .baize-resource-information .baize-resource-info-chips span,
body:not(.dark-theme) .baize-resource-information .baize-capability-more {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

body:not(.dark-theme) .baize-resource-information .baize-capability-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(202, 217, 241, .96);
  border-radius: 999px;
  background: #f7faff;
  color: #41658f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-resource-information .baize-capability-tags .is-overflow[hidden] {
  display: none;
}

body:not(.dark-theme) .baize-resource-information .baize-capability-more {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 12px;
  border: 1px solid rgba(183, 207, 245, .96);
  border-radius: 999px;
  background: #edf4ff;
  color: #2268e8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

body:not(.dark-theme) .baize-resource-information .baize-capability-more:hover {
  border-color: rgba(109, 157, 234, .96);
  background: #e4efff;
}

body:not(.dark-theme) .baize-resource-information .baize-capability-more:focus-visible {
  outline: 3px solid rgba(47, 107, 255, .28);
  outline-offset: 2px;
}

body:not(.dark-theme) .baize-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

body:not(.dark-theme) .baize-author-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(180, 207, 250, 0.9);
  border-radius: var(--baize-radius);
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.14), rgba(24, 163, 107, 0.1));
  color: var(--baize-blue);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

body:not(.dark-theme) .baize-author-card img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  flex: 0 0 auto;
  border-radius: var(--baize-radius);
  object-fit: cover;
}

body:not(.dark-theme) .baize-author-avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

body:not(.dark-theme) .baize-author-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--baize-text);
  font-size: 14px;
}

body:not(.dark-theme) .baize-author-card p {
  margin: 0;
  color: var(--baize-muted);
  font-size: 12px;
  line-height: 1.55;
}

body:not(.dark-theme) .baize-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.dark-theme) .baize-related-item {
  display: block;
  padding: 14px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: #fff;
}

body:not(.dark-theme) .baize-related-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--baize-text);
  font-size: 13px;
  line-height: 1.45;
}

body:not(.dark-theme) .baize-related-item span {
  color: var(--baize-muted);
  font-size: 12px;
  line-height: 1.65;
}

body:not(.dark-theme) .baize-purchase-panel .pay-attr,
body:not(.dark-theme) .baize-info-panel .pay-attr {
  margin-top: 0;
}

body:not(.dark-theme) .baize-purchase-panel .but-download {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
}

body:not(.dark-theme) .baize-purchase-panel .but-download .but {
  flex: 1 1 auto;
  justify-content: center;
  border-radius: var(--baize-radius) !important;
}

body:not(.dark-theme) .baize-mobile-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--baize-line);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -10px 26px rgba(36, 72, 132, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body:not(.dark-theme) .baize-mobile-price {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body:not(.dark-theme) .baize-mobile-price strong,
body:not(.dark-theme) .baize-mobile-price .em3x {
  color: var(--baize-blue);
  font-size: 18px;
  line-height: 1.1;
}

body:not(.dark-theme) .baize-mobile-price span {
  color: var(--baize-muted);
  font-size: 12px;
}

body:not(.dark-theme) .baize-resource-archive {
  padding-top: 28px;
  padding-bottom: 84px;
}

body:not(.dark-theme) .baize-archive-hero {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 128, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #fff, #f7fbff);
  box-shadow: var(--baize-shadow);
}

body:not(.dark-theme) .baize-archive-hero h1 {
  margin: 16px 0 10px;
  color: var(--baize-text);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-archive-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--baize-subtext);
  font-size: 15px;
  line-height: 1.85;
}

body:not(.dark-theme) .baize-resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body:not(.dark-theme) .baize-resource-card {
  overflow: hidden;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 28px rgba(36, 72, 132, 0.07);
}

body:not(.dark-theme) .baize-resource-card-cover {
  display: block;
  height: 170px;
  overflow: hidden;
  background: var(--baize-soft);
}

body:not(.dark-theme) .baize-resource-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-card-body {
  padding: 16px;
}

body:not(.dark-theme) .baize-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body:not(.dark-theme) .baize-card-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--baize-soft);
  color: var(--baize-blue);
  font-size: 12px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-resource-card h2 {
  min-height: 50px;
  margin: 0 0 8px;
  color: var(--baize-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
}

body:not(.dark-theme) .baize-resource-card p {
  min-height: 68px;
  margin: 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-resource-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--baize-line);
  color: var(--baize-muted);
  font-size: 12px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-archive-pagination {
  margin-top: 28px;
}

/* Global sidebar unification for existing Zibll widgets. */
body:not(.dark-theme) .sidebar .zib-widget,
body:not(.dark-theme) .sidebar .theme-box,
body:not(.dark-theme) .sidebar .pay-widget,
body:not(.dark-theme) .sidebar .author {
  overflow: hidden;
  border: 1px solid var(--baize-line) !important;
  border-radius: var(--baize-radius) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 12px 28px rgba(36, 72, 132, 0.07) !important;
}

body:not(.dark-theme) .sidebar .pay-widget {
  padding: 0 !important;
}

body:not(.dark-theme) .sidebar .pay-widget .relative-h {
  background:
    radial-gradient(circle at 88% 6%, rgba(47,128,255,0.12), transparent 30%),
    linear-gradient(180deg, #fff, #f6faff) !important;
}

body:not(.dark-theme) .sidebar .pay-widget .relative-h > .absolute {
  display: none;
}

body:not(.dark-theme) .sidebar .pay-widget .pay-tag {
  border-radius: 999px;
  background: var(--baize-soft);
  color: var(--baize-blue);
}

body:not(.dark-theme) .sidebar .pay-widget .price-box b {
  color: var(--baize-blue);
}

body:not(.dark-theme) .sidebar .pay-widget .pay-button,
body:not(.dark-theme) .sidebar .pay-widget .but.btn-block,
body:not(.dark-theme) .sidebar .pay-widget .cashier-link {
  border-radius: var(--baize-radius) !important;
  font-weight: 900;
}

body:not(.dark-theme) .sidebar .pay-widget .cashier-link,
body:not(.dark-theme) .sidebar .pay-widget .pay-button {
  border-color: var(--baize-blue) !important;
  background: linear-gradient(135deg, var(--baize-blue), var(--baize-blue-deep)) !important;
  color: #fff !important;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .baize-resource-hero,
  body:not(.dark-theme) .baize-single-grid {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-unified-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.dark-theme) .baize-purchase-panel {
    grid-column: 1 / -1;
  }

  body:not(.dark-theme) .baize-resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-single-container {
    padding-top: 14px;
  }

  body:not(.dark-theme) .baize-resource-hero {
    gap: 18px;
    padding: 18px;
  }

  body:not(.dark-theme) .baize-resource-hero h1 {
    font-size: 30px;
  }

  body:not(.dark-theme) .baize-resource-lead {
    font-size: 15px;
  }

  body:not(.dark-theme) .baize-resource-stats,
  body:not(.dark-theme) .baize-feature-grid,
  body:not(.dark-theme) .baize-include-grid,
  body:not(.dark-theme) .baize-scene-grid,
  body:not(.dark-theme) .baize-case-grid,
  body:not(.dark-theme) .baize-unified-sidebar {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-step-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.dark-theme) .baize-step-num {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  body:not(.dark-theme) .baize-update-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body:not(.dark-theme) .baize-resource-cover,
  body:not(.dark-theme) .baize-resource-cover img {
    min-height: 250px;
  }

  body:not(.dark-theme) .baize-content-panel,
  body:not(.dark-theme) .baize-side-panel {
    padding: 18px;
  }

  body:not(.dark-theme) .baize-purchase-panel {
    padding: 0;
  }

  body:not(.dark-theme) .baize-purchase-head,
  body:not(.dark-theme) .baize-purchase-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  body:not(.dark-theme) .baize-mobile-buybar {
    display: flex;
  }

  body:not(.dark-theme) .baize-resource-card-grid {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-archive-hero {
    padding: 20px;
  }

  body:not(.dark-theme) .baize-archive-hero h1 {
    font-size: 30px;
  }
}

/* BAIZE AI Marketplace 2.0 resource detail reference layout. */
body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
  gap: 30px;
  min-height: 300px;
  padding: 26px 28px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero-copy {
  justify-content: center;
  padding: 10px 12px 10px 0;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover,
body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
  min-height: 270px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-eyebrow {
  margin-bottom: 10px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero h1 {
  order: initial;
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 46px);
}

body:not(.dark-theme) .baize-resource-template .baize-pill-row,
body:not(.dark-theme) .baize-resource-template .baize-resource-lead {
  order: initial;
}

body:not(.dark-theme) .baize-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body:not(.dark-theme) .baize-resource-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--baize-radius);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

body:not(.dark-theme) .baize-resource-action.is-primary {
  background: var(--baize-blue);
  color: #fff;
}

body:not(.dark-theme) .baize-resource-action.is-secondary {
  border-color: rgba(47, 128, 255, .55);
  background: #fff;
  color: var(--baize-blue);
}

body:not(.dark-theme) .baize-resource-action:hover,
body:not(.dark-theme) .baize-resource-action:focus {
  box-shadow: 0 8px 18px rgba(47, 128, 255, .2);
  color: var(--baize-blue-deep);
}

body:not(.dark-theme) .baize-resource-action.is-primary:hover,
body:not(.dark-theme) .baize-resource-action.is-primary:focus {
  background: var(--baize-blue-deep);
  color: #fff;
}

body:not(.dark-theme) .baize-resource-gallery {
  margin-top: 22px;
  padding: 22px;
}

body:not(.dark-theme) .baize-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

body:not(.dark-theme) .baize-gallery-main {
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: var(--baize-soft-2);
}

body:not(.dark-theme) .baize-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
}

body:not(.dark-theme) .baize-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
  max-height: 330px;
  overflow-y: auto;
}

body:not(.dark-theme) .baize-gallery-thumb {
  display: block;
  min-height: 70px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--baize-radius);
  background: var(--baize-soft-2);
  cursor: pointer;
}

body:not(.dark-theme) .baize-gallery-thumb.is-active,
body:not(.dark-theme) .baize-gallery-thumb:focus-visible {
  border-color: var(--baize-blue);
  outline: 0;
}

body:not(.dark-theme) .baize-gallery-thumb img {
  display: block;
  width: 100%;
  height: 70px;
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-template .baize-single-grid {
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
}

body:not(.dark-theme) .baize-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.dark-theme) .baize-capability-card,
body:not(.dark-theme) .baize-step-card,
body:not(.dark-theme) .baize-case-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: var(--baize-soft-2);
}

body:not(.dark-theme) .baize-capability-card h3,
body:not(.dark-theme) .baize-case-card h3 {
  margin: 0;
  color: var(--baize-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

body:not(.dark-theme) .baize-capability-card p {
  margin: 7px 0 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body:not(.dark-theme) .baize-step-card span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--baize-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-step-card p {
  margin: 12px 0 0;
  color: var(--baize-subtext);
  font-size: 13px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-case-grid {
  display: grid;
  gap: 10px;
}

body:not(.dark-theme) .baize-case-card {
  background: #fff;
}

body:not(.dark-theme) .baize-include-tags,
body:not(.dark-theme) .baize-scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.dark-theme) .baize-include-tags span,
body:not(.dark-theme) .baize-scenario-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(194, 216, 252, .96);
  border-radius: 999px;
  background: #eef5ff;
  color: #2268e8;
  font-size: 13px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-acquisition-price {
  margin: 2px 0 14px;
  color: var(--baize-blue);
  font-size: 24px;
  font-weight: 900;
}

body:not(.dark-theme) .baize-acquisition-button-wrap .baize-pay-main-button,
body:not(.dark-theme) .baize-acquisition-button-wrap .pay-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: var(--baize-radius) !important;
  background: var(--baize-blue) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  }

  body:not(.dark-theme) .baize-resource-template .baize-single-grid {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover,
  body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
    min-height: 230px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
    order: 2;
  }

  body:not(.dark-theme) .baize-gallery-layout {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow: hidden;
  }

  body:not(.dark-theme) .baize-gallery-thumb img {
    height: 58px;
  }

  body:not(.dark-theme) .baize-capability-grid,
  body:not(.dark-theme) .baize-step-grid {
    grid-template-columns: 1fr;
  }
}

/* Resource detail typography refinement: align module text scale with AI tool detail pages. */
body:not(.dark-theme) .baize-resource-content-modules .baize-section-head h2,
body:not(.dark-theme) .baize-resource-module .baize-section-head h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

body:not(.dark-theme) .baize-resource-content-modules .baize-section-head p,
body:not(.dark-theme) .baize-resource-module .baize-section-head p,
body:not(.dark-theme) .baize-resource-content-modules .baize-wp-content,
body:not(.dark-theme) .baize-resource-module .baize-wp-content {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

body:not(.dark-theme) .baize-resource-content-modules .baize-wp-content h2,
body:not(.dark-theme) .baize-resource-module .baize-wp-content h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

body:not(.dark-theme) .baize-resource-content-modules .baize-wp-content h3,
body:not(.dark-theme) .baize-resource-module .baize-wp-content h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

body:not(.dark-theme) .baize-resource-content-modules strong,
body:not(.dark-theme) .baize-resource-module strong,
body:not(.dark-theme) .baize-text-list-row strong,
body:not(.dark-theme) .baize-feature-item strong,
body:not(.dark-theme) .baize-include-item strong,
body:not(.dark-theme) .baize-scene-item strong,
body:not(.dark-theme) .baize-case-item strong,
body:not(.dark-theme) .baize-step-body strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-resource-content-modules p,
body:not(.dark-theme) .baize-resource-module p,
body:not(.dark-theme) .baize-text-list-row p,
body:not(.dark-theme) .baize-feature-item p,
body:not(.dark-theme) .baize-include-item p,
body:not(.dark-theme) .baize-scene-item p,
body:not(.dark-theme) .baize-case-item p,
body:not(.dark-theme) .baize-step-body p,
body:not(.dark-theme) .baize-update-row p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

body:not(.dark-theme) .baize-text-list-row strong {
  font-size: 15px;
  font-weight: 600;
}

body:not(.dark-theme) .baize-faq-item summary {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

body:not(.dark-theme) .baize-faq-item div {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

/* BAIZE-024-B resource detail presentation. */
body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 32px;
  min-height: 360px;
  padding: 24px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
  min-height: 312px;
  height: 100%;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
  min-height: 312px;
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero-copy {
  justify-content: center;
  padding: 14px 20px 14px 0;
}

body:not(.dark-theme) .baize-resource-eyebrow {
  margin-bottom: 12px;
  color: var(--baize-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

body:not(.dark-theme) .baize-resource-template .baize-pill-row {
  order: 2;
  margin: 18px 0 0;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-lead {
  order: 3;
  margin-top: 16px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero h1 {
  order: 1;
}

body:not(.dark-theme) .baize-resource-template .baize-pill.is-type {
  border-color: rgba(24, 163, 107, .24);
  background: #ecfff6;
  color: var(--baize-green);
}

body:not(.dark-theme) .baize-resource-template .baize-resource-module > h2 {
  margin: 0 0 16px;
  color: var(--baize-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

body:not(.dark-theme) .baize-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.dark-theme) .baize-detail-list li {
  position: relative;
  padding: 11px 14px 11px 34px;
  border: 1px solid var(--baize-line);
  border-radius: var(--baize-radius);
  background: var(--baize-soft-2);
  color: var(--baize-subtext);
  font-size: 14px;
  line-height: 1.7;
}

body:not(.dark-theme) .baize-detail-list li::before {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--baize-blue);
  content: '\2022';
  font-size: 18px;
  line-height: 1;
}

body:not(.dark-theme) .baize-scenarios-module {
  padding-top: 20px;
  padding-bottom: 20px;
}

body:not(.dark-theme) .baize-scenario-tags {
  gap: 8px;
}

body:not(.dark-theme) .baize-scenario-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(194, 216, 252, .96);
  border-radius: 999px;
  background: #eef5ff;
  color: #2268e8;
  font-size: 13px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-related-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.dark-theme) .baize-related-resources .bz2-resource-card {
  min-width: 0;
}

body:not(.dark-theme) .baize-acquisition-status {
  margin: -5px 0 14px;
  color: var(--baize-blue);
  font-size: 14px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-acquisition-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--baize-radius);
  background: var(--baize-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

body:not(.dark-theme) .baize-acquisition-button:hover,
body:not(.dark-theme) .baize-acquisition-button:focus {
  background: var(--baize-blue-deep);
  box-shadow: 0 8px 18px rgba(47, 128, 255, .22);
  color: #fff;
}

body:not(.dark-theme) .baize-acquisition-note {
  margin: 10px 0 0;
  color: var(--baize-muted);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .baize-related-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 16px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover,
  body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
    min-height: 240px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-hero-copy {
    padding: 0 2px 4px;
  }

  body:not(.dark-theme) .baize-related-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Final order override: copy left, cover right, matching the 2.0 reference. */
body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero-copy {
  padding: 10px 12px 10px 0;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
  order: initial;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero h1,
body:not(.dark-theme) .baize-resource-template .baize-pill-row,
body:not(.dark-theme) .baize-resource-template .baize-resource-lead {
  order: initial;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
    order: 2;
  }
}

body:not(.dark-theme) .baize-preview-box strong {
  font-size: 14px;
  font-weight: 600;
}

body:not(.dark-theme) .baize-preview-box pre {
  font-size: 13px;
  font-weight: 400;
}

/* BAIZE-029: unified resource detail display model. */
body:not(.dark-theme) .baize-resource-template {
  padding-bottom: 48px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 43%);
  gap: clamp(24px, 4vw, 52px);
  min-height: 360px;
  padding: clamp(24px, 4vw, 48px);
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero-copy {
  padding: 0;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-lead {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-actions {
  margin-top: 26px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-action {
  min-height: 44px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-action:focus-visible,
body:not(.dark-theme) .baize-resource-template .baize-gallery-thumb:focus-visible,
body:not(.dark-theme) .baize-resource-template .baize-faq-item summary:focus-visible {
  outline: 3px solid rgba(47, 128, 255, .3);
  outline-offset: 3px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
  min-height: 280px;
  margin: 0;
  aspect-ratio: 16 / 10;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
  min-height: 280px;
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-template .baize-single-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-gallery {
  margin-top: 0;
}

body:not(.dark-theme) .baize-resource-template .baize-gallery-layout.is-single {
  grid-template-columns: 1fr;
}

body:not(.dark-theme) .baize-resource-template .baize-step-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

body:not(.dark-theme) .baize-resource-template .baize-step-card span {
  flex: 0 0 30px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-card h3,
body:not(.dark-theme) .baize-resource-template .baize-case-card h3 {
  margin: 3px 0 0;
  color: var(--baize-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

body:not(.dark-theme) .baize-resource-template .baize-step-card p,
body:not(.dark-theme) .baize-resource-template .baize-case-card p {
  margin: 7px 0 0;
  color: var(--baize-muted);
  font-size: 13px;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-resource-template .baize-related-resources {
  margin-top: 24px;
}

body:not(.dark-theme) .baize-resource-template .baize-related-resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-sidebar > .baize-side-panel,
body:not(.dark-theme) .baize-resource-template .baize-resource-sidebar > .baize-purchase-panel {
  margin-bottom: 16px;
}

body:not(.dark-theme) .baize-resource-template .baize-purchase-panel.baize-acquisition-panel {
  width: 100%;
}

@media (max-width: 991px) {
  body:not(.dark-theme) .baize-resource-template .baize-single-grid {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template {
    padding-bottom: calc(200px + env(safe-area-inset-bottom));
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 20px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
    order: 2;
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-cover,
  body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
    min-height: 210px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-gallery-layout {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-resource-template .baize-related-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-action,
  body:not(.dark-theme) .baize-resource-template .baize-acquisition-button {
    transition: none;
  }
}

/* BAIZE-029-A: resource-only presentation refinements. */
body:not(.dark-theme) .baize-resource-template .baize-capability-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.dark-theme) .baize-resource-template .baize-capabilities:not(.is-expanded) .baize-capability-card.is-overflow {
  display: none;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-grid.is-compact .baize-capability-card {
  padding: 13px 14px;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-toggle {
  display: flex;
  min-width: 132px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 0 18px;
  border: 1px solid var(--baize-line);
  border-radius: 999px;
  background: #fff;
  color: var(--baize-blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease;
}

/* BAIZE-033 profile-specific resource facts. */
body:not(.dark-theme) .baize-resource-template .baize-profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* BAIZE-034 final product presentation. */
body:not(.dark-theme) .baize-resource-template .baize-resource-eyebrow {
  margin: 0 0 12px;
  color: var(--baize-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-introduction .baize-wp-content {
  width: 100%;
  max-width: none;
}

body:not(.dark-theme) .baize-resource-template .baize-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body:not(.dark-theme) .baize-resource-template .baize-case-card {
  padding: 20px;
  border-color: #e5ebf4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 51, 88, .05);
}

body:not(.dark-theme) .baize-resource-template .baize-case-card .baize-case-scenario {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 10px 0 0;
  color: #52627c;
  font-size: 13px;
  line-height: 1.6;
}

body:not(.dark-theme) .baize-resource-template .baize-case-scenario span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2268e8;
  font-size: 11px;
  font-weight: 800;
}

body:not(.dark-theme) .baize-resource-template .baize-case-card .baize-case-description {
  margin-top: 10px;
}

body:not(.dark-theme) .baize-resource-template .baize-include-tags span::before {
  margin-right: 7px;
  color: #16845b;
  content: "\2713";
  font-weight: 900;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #f8fbff;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact h3 {
  margin: 0 0 12px;
  color: #17233b;
  font-size: 16px;
  line-height: 1.45;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact li {
  display: grid;
  gap: 3px;
  position: relative;
  padding-left: 16px;
  color: #44516a;
  line-height: 1.65;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3478f6;
  content: "";
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact li strong {
  color: #26344d;
  font-weight: 600;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-fact li span {
  color: #68758d;
  font-size: 14px;
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-profile-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.dark-theme) .baize-resource-template .baize-case-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.dark-theme) .baize-resource-template .baize-profile-fact {
    padding: 16px;
  }
}

body:not(.dark-theme) .baize-resource-template .baize-capability-toggle:hover,
body:not(.dark-theme) .baize-resource-template .baize-capability-toggle:focus-visible {
  border-color: rgba(47, 128, 255, .55);
  background: #f5f9ff;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-toggle:focus-visible {
  outline: 3px solid rgba(47, 128, 255, .3);
  outline-offset: 3px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 0 0 28px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item:last-child {
  padding-bottom: 0;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: 8px;
  left: 26px;
  width: 2px;
  background: #dce9ff;
  content: '';
}

body:not(.dark-theme) .baize-resource-template .baize-step-number {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(47, 128, 255, .25);
  border-radius: 12px;
  background: #eef5ff;
  color: var(--baize-blue);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

body:not(.dark-theme) .baize-resource-template .baize-step-content {
  min-width: 0;
  padding: 5px 0 1px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-content h3 {
  margin: 0;
  color: var(--baize-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

body:not(.dark-theme) .baize-resource-template .baize-step-content p {
  margin: 7px 0 0;
  color: var(--baize-muted);
  font-size: 14px;
  line-height: 1.8;
}

body:not(.dark-theme) .baize-resource-template .baize-related-resources {
  margin-top: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.dark-theme) .baize-resource-template .baize-related-resources > h2 {
  margin: 0 0 18px;
  color: var(--baize-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

body:not(.dark-theme) .baize-resource-template .baize-related-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-resource-cover {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-resource-body {
  min-height: 0;
  flex: 1;
  padding: 16px;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-resource-body h3 {
  min-height: 45px;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-resource-capabilities {
  margin-top: 9px;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-card-actions {
  padding-top: 16px;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-card-actions .is-primary {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .baize-resource-template .baize-related-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-capability-grid.is-compact,
  body:not(.dark-theme) .baize-resource-template .baize-related-resource-grid {
    grid-template-columns: 1fr;
  }

  body:not(.dark-theme) .baize-resource-template .baize-step-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 24px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-step-number {
    width: 46px;
    height: 40px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-step-item:not(:last-child)::after {
    top: 44px;
    left: 22px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-related-resources {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.dark-theme) .baize-resource-template .baize-capability-toggle {
    transition: none;
  }
}

/* BAIZE-037 final Resource Profile productization. */
body:not(.dark-theme) .baize-resource-template {
  overflow-x: clip;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-grid,
body:not(.dark-theme) .baize-resource-template .baize-capability-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-configuration {
  border-color: #dbe8fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

body:not(.dark-theme) .baize-resource-template .baize-resource-configuration .baize-profile-fact-grid {
  gap: 14px;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-configuration .baize-profile-fact {
  border-color: #e1eaf7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(38, 73, 129, .045);
}

body:not(.dark-theme) .baize-resource-template .baize-step-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 18px;
  border: 1px solid #e1e9f5;
  border-radius: 14px;
  background: #f9fbff;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item:last-child {
  padding-bottom: 18px;
}

body:not(.dark-theme) .baize-resource-template .baize-step-item:not(:last-child)::after {
  display: none;
}

body:not(.dark-theme) .baize-resource-template .baize-step-content {
  padding: 3px 0 0;
}

body:not(.dark-theme) .baize-resource-template .baize-gallery-main {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

body:not(.dark-theme) .baize-resource-template .baize-gallery-main img {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

/* BAIZE-038 resource-detail typography and FAQ consolidation. */

/* BAIZE-039 included-content delivery cards. */
body:not(.dark-theme) .baize-resource-template .baize-delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body:not(.dark-theme) .baize-resource-template .baize-delivery-item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #fff;
}

body:not(.dark-theme) .baize-resource-template .baize-delivery-check {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef7f1;
  color: #2b7a4b;
  font-size: 13px;
  font-weight: 700;
}

body:not(.dark-theme) .baize-resource-template .baize-delivery-item strong,
body:not(.dark-theme) .baize-resource-template .baize-delivery-item small {
  display: block;
}

body:not(.dark-theme) .baize-resource-template .baize-delivery-item strong {
  color: #172033;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

body:not(.dark-theme) .baize-resource-template .baize-delivery-item small {
  margin-top: 3px;
  color: #657084;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 640px) {
  body:not(.dark-theme) .baize-resource-template .baize-delivery-grid { grid-template-columns: 1fr; }
}

/* BAIZE-040 final Profile attributes and progressive step disclosure. */
body:not(.dark-theme) .baize-resource-template .baize-profile-fact.is-explanation {
  grid-column: 1 / -1;
  background: #f8fbff;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-chips > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #d7e5fb;
  border-radius: 8px;
  background: #f1f6ff;
  color: #285da8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-explanation {
  display: grid;
  gap: 12px;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-explanation > div + div {
  padding-top: 12px;
  border-top: 1px solid #e3eaf5;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-explanation strong {
  display: block;
  color: #26344d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

body:not(.dark-theme) .baize-resource-template .baize-profile-explanation p {
  margin: 5px 0 0;
  color: #68758d;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.75;
}

body:not(.dark-theme) .baize-resource-template .baize-usage-steps.has-more .baize-step-item.is-overflow {
  display: none;
}

body:not(.dark-theme) .baize-resource-template .baize-usage-steps.has-more.is-expanded .baize-step-item.is-overflow {
  display: grid;
}

body:not(.dark-theme) .baize-resource-template .baize-step-toggle {
  display: flex;
  min-width: 168px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 0 18px;
  border: 1px solid var(--baize-line);
  border-radius: 999px;
  background: #fff;
  color: var(--baize-blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 150ms ease, background-color 150ms ease;
}

body:not(.dark-theme) .baize-resource-template .baize-step-toggle:hover,
body:not(.dark-theme) .baize-resource-template .baize-step-toggle:focus-visible {
  border-color: rgba(47, 128, 255, .55);
  background: #f5f9ff;
}

body:not(.dark-theme) .baize-resource-template .baize-step-toggle:focus-visible {
  outline: 3px solid rgba(47, 128, 255, .3);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.dark-theme) .baize-resource-template .baize-step-toggle { transition: none; }
}
body:not(.dark-theme) .baize-resource-template .baize-resource-introduction .baize-wp-content,
body:not(.dark-theme) .baize-resource-template .baize-resource-introduction .baize-wp-content p {
  width: 100%;
  max-width: none;
  font-size: 15px;
  font-weight: 400;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-card h3,
body:not(.dark-theme) .baize-resource-template .baize-profile-fact h3,
body:not(.dark-theme) .baize-resource-template .baize-profile-fact li strong,
body:not(.dark-theme) .baize-resource-template .baize-step-content h3,
body:not(.dark-theme) .baize-resource-template .baize-case-card h3,
body:not(.dark-theme) .baize-resource-template .baize-case-scenario span,
body:not(.dark-theme) .baize-resource-template .baize-include-tags strong {
  font-size: 15px;
  font-weight: 600;
}

body:not(.dark-theme) .baize-resource-template .baize-capability-card p,
body:not(.dark-theme) .baize-resource-template .baize-profile-fact li span,
body:not(.dark-theme) .baize-resource-template .baize-step-content p,
body:not(.dark-theme) .baize-resource-template .baize-case-card .baize-case-description,
body:not(.dark-theme) .baize-resource-template .baize-case-card .baize-case-scenario,
body:not(.dark-theme) .baize-resource-template .baize-include-tags small {
  font-size: 14.5px;
  font-weight: 400;
}

body:not(.dark-theme) .baize-resource-template .baize-include-tags span {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body:not(.dark-theme) .baize-resource-template .baize-include-tags small {
  margin-top: 3px;
  color: var(--baize-muted);
  line-height: 1.65;
}

body:not(.dark-theme) .baize-resource-template .baize-faq-item summary {
  font-size: 16px;
  font-weight: 700;
}

body:not(.dark-theme) .baize-resource-template .baize-faq-item > div {
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 767px) {
  body:not(.dark-theme) .baize-resource-template .baize-resource-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(30px, 10vw, 40px);
  }

  body:not(.dark-theme) .baize-resource-template .baize-resource-lead,
  body:not(.dark-theme) .baize-resource-template .baize-wp-content,
  body:not(.dark-theme) .baize-resource-template .baize-profile-fact,
  body:not(.dark-theme) .baize-resource-template .baize-step-content,
  body:not(.dark-theme) .baize-resource-template .baize-case-card {
    overflow-wrap: anywhere;
  }

  body:not(.dark-theme) .baize-resource-template .baize-capability-grid,
  body:not(.dark-theme) .baize-resource-template .baize-capability-grid.is-compact,
  body:not(.dark-theme) .baize-resource-template .baize-step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.dark-theme) .baize-resource-template .baize-step-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-step-item:last-child {
    padding-bottom: 16px;
  }

  body:not(.dark-theme) .baize-resource-template .baize-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body:not(.dark-theme) .baize-resource-template .baize-gallery-thumb {
    flex: 0 0 76px;
    scroll-snap-align: start;
  }
}

/* BAO-016H: Resource covers are exported at 1200×630.  Keep the Hero at
 * that native ratio on every viewport so it matches Resource cards without
 * inheriting a historical fixed minimum height. */
body:not(.dark-theme) .baize-resource-template .baize-resource-cover {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1200 / 630;
  align-self: start;
}

body:not(.dark-theme) .baize-resource-template .baize-resource-cover img {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

body:not(.dark-theme) .baize-resource-template .bz2-resource-card.is-related .bz2-resource-cover {
  aspect-ratio: 1200 / 630;
}
