/* Reference fidelity layer. Loaded after the legacy stylesheet on purpose. */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35M10.8 18a7.2 7.2 0 1 1 0-14.4 7.2 7.2 0 0 1 0 14.4Z' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h10l6 6-9 9-7-7V5Z M8 8.5h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-copylink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l2-2a5 5 0 0 0-7-7l-1.2 1.2M14 11a5 5 0 0 0-7 0l-2 2a5 5 0 0 0 7 7l1.2-1.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.kb-topbar .kb-search {
  position: relative !important;
}

.kb-topbar .kb-search::before {
  position: absolute !important;
  left: 19px !important;
  top: 50% !important;
  z-index: 2 !important;
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  background: #77818c !important;
  content: "" !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
  -webkit-mask: var(--i-search) center / contain no-repeat !important;
  mask: var(--i-search) center / contain no-repeat !important;
}

.kb-topbar .kb-search input {
  padding-left: 50px !important;
}

.kb-nav-group summary::before,
.kb-nav button::before,
.kb-path::before,
.kb-copy::before,
.kb-lang-toggle::before,
.article-tools span::before,
.article-toc a::before {
  display: inline-block !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  box-shadow: none !important;
  content: "" !important;
  -webkit-mask: var(--icon-url, var(--i-file)) center / contain no-repeat !important;
  mask: var(--icon-url, var(--i-file)) center / contain no-repeat !important;
}

.kb-nav-group summary::before {
  --icon-url: var(--group-icon, var(--i-grid));
  width: 18px !important;
  height: 18px !important;
  margin: 0 10px 0 0 !important;
  color: #3d4650 !important;
}

.kb-nav-group:nth-of-type(1) summary::before { --group-icon: var(--i-server); }
.kb-nav-group:nth-of-type(2) summary::before { --group-icon: var(--i-file); }
.kb-nav-group:nth-of-type(3) summary::before { --group-icon: var(--i-grid); }
.kb-nav-group:nth-of-type(4) summary::before { --group-icon: var(--i-briefcase); }
.kb-nav-group:nth-of-type(5) summary::before { --group-icon: var(--i-user); }
.kb-nav-group:nth-of-type(6) summary::before { --group-icon: var(--i-users); }
.kb-nav-group:nth-of-type(7) summary::before { --group-icon: var(--i-link); }
.kb-nav-group:nth-of-type(8) summary::before { --group-icon: var(--i-chart); }
.kb-nav-group:nth-of-type(9) summary::before { --group-icon: var(--i-bell); }

.kb-nav button {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.kb-nav button::before {
  --icon-url: var(--nav-icon, var(--i-file));
  width: 15.5px !important;
  height: 15.5px !important;
  min-width: 15.5px !important;
  color: #687482 !important;
}

.kb-nav button.is-active::before,
.kb-nav button:hover::before {
  color: #d99500 !important;
}

.kb-nav [data-article-target="docs-home"]::before { --nav-icon: var(--i-home); }
.kb-nav [data-article-target^="collection-"]::before { --nav-icon: var(--i-book); }
.kb-nav [data-article-target="quick-start"]::before { --nav-icon: var(--i-play); }
.kb-nav [data-article-target="launch-playbook"]::before,
.kb-nav [data-article-target*="workflow"]::before,
.kb-nav [data-article-target*="walkthrough"]::before,
.kb-nav [data-article-target*="playbook"]::before { --nav-icon: var(--i-route); }
.kb-nav [data-article-target*="deployment"]::before,
.kb-nav [data-article-target*="install"]::before { --nav-icon: var(--i-server); }
.kb-nav [data-article-target*="checklist"]::before,
.kb-nav [data-article-target*="acceptance"]::before { --nav-icon: var(--i-checklist); }
.kb-nav [data-article-target*="backup"]::before { --nav-icon: var(--i-database); }
.kb-nav [data-article-target*="action-center"]::before,
.kb-nav [data-article-target*="support"]::before,
.kb-nav [data-article-target*="faq"]::before,
.kb-nav [data-article-target*="troubleshooting"]::before { --nav-icon: var(--i-bell); }
.kb-nav [data-article-target*="connector"]::before { --nav-icon: var(--i-plug); }
.kb-nav [data-article-target*="risk"]::before,
.kb-nav [data-article-target*="security"]::before { --nav-icon: var(--i-shield); }
.kb-nav [data-article-target*="creative"]::before,
.kb-nav [data-article-target*="public-offer"]::before { --nav-icon: var(--i-image); }
.kb-nav [data-article-target*="flow"]::before { --nav-icon: var(--i-nodes); }
.kb-nav [data-article-target*="scenario"]::before,
.kb-nav [data-article-target*="offer"]::before { --nav-icon: var(--i-briefcase); }
.kb-nav [data-article-target*="admin"]::before,
.kb-nav [data-article-target*="affiliate"]::before,
.kb-nav [data-article-target*="advertiser"]::before { --nav-icon: var(--i-user); }
.kb-nav [data-article-target*="settings"]::before { --nav-icon: var(--i-gear); }
.kb-nav [data-article-target*="users"]::before,
.kb-nav [data-article-target*="account-team"]::before { --nav-icon: var(--i-users); }
.kb-nav [data-article-target*="tracking"]::before,
.kb-nav [data-article-target*="postback"]::before,
.kb-nav [data-article-target*="pixel"]::before,
.kb-nav [data-article-target*="api"]::before { --nav-icon: var(--i-link); }
.kb-nav [data-article-target*="report"]::before,
.kb-nav [data-article-target*="finance"]::before,
.kb-nav [data-article-target*="payment"]::before { --nav-icon: var(--i-chart); }

.kb-path::before {
  --icon-url: var(--i-home);
  width: 17px !important;
  height: 17px !important;
  margin-right: 9px !important;
  color: #4c5662 !important;
}

.kb-path {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.kb-path span {
  min-width: 0 !important;
}

.kb-path span:first-child {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.kb-path span:last-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.kb-copy::before {
  --icon-url: var(--i-copylink);
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  color: #0d1218 !important;
}

.kb-lang-toggle::before {
  --icon-url: var(--i-globe);
  width: 19px !important;
  height: 19px !important;
  margin-right: 8px !important;
  color: #0d1218 !important;
}

.kb-actions::after {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #0d1218 !important;
  content: "" !important;
  -webkit-mask: var(--i-gear) center / 18px 18px no-repeat !important;
  mask: var(--i-gear) center / 18px 18px no-repeat !important;
}

.article-tools span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.article-tools span::before {
  --icon-url: var(--i-tag);
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
}

.article-tools span:nth-child(2)::before { --icon-url: var(--i-file); }
.article-tools span:nth-child(3)::before { --icon-url: var(--i-calendar); }

.article-toc a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.article-toc a::before {
  --icon-url: var(--toc-icon, var(--i-file));
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  color: #7f8a95 !important;
}

.article-toc a.is-active::before {
  color: #efa60b !important;
}

.article-toc a:nth-child(1)::before { --toc-icon: var(--i-home); }
.article-toc a:nth-child(2)::before { --toc-icon: var(--i-book); }
.article-toc a:nth-child(3)::before { --toc-icon: var(--i-grid); }
.article-toc a:nth-child(4)::before { --toc-icon: var(--i-users); }
.article-toc a:nth-child(5)::before { --toc-icon: var(--i-calendar); }
.article-toc a:nth-child(6)::before { --toc-icon: var(--i-route); }
.article-toc a:nth-child(7)::before { --toc-icon: var(--i-file); }
.article-toc a:nth-child(8)::before { --toc-icon: var(--i-database); }
.article-toc a:nth-child(9)::before { --toc-icon: var(--i-chart); }

.portal-quick-grid button {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  grid-template-rows: auto auto auto !important;
  gap: 6px 16px !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 176px !important;
  padding: 22px 18px !important;
  text-align: left !important;
}

.portal-quick-grid button::before {
  --icon-url: var(--portal-icon, var(--i-book));
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  justify-self: center !important;
  width: 38px !important;
  height: 38px !important;
  background: #eca10b !important;
  content: "" !important;
  transform: none !important;
  -webkit-mask: var(--icon-url) center / contain no-repeat !important;
  mask: var(--icon-url) center / contain no-repeat !important;
}

.portal-quick-grid button::after {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 2 / 4 !important;
  justify-self: end !important;
  align-self: center !important;
  width: 16px !important;
  height: 16px !important;
  background: #7f8a95 !important;
  color: #7f8a95 !important;
  content: "" !important;
  -webkit-mask: var(--i-arrow-right) center / contain no-repeat !important;
  mask: var(--i-arrow-right) center / contain no-repeat !important;
}

.portal-quick-grid small {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: #ffe6b8 !important;
  color: #b87300 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.portal-quick-grid strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  color: #0b1117 !important;
  font-size: 18px !important;
  line-height: 1.24 !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.portal-quick-grid span {
  grid-column: 2 !important;
  grid-row: 3 !important;
  width: auto !important;
  min-width: 0 !important;
  color: #5d6875 !important;
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.portal-quick-grid [data-article-target="install-deployment"]::before { --portal-icon: var(--i-server); }
.portal-quick-grid [data-article-target="platform-settings"]::before { --portal-icon: var(--i-gear); }
.portal-quick-grid [data-article-target="offer-walkthrough"]::before { --portal-icon: var(--i-briefcase); }
.portal-quick-grid [data-article-target="tracking"]::before { --portal-icon: var(--i-link); }
.portal-quick-grid [data-article-target="action-center-operations"]::before { --portal-icon: var(--i-bell); }
.portal-quick-grid [data-article-target="connector"]::before { --portal-icon: var(--i-plug); }
.portal-quick-grid [data-article-target="troubleshooting-matrix"]::before { --portal-icon: var(--i-shield); }

.collection-card {
  position: relative !important;
  padding: 24px 58px 24px 92px !important;
}

.collection-card::before {
  --icon-url: var(--card-icon, var(--i-book));
  position: absolute !important;
  left: 26px !important;
  top: 50% !important;
  width: 38px !important;
  height: 38px !important;
  background: #eca10b !important;
  content: "" !important;
  transform: translateY(-50%) !important;
  -webkit-mask: var(--icon-url) center / contain no-repeat !important;
  mask: var(--icon-url) center / contain no-repeat !important;
}

.collection-card:nth-child(1)::before { --card-icon: var(--i-server); }
.collection-card:nth-child(2)::before { --card-icon: var(--i-gear); }
.collection-card:nth-child(3)::before { --card-icon: var(--i-briefcase); }
.collection-card:nth-child(4)::before { --card-icon: var(--i-link); }
.collection-card:nth-child(5)::before { --card-icon: var(--i-plug); }
.collection-card:nth-child(6)::before { --card-icon: var(--i-user); }
.collection-card:nth-child(7)::before { --card-icon: var(--i-chart); }
.collection-card:nth-child(8)::before { --card-icon: var(--i-shield); }

.article-template {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
}

.article-template div {
  min-width: 0 !important;
}

.article-template span,
.article-template strong {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.kb-article[data-article="docs-home"] .article-template {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.kb-article .article-section:not(.kb-doc-portal) > h2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.kb-article .article-section:not(.kb-doc-portal) > h2::before {
  --section-icon: var(--i-book);
  display: inline-block !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #f0a10a, #d58a00) !important;
  box-shadow: none !important;
  content: "" !important;
  opacity: 1 !important;
  -webkit-mask: var(--section-icon) center / contain no-repeat !important;
  mask: var(--section-icon) center / contain no-repeat !important;
}

.kb-article .article-section:nth-of-type(1) > h2::before { --section-icon: var(--i-book); }
.kb-article .article-section:nth-of-type(2) > h2::before { --section-icon: var(--i-grid); }
.kb-article .article-section:nth-of-type(3) > h2::before { --section-icon: var(--i-route); }
.kb-article .article-section:nth-of-type(4) > h2::before { --section-icon: var(--i-checklist); }
.kb-article .article-section:nth-of-type(5) > h2::before { --section-icon: var(--i-gear); }
.kb-article .article-section:nth-of-type(6) > h2::before { --section-icon: var(--i-link); }
.kb-article .article-section:nth-of-type(7) > h2::before { --section-icon: var(--i-database); }
.kb-article .article-section:nth-of-type(8) > h2::before { --section-icon: var(--i-chart); }
.kb-article .article-section:nth-of-type(9) > h2::before { --section-icon: var(--i-shield); }

.guide-grid > div,
.module-grid > div {
  position: relative !important;
}

.guide-grid > div::before,
.module-grid > div::before {
  --tile-icon: var(--i-book);
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  margin-bottom: 2px !important;
  background: linear-gradient(135deg, #f0a10a, #d58a00) !important;
  content: "" !important;
  -webkit-mask: var(--tile-icon) center / contain no-repeat !important;
  mask: var(--tile-icon) center / contain no-repeat !important;
}

.guide-grid > div:nth-child(1)::before { --tile-icon: var(--i-users); }
.guide-grid > div:nth-child(2)::before { --tile-icon: var(--i-route); }
.guide-grid > div:nth-child(3)::before { --tile-icon: var(--i-shield); }
.guide-grid > div:nth-child(4)::before { --tile-icon: var(--i-file); }

.module-grid > div:nth-child(1)::before { --tile-icon: var(--i-bell); }
.module-grid > div:nth-child(2)::before { --tile-icon: var(--i-plug); }
.module-grid > div:nth-child(3)::before { --tile-icon: var(--i-link); }
.module-grid > div:nth-child(4)::before { --tile-icon: var(--i-chart); }
.module-grid > div:nth-child(5)::before { --tile-icon: var(--i-briefcase); }
.module-grid > div:nth-child(6)::before { --tile-icon: var(--i-gear); }

.table-wrap button[data-article-target],
.article-section p > button[data-article-target],
.article-section li > button[data-article-target] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 29px !important;
  max-width: 100% !important;
  margin: 2px 4px !important;
  padding: 3px 9px 3px 10px !important;
  border: 1px solid rgba(218, 144, 0, 0.28) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(255, 255, 255, 0.96)) !important;
  color: #17202a !important;
  box-shadow: 0 5px 14px rgba(58, 42, 13, 0.055) !important;
  font: inherit !important;
  font-size: 0.94em !important;
  font-weight: 760 !important;
  line-height: 1.28 !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
}

.table-wrap button[data-article-target]::after,
.article-section p > button[data-article-target]::after,
.article-section li > button[data-article-target]::after {
  flex: 0 0 12px !important;
  width: 12px !important;
  height: 12px !important;
  background: #c78606 !important;
  content: "" !important;
  -webkit-mask: var(--i-arrow-right) center / contain no-repeat !important;
  mask: var(--i-arrow-right) center / contain no-repeat !important;
}

.table-wrap button[data-article-target] {
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.kb-article[data-article="role-reading-paths"] .table-wrap table {
  min-width: 980px !important;
}

.table-wrap button[data-article-target]:hover,
.article-section p > button[data-article-target]:hover,
.article-section li > button[data-article-target]:hover {
  border-color: rgba(222, 142, 0, 0.55) !important;
  background: linear-gradient(180deg, rgba(255, 240, 204, 0.98), rgba(255, 251, 243, 0.98)) !important;
  box-shadow: 0 10px 22px rgba(58, 42, 13, 0.095) !important;
  transform: translateY(-1px) !important;
}

.table-wrap button[data-article-target]:active,
.article-section p > button[data-article-target]:active,
.article-section li > button[data-article-target]:active {
  transform: translateY(0) !important;
}

.kb-search-results {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 80 !important;
  display: grid !important;
  gap: 6px !important;
  max-height: min(520px, calc(100vh - 132px)) !important;
  padding: 8px !important;
  overflow: auto !important;
  border: 1px solid rgba(217, 151, 0, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 22px 54px rgba(33, 26, 12, 0.16), 0 3px 12px rgba(33, 26, 12, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

.kb-search-results[hidden] {
  display: none !important;
}

.kb-search-result {
  display: grid !important;
  gap: 4px !important;
  width: 100% !important;
  min-height: 78px !important;
  padding: 12px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #101820 !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

.kb-search-result__meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.kb-search-category {
  flex: 0 0 auto !important;
  padding: 3px 7px !important;
  border-radius: 7px !important;
  background: #fff0c8 !important;
  color: #9b6400 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.kb-search-result:hover,
.kb-search-result.is-active {
  border-color: rgba(232, 160, 8, 0.26) !important;
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.96), rgba(255, 255, 255, 0.94)) !important;
}

.kb-search-result__path {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #9a6510 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.kb-search-result strong {
  color: #111820 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.kb-search-result__snippet {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #5e6976 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.kb-search-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 2px !important;
}

.kb-search-tags span {
  padding: 2px 6px !important;
  border: 1px solid #eadfcb !important;
  border-radius: 7px !important;
  background: #fffdf8 !important;
  color: #64707c !important;
  font-size: 10.5px !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
}

.issue-grid,
.capability-rail {
  display: grid !important;
  gap: 12px !important;
}

.issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.capability-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.capability-rail--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.issue-card,
.capability-card {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: 220px !important;
  padding: 18px !important;
  border: 1px solid #e6dfd2 !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 240, 0.88)) !important;
  box-shadow: 0 16px 36px rgba(74, 55, 24, 0.055) !important;
}

.issue-card::before,
.capability-card::before {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  border-radius: 8px !important;
  background: #f2a900 !important;
  content: "" !important;
  -webkit-mask: var(--card-icon, var(--i-bell)) center / 23px 23px no-repeat !important;
  mask: var(--card-icon, var(--i-bell)) center / 23px 23px no-repeat !important;
}

.issue-card:nth-child(1)::before { --card-icon: var(--i-link); }
.issue-card:nth-child(2)::before { --card-icon: var(--i-nodes); }
.issue-card:nth-child(3)::before { --card-icon: var(--i-search); }
.issue-card:nth-child(4)::before { --card-icon: var(--i-chart); }
.issue-card:nth-child(5)::before { --card-icon: var(--i-user); }
.issue-card:nth-child(6)::before { --card-icon: var(--i-gear); }

.capability-card--diagnostics::before { --card-icon: var(--i-search); }
.capability-card--scale::before { --card-icon: var(--i-grid); }
.capability-card--risk::before { --card-icon: var(--i-shield); }
.capability-card--growth::before { --card-icon: var(--i-chart); }

.issue-card > span,
.capability-card > span {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  color: #a36600 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.issue-card strong,
.capability-card strong {
  color: #111820 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.issue-card p,
.capability-card p {
  margin: 0 !important;
  color: #4f5d6b !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

.issue-card__actions,
.capability-card div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: auto !important;
}

.issue-card button,
.capability-card button {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 1px solid #e4dacb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111820 !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  text-align: left !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease !important;
}

.issue-card button:hover,
.capability-card button:hover {
  border-color: #eba40e !important;
  background: #fff6e3 !important;
  transform: translateY(-1px) !important;
}

.issue-card button:active,
.capability-card button:active {
  transform: translateY(0) !important;
}

.kb-search-empty {
  display: grid !important;
  gap: 10px !important;
  padding: 18px !important;
  color: #697483 !important;
  font-size: 13px !important;
  text-align: left !important;
}

.kb-search-empty strong {
  color: #111820 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.kb-search-empty p {
  margin: 0 !important;
  color: #5c6874 !important;
  line-height: 1.6 !important;
}

.kb-search-empty__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.kb-search-empty__actions button {
  min-height: 32px !important;
  padding: 6px 10px !important;
  border: 1px solid #e4dacb !important;
  border-radius: 8px !important;
  background: #fffaf1 !important;
  color: #121a22 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.kb-search-empty__actions button:hover {
  border-color: #eba40e !important;
  background: #fff0c8 !important;
}

.decision-tree {
  display: grid !important;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.decision-tree__options {
  display: grid !important;
  gap: 8px !important;
  align-content: start !important;
}

.decision-tree__options button {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5dccd !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #17202a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
}

.decision-tree__options button:hover,
.decision-tree__options button.is-active {
  border-color: rgba(231, 154, 0, 0.5) !important;
  background: linear-gradient(180deg, #fff4d9, #fffdf8) !important;
  box-shadow: 0 10px 24px rgba(65, 43, 12, 0.08) !important;
  transform: translateY(-1px) !important;
}

.decision-tree__options button.is-active {
  color: #0d1319 !important;
}

.decision-tree__result {
  min-width: 0 !important;
  padding: 18px !important;
  border: 1px solid #e4dccf !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 234, 0.86)) !important;
  box-shadow: 0 16px 36px rgba(74, 55, 24, 0.055) !important;
}

.decision-tree__result-head {
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
}

.decision-tree__result-head strong {
  color: #111820 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.decision-tree__result-head p,
.decision-tree__result > p {
  margin: 0 !important;
  color: #4f5d6b !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

.decision-tree__result-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) !important;
  gap: 12px !important;
}

.decision-tree__block {
  min-width: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(226, 217, 203, 0.9) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.decision-tree__block h3 {
  margin: 0 0 9px !important;
  color: #9b6400 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.decision-tree__block ol,
.decision-tree__block ul {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
  padding-left: 18px !important;
  color: #344454 !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

.decision-tree__links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.decision-tree__links button {
  min-height: 31px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(218, 144, 0, 0.32) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #17202a !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.decision-tree__links button:hover {
  border-color: #eba40e !important;
  background: #fff0c8 !important;
}

.search-hit-highlight {
  position: relative !important;
  border-radius: 12px !important;
  outline: 2px solid rgba(235, 164, 14, 0.52) !important;
  outline-offset: 4px !important;
  background: rgba(255, 247, 229, 0.82) !important;
  box-shadow: 0 10px 28px rgba(235, 164, 14, 0.16) !important;
  scroll-margin-top: 118px !important;
}

tr.search-hit-highlight {
  outline-offset: -2px !important;
}

tr.search-hit-highlight > * {
  background: rgba(255, 247, 229, 0.9) !important;
}

.search-term-highlight {
  padding: 0 0.12em !important;
  border-radius: 4px !important;
  background: #f6b817 !important;
  color: #111820 !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

@media (max-width: 1380px) {
  .kb-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 1060px !important;
    margin-inline: auto !important;
  }

  .article-toc {
    display: none !important;
  }

  .kb-article[data-article="docs-home"] .article-template {
    max-width: 690px !important;
  }

  .kb-article[data-article="docs-home"] .article-head {
    padding-right: 270px !important;
  }

  .kb-article[data-article="docs-home"] .article-head::before {
    right: 22px !important;
    top: 42px !important;
    width: 240px !important;
    height: 218px !important;
  }

  .kb-article[data-article="docs-home"] .article-head::after {
    right: 2px !important;
    top: 166px !important;
    width: 78px !important;
    height: 78px !important;
    border-width: 11px !important;
  }

  .portal-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
  }

  .issue-grid,
  .capability-rail,
  .capability-rail--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .decision-tree,
  .decision-tree__result-body {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .kb-article[data-article="docs-home"] .article-head {
    padding-right: 0 !important;
  }

  .kb-article[data-article="docs-home"] .article-head::before {
    display: none !important;
  }

  .kb-article[data-article="docs-home"] .article-template {
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .kb-copy {
    display: none !important;
  }

  .kb-article[data-article="docs-home"] .article-template {
    grid-template-columns: 1fr !important;
  }

  .kb-actions::after {
    display: grid !important;
  }

  .portal-quick-grid button {
    grid-template-columns: 36px minmax(0, 1fr) 16px !important;
    min-height: 132px !important;
    padding: 18px !important;
  }

  .portal-quick-grid button::before {
    width: 32px !important;
    height: 32px !important;
  }

  .portal-quick-grid strong {
    font-size: 16px !important;
  }

  .collection-card {
    padding: 20px 44px 20px 74px !important;
  }

  .collection-card::before {
    left: 20px !important;
    width: 30px !important;
    height: 30px !important;
  }

  .kb-search-results {
    max-height: min(420px, calc(100vh - 150px)) !important;
    border-radius: 14px !important;
  }

  .kb-search-result {
    min-height: 72px !important;
    padding: 11px 12px !important;
  }

  .kb-search-result__meta {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .kb-search-result__path {
    max-width: 100% !important;
  }

  .issue-grid,
  .capability-rail,
  .capability-rail--compact {
    grid-template-columns: 1fr !important;
  }

  .issue-card,
  .capability-card {
    min-height: 0 !important;
  }
}

/* Launch polish: keep the home hero evidence cards readable after all legacy layers. */
.kb-article[data-article="docs-home"] .article-head {
  padding-right: 300px !important;
}

.kb-article[data-article="docs-home"] .article-head::before {
  right: 18px !important;
  width: 280px !important;
}

.kb-article[data-article="docs-home"] .article-template {
  width: calc(100% + 300px) !important;
  max-width: 760px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.kb-article[data-article="docs-home"] .article-template div {
  min-height: 112px !important;
  padding: 17px 18px !important;
}

.kb-article[data-article="docs-home"] .article-template strong {
  font-size: 15px !important;
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 1380px) {
  .kb-article[data-article="docs-home"] .article-head {
    padding-right: 250px !important;
  }

  .kb-article[data-article="docs-home"] .article-head::before {
    right: 12px !important;
    width: 230px !important;
  }

  .kb-article[data-article="docs-home"] .article-template {
    width: calc(100% + 250px) !important;
    max-width: 720px !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .kb-article[data-article="docs-home"] .article-head {
    padding-right: 0 !important;
  }

  .kb-article[data-article="docs-home"] .article-template {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .kb-article[data-article="docs-home"] .article-template {
    grid-template-columns: 1fr !important;
  }
}

.entry-switchboard {
  margin-top: 4px !important;
}

.entry-switchboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.kb-doc-portal + .entry-switchboard {
  display: none !important;
}

.kb-portal-entry-grid {
  margin: 18px 0 34px !important;
}

.kb-doc-portal .portal-head {
  max-width: 860px !important;
}

.kb-doc-portal .portal-head:not(:first-child) {
  margin-top: 34px !important;
}

.kb-doc-portal .portal-head h2,
.kb-doc-portal .portal-head p {
  display: block !important;
}

.kb-doc-portal .portal-head h2 {
  margin: 4px 0 10px !important;
  color: #0b1117 !important;
  font-size: 28px !important;
  line-height: 1.18 !important;
}

.kb-doc-portal .portal-head p {
  max-width: 760px !important;
  margin: 0 !important;
  color: #4d5967 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.entry-switch-card {
  position: relative !important;
  display: grid !important;
  min-height: 218px !important;
  padding: 24px 24px 22px 82px !important;
  border: 1px solid rgba(18, 24, 31, 0.11) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(250, 247, 240, 0.96), rgba(255, 255, 255, 0.95) 58%),
    #fff !important;
  box-shadow: 0 18px 40px rgba(31, 28, 20, 0.06) !important;
}

.entry-switch-card::before {
  --entry-icon: var(--i-book);
  position: absolute !important;
  left: 26px !important;
  top: 28px !important;
  width: 34px !important;
  height: 34px !important;
  background: #eda70b !important;
  content: "" !important;
  -webkit-mask: var(--entry-icon) center / contain no-repeat !important;
  mask: var(--entry-icon) center / contain no-repeat !important;
}

.entry-switch-card--public::before { --entry-icon: var(--i-book); }
.entry-switch-card--admin::before { --entry-icon: var(--i-users); }
.entry-switch-card--delivery::before { --entry-icon: var(--i-checklist); }
.entry-switch-card--developer::before { --entry-icon: var(--i-link); }

.entry-switch-card > span,
.launch-brief-grid article > span {
  color: #a26600 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.entry-switch-card > strong,
.launch-brief-grid article > strong {
  margin-top: 6px !important;
  color: #111820 !important;
  font-size: 20px !important;
  line-height: 1.32 !important;
}

.entry-switch-card p,
.launch-brief-grid article p {
  margin: 10px 0 16px !important;
  color: #4d5967 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.entry-switch-card div,
.task-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  align-self: end !important;
}

.entry-switch-card button,
.task-links button {
  min-height: 34px !important;
  border: 1px solid rgba(18, 24, 31, 0.11) !important;
  border-radius: 8px !important;
  background: rgba(255, 250, 238, 0.82) !important;
  color: #1f2833 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: normal !important;
}

.entry-switch-card button:hover,
.task-links button:hover {
  border-color: rgba(231, 153, 5, 0.34) !important;
  background: #fff3d4 !important;
  color: #7d4d00 !important;
}

.launch-brief-grid,
.redline-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.launch-brief-grid article,
.redline-grid article {
  position: relative !important;
  min-height: 154px !important;
  padding: 22px !important;
  border: 1px solid rgba(18, 24, 31, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 16px 34px rgba(31, 28, 20, 0.05) !important;
}

.timeline-checklist {
  display: grid !important;
  gap: 10px !important;
  margin: 18px 0 !important;
}

.timeline-checklist label {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  min-height: 46px !important;
  padding: 13px 16px !important;
  border: 1px solid rgba(18, 24, 31, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #344150 !important;
  line-height: 1.65 !important;
}

.timeline-checklist input {
  accent-color: #e99b08 !important;
}

.launch-redline {
  border: 1px solid rgba(169, 50, 38, 0.16) !important;
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.86), rgba(255, 255, 255, 0.92)) !important;
}

.redline-grid article {
  min-height: 132px !important;
  padding-left: 50px !important;
}

.redline-grid article::before {
  position: absolute !important;
  left: 20px !important;
  top: 25px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #e79b06 !important;
  box-shadow: 0 0 0 6px rgba(231, 155, 6, 0.12) !important;
  content: "" !important;
}

.redline-grid strong {
  color: #121820 !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
}

.redline-grid p {
  margin: 8px 0 0 !important;
  color: #4d5967 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.article-completion {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  margin-top: 30px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(231, 155, 6, 0.24) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 246, 225, 0.78), rgba(255, 255, 255, 0.94)),
    #fff !important;
}

.article-completion span {
  color: #a26600 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.article-completion strong {
  display: block !important;
  margin-top: 6px !important;
  color: #111820 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.article-completion p {
  margin: 8px 0 0 !important;
  color: #5c6672 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.article-completion ul {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-completion li {
  position: relative !important;
  padding-left: 30px !important;
  color: #344150 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.article-completion li::before {
  --completion-icon: var(--i-checklist);
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  background: #e99b08 !important;
  content: "" !important;
  -webkit-mask: var(--completion-icon) center / contain no-repeat !important;
  mask: var(--completion-icon) center / contain no-repeat !important;
}

@media (max-width: 960px) {
  .entry-switchboard-grid,
  .launch-brief-grid,
  .redline-grid,
  .article-completion {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .entry-switch-card {
    min-height: auto !important;
    padding: 72px 18px 18px !important;
  }

  .entry-switch-card::before {
    left: 18px !important;
    top: 22px !important;
  }

  .launch-brief-grid article,
  .redline-grid article {
    min-height: auto !important;
  }

  .article-completion {
    padding: 20px !important;
  }
}

/* Afftrix website-aligned brand theme. Keeps docs readable while matching the blue-black product site. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #e5ebf5;
  --surface-raised: rgba(255, 255, 255, 0.94);
  --ink: #111827;
  --muted: #556173;
  --soft: #8793a5;
  --line: #dfe7f2;
  --accent: #2f6bff;
  --accent-ink: #1647d6;
  --brand-dark: #0b1018;
  --brand-panel: #121927;
  --brand-blue: #2f6bff;
  --brand-blue-2: #86a2ff;
  --brand-green: #22c987;
  --shadow-soft: 0 24px 68px rgba(13, 22, 38, 0.08);
}

body {
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 107, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 4%, rgba(47, 107, 255, 0.11), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(18, 25, 39, 0.08), transparent 24%),
    var(--bg) !important;
  background-size: 28px 28px, 28px 28px, auto, auto, auto !important;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17, 24, 39, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.18;
  content: "";
}

.kb-sidebar {
  border-right: 1px solid var(--line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 254, 0.94)) !important;
  color: var(--ink) !important;
  box-shadow: 18px 0 50px rgba(14, 24, 42, 0.055) !important;
  backdrop-filter: blur(18px);
}

.kb-brand {
  border-bottom-color: var(--line) !important;
}

.kb-brand::before {
  content: none !important;
}

.kb-brand__logo {
  display: block !important;
  width: min(220px, 100%) !important;
}

.kb-brand strong {
  color: var(--ink) !important;
}

.kb-brand small,
.kb-sidebar__footer,
.kb-nav-group summary small,
.kb-nav button {
  color: var(--muted) !important;
}

.kb-nav-group[open] {
  border-color: rgba(47, 107, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.kb-nav-group summary {
  color: var(--ink) !important;
}

.kb-nav-group summary::before {
  color: #64748b !important;
}

.kb-nav-group summary:hover,
.kb-nav button:hover {
  background: #eef4ff !important;
  color: var(--ink) !important;
}

.kb-nav-group summary em {
  border-color: var(--line) !important;
  background: #f6f8fc !important;
  color: #7b8798 !important;
}

.kb-nav-list {
  border-left-color: #e2e9f4 !important;
}

.kb-nav button {
  border-color: transparent !important;
}

.kb-nav button::before {
  color: #738095 !important;
}

.kb-nav button:hover::before,
.kb-nav button.is-active::before {
  color: var(--brand-blue) !important;
}

.kb-nav button.is-active {
  border-color: rgba(47, 107, 255, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(239, 245, 255, 0.98), rgba(218, 230, 255, 0.94)) !important;
  color: #0f2f87 !important;
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.12) !important;
}

.kb-topbar {
  min-height: 76px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, #151b26, var(--brand-dark)) !important;
  background-size: 52px 52px, auto !important;
  color: #f8fbff !important;
  box-shadow: 0 14px 42px rgba(7, 12, 21, 0.22) !important;
}

.kb-path {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: #d7dfed !important;
  box-shadow: none !important;
}

.kb-path::before,
.kb-copy::before,
.kb-lang-toggle::before,
.kb-actions::after {
  color: #f8fbff !important;
}

.kb-path span:last-child {
  color: #ffffff !important;
}

.kb-topbar .kb-search::before {
  background: #aeb9cc !important;
}

.kb-topbar .kb-search input {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.085) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.12) !important;
}

.kb-topbar .kb-search input::placeholder {
  color: #aab6c8 !important;
}

.kb-topbar .kb-search input:focus {
  border-color: rgba(134, 162, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 0 0 4px rgba(47, 107, 255, 0.24),
    0 16px 38px rgba(0, 0, 0, 0.16) !important;
}

.kb-copy,
.kb-lang-toggle {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.kb-copy {
  background: var(--brand-blue) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.kb-copy:hover,
.kb-lang-toggle:hover {
  border-color: rgba(134, 162, 255, 0.48) !important;
  background: #245cf0 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.kb-layout {
  background: transparent !important;
}

.kb-article,
.article-toc__inner {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--shadow-soft) !important;
}

.kb-article[data-article="docs-home"] {
  overflow: hidden !important;
}

.kb-article[data-article="docs-home"] .article-head {
  min-height: 350px !important;
  padding: 38px 270px 36px 38px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.16) 0%, transparent 35%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 84% 16%, rgba(47, 107, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #111823 0%, #07101d 100%) !important;
  background-size: auto, 56px 56px, auto, auto !important;
  color: #ffffff !important;
}

.kb-article[data-article="docs-home"] .article-head::before {
  right: 18px !important;
  top: 52px !important;
  width: 258px !important;
  height: 214px !important;
  background: url("brand/docs-hero-illustration.png") center / contain no-repeat !important;
  filter: hue-rotate(190deg) saturate(1.2) brightness(0.98) !important;
  opacity: 0.62 !important;
  z-index: 1 !important;
}

.kb-article[data-article="docs-home"] .article-head::after {
  display: block !important;
  right: 28px !important;
  top: 68px !important;
  width: 230px !important;
  height: 170px !important;
  border: 1px solid rgba(134, 162, 255, 0.18) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)) !important;
  box-shadow: 0 36px 90px rgba(47, 107, 255, 0.16) !important;
  content: "" !important;
  transform: rotate(0deg) !important;
  z-index: 0 !important;
}

.kb-article[data-article="docs-home"] .article-head > * {
  position: relative !important;
  z-index: 2 !important;
}

.kb-article[data-article="docs-home"] .article-head .kb-kicker {
  border-color: rgba(47, 107, 255, 0.44) !important;
  background: rgba(47, 107, 255, 0.12) !important;
  color: #dbe6ff !important;
}

.kb-article[data-article="docs-home"] .article-head .kb-kicker::before {
  background: var(--brand-green) !important;
  box-shadow: 0 0 0 5px rgba(34, 201, 135, 0.16) !important;
}

.kb-article[data-article="docs-home"] .article-head h1 {
  max-width: 460px !important;
  color: #ffffff !important;
  text-wrap: balance;
}

.kb-article:not([data-article="docs-home"]) .article-head h1 {
  max-width: 860px !important;
  font-size: clamp(34px, 3.4vw, 50px) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.kb-article[data-article="docs-home"] .article-head > p:not(.kb-kicker) {
  max-width: 560px !important;
  color: #c8d3e6 !important;
}

.article-tools span {
  border-color: var(--line) !important;
  background: #f4f7fc !important;
  color: #20304a !important;
}

.article-tools span:first-child {
  border-color: rgba(47, 107, 255, 0.35) !important;
  background: var(--brand-blue) !important;
  color: #ffffff !important;
}

.kb-article[data-article="docs-home"] .article-tools span {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eef4ff !important;
}

.kb-article[data-article="docs-home"] .article-tools span:first-child {
  background: #ffffff !important;
  color: #0f172a !important;
}

.kb-kicker,
.portal-head span,
.entry-switch-card > span,
.launch-brief-grid article > span,
.article-completion span {
  color: var(--accent-ink) !important;
}

.article-section h2::before,
.kb-article .article-section:not(.kb-doc-portal) > h2::before,
.portal-quick-grid button::before,
.collection-card::before,
.issue-card::before,
.capability-card::before,
.redline-grid article::before,
.article-completion li::before {
  background: var(--brand-blue) !important;
}

.portal-quick-grid small,
.collection-card header span,
.article-template span,
.table-wrap th,
.entry-switch-card > span {
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.kb-article[data-article="docs-home"] .article-template span {
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.kb-article[data-article="docs-home"] .article-head .article-template {
  width: min(620px, calc(100% + 230px)) !important;
  max-width: 620px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.kb-article[data-article="docs-home"] .article-head .article-template div {
  min-height: 112px !important;
  padding: 18px !important;
}

.portal-quick-grid button,
.collection-card,
.entry-switch-card,
.issue-card,
.capability-card,
.launch-brief-grid article,
.redline-grid article,
.article-completion,
.article-template div,
.hub-panel,
.hub-article-list button,
.hub-sequence button,
.article-footer,
.article-relations,
.table-wrap,
.doc-image {
  border-color: var(--line) !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94)) !important;
  box-shadow: 0 16px 46px rgba(13, 22, 38, 0.055) !important;
}

.portal-quick-grid button:hover,
.portal-screenshot-grid button:hover,
.collection-card:hover,
.entry-switch-card:hover,
.issue-card button:hover,
.capability-card button:hover,
.collection-links button:hover,
.task-links button:hover,
.hub-actions button:hover,
.hub-article-list button:hover,
.hub-sequence button:hover,
.article-relations button:hover,
.table-wrap button[data-article-target]:hover,
.article-section p > button[data-article-target]:hover,
.article-section li > button[data-article-target]:hover {
  border-color: rgba(47, 107, 255, 0.42) !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f1f6ff) !important;
  color: #102b7a !important;
  box-shadow: 0 18px 54px rgba(47, 107, 255, 0.12) !important;
}

.entry-switch-card button,
.task-links button,
.issue-card button,
.capability-card button,
.collection-links button,
.hub-actions button,
.hub-article-list button,
.hub-sequence button,
.article-relations button,
.table-wrap button[data-article-target],
.article-section p > button[data-article-target],
.article-section li > button[data-article-target] {
  border-color: #dbe5f4 !important;
  background: #ffffff !important;
  color: #17233a !important;
}

.table-wrap button[data-article-target]::after,
.article-section p > button[data-article-target]::after,
.article-section li > button[data-article-target]::after {
  background: var(--brand-blue) !important;
}

.table-wrap th {
  border-bottom-color: var(--line) !important;
}

.table-wrap td {
  border-bottom-color: #e7edf6 !important;
}

.search-result-highlight,
.search-term-highlight {
  background: #dbe8ff !important;
  color: #102b7a !important;
}

.search-hit-highlight {
  background: rgba(47, 107, 255, 0.11) !important;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.11) !important;
}

.kb-search-results {
  border-color: rgba(47, 107, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 58px rgba(13, 22, 38, 0.18), 0 3px 12px rgba(13, 22, 38, 0.08) !important;
}

.kb-search-result {
  color: var(--ink) !important;
}

.kb-search-category {
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.kb-search-result:hover,
.kb-search-result.is-active {
  border-color: rgba(47, 107, 255, 0.28) !important;
  background: linear-gradient(135deg, rgba(239, 245, 255, 0.98), rgba(255, 255, 255, 0.96)) !important;
}

.kb-search-empty__actions button {
  border-color: #dbe5f4 !important;
  background: #ffffff !important;
  color: #17233a !important;
}

.kb-search-empty__actions button:hover {
  border-color: rgba(47, 107, 255, 0.42) !important;
  background: #edf4ff !important;
  color: #102b7a !important;
}

pre {
  border-color: #1f2a3d !important;
  background:
    linear-gradient(180deg, #121927, #0b1018) !important;
  color: #e7eefc !important;
  box-shadow: 0 18px 48px rgba(7, 12, 21, 0.18) !important;
}

.article-toc a:hover,
.article-toc a.is-active,
#article-toc a:hover,
#article-toc a.is-active {
  background: #edf4ff !important;
  color: #123aaf !important;
}

.article-toc a.is-active {
  box-shadow: inset 3px 0 0 var(--brand-blue) !important;
}

.article-toc a.is-active::before {
  color: var(--brand-blue) !important;
}

.article-toc__inner::after {
  border-color: rgba(47, 107, 255, 0.18) !important;
  background: #f4f7ff !important;
  color: #355079 !important;
}

.doc-image::before {
  background:
    radial-gradient(circle at 16px 15px, #ff6b6b 0 4px, transparent 4.5px),
    radial-gradient(circle at 32px 15px, #f7c948 0 4px, transparent 4.5px),
    radial-gradient(circle at 48px 15px, #22c987 0 4px, transparent 4.5px),
    linear-gradient(180deg, #f8fbff, #edf2fa) !important;
}

@media (max-width: 1180px) {
  .kb-topbar {
    background:
      linear-gradient(90deg, rgba(47, 107, 255, 0.1) 1px, transparent 1px),
      linear-gradient(180deg, #151b26, var(--brand-dark)) !important;
  }
}

@media (max-width: 760px) {
  .kb-article[data-article="docs-home"] .article-head {
    padding: 30px 18px 26px !important;
  }

  .kb-article[data-article="docs-home"] .article-head::before,
  .kb-article[data-article="docs-home"] .article-head::after {
    display: none !important;
  }

  .kb-copy {
    background: rgba(255, 255, 255, 0.09) !important;
  }

  .kb-article[data-article="docs-home"] .article-head .article-template {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .kb-article[data-article="docs-home"] .article-head .article-template div {
    min-height: auto !important;
  }

  .kb-article:not([data-article="docs-home"]) .article-head h1 {
    font-size: clamp(32px, 10vw, 42px) !important;
  }
}

/* Lighter Afftrix docs correction: reduce dark surfaces and remove remaining warm tutorial accents. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e7edf7;
  --surface-raised: rgba(255, 255, 255, 0.96);
  --ink: #111827;
  --muted: #596579;
  --soft: #8b97aa;
  --line: #dfe7f2;
  --accent: #2f6bff;
  --accent-ink: #1647d6;
  --brand-dark: #111827;
  --brand-blue: #2f6bff;
  --brand-blue-2: #dce8ff;
  --shadow-soft: 0 22px 58px rgba(15, 23, 42, 0.07);
}

body {
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 107, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 18% 5%, rgba(47, 107, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.055), transparent 26%),
    var(--bg) !important;
  background-size: 28px 28px, 28px 28px, auto, auto, auto !important;
}

.kb-topbar {
  border-bottom: 1px solid rgba(211, 221, 236, 0.9) !important;
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.94)) !important;
  background-size: 42px 42px, auto !important;
  color: var(--ink) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(18px);
}

.kb-path,
.kb-topbar .kb-search input,
.kb-lang-toggle {
  border-color: #dbe5f4 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.kb-path::before,
.kb-lang-toggle::before,
.kb-actions::after,
.kb-topbar .kb-search::before {
  color: #64748b !important;
  background-color: #64748b !important;
}

.kb-path span:last-child {
  color: var(--ink) !important;
}

.kb-topbar .kb-search input::placeholder {
  color: #7a8799 !important;
}

.kb-topbar .kb-search input:focus {
  border-color: rgba(47, 107, 255, 0.56) !important;
  background: #ffffff !important;
  color: var(--ink) !important;
  box-shadow:
    0 0 0 4px rgba(47, 107, 255, 0.14),
    0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

.kb-copy {
  border-color: rgba(47, 107, 255, 0.12) !important;
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.18) !important;
}

.kb-copy::before {
  color: #ffffff !important;
  background-color: #ffffff !important;
}

.kb-copy:hover {
  background: #245cf0 !important;
}

.kb-lang-toggle:hover {
  border-color: rgba(47, 107, 255, 0.32) !important;
  background: #eef4ff !important;
  color: #123aaf !important;
}

.kb-lang-toggle:hover::before {
  color: #123aaf !important;
  background-color: #123aaf !important;
}

.kb-article[data-article="docs-home"] .article-head {
  border-bottom: 1px solid #dfe7f2 !important;
  background:
    linear-gradient(90deg, rgba(47, 107, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.96)) !important;
  background-size: 34px 34px, auto !important;
  color: var(--ink) !important;
}

.kb-article[data-article="docs-home"] .article-head::before {
  filter: hue-rotate(190deg) saturate(1.15) brightness(1.02) !important;
  opacity: 0.72 !important;
}

.kb-article[data-article="docs-home"] .article-head::after {
  border-color: rgba(47, 107, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 28px 70px rgba(47, 107, 255, 0.12) !important;
}

.kb-article[data-article="docs-home"] .article-head .kb-kicker {
  border-color: rgba(47, 107, 255, 0.34) !important;
  background: #edf4ff !important;
  color: #123aaf !important;
}

.kb-article[data-article="docs-home"] .article-head h1 {
  color: #0f172a !important;
}

.kb-article[data-article="docs-home"] .article-head > p:not(.kb-kicker) {
  color: #475569 !important;
}

.kb-article[data-article="docs-home"] .article-tools span {
  border-color: #dbe5f4 !important;
  background: #ffffff !important;
  color: #243148 !important;
}

.kb-article[data-article="docs-home"] .article-tools span:first-child,
.article-tools span:first-child {
  border-color: rgba(47, 107, 255, 0.22) !important;
  background: var(--brand-blue) !important;
  color: #ffffff !important;
}

.kb-nav button.is-active,
.article-toc a.is-active,
#article-toc a.is-active {
  background: #eaf2ff !important;
  color: #123aaf !important;
}

.article-tools span::before,
.article-section h2::before,
.kb-article .article-section:not(.kb-doc-portal) > h2::before,
.portal-quick-grid button::before,
.collection-card::before,
.issue-card::before,
.capability-card::before,
.redline-grid article::before,
.article-completion li::before,
.feature-showcase-card > span,
.decision-tree__options button::before,
.timeline-checklist input,
.portal-quick-grid button:hover::before,
.collection-card:hover::before {
  background: var(--brand-blue) !important;
  color: var(--brand-blue) !important;
  accent-color: var(--brand-blue) !important;
}

.portal-quick-grid small,
.collection-card header span,
.article-template span,
.table-wrap th,
.entry-switch-card > span,
.launch-brief-grid article > span,
.article-completion span,
.kb-search-category {
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.entry-switch-card button:hover,
.task-links button:hover,
.issue-card button:hover,
.capability-card button:hover,
.kb-search-empty__actions button:hover,
.decision-tree__options button:hover,
.decision-tree__options button.is-active {
  border-color: rgba(47, 107, 255, 0.36) !important;
  background: #edf4ff !important;
  color: #102b7a !important;
}

.launch-redline,
.article-completion {
  border-color: rgba(47, 107, 255, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(239, 245, 255, 0.86), rgba(255, 255, 255, 0.94)) !important;
}

.article-template div,
.kb-article[data-article="docs-home"] .article-head .article-template div {
  border-color: #dbe5f4 !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #f6f9ff) !important;
}

.article-template span,
.kb-article[data-article="docs-home"] .article-template span {
  border: 0 !important;
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.article-scope {
  border-color: #dbe5f4 !important;
  background: #ffffff !important;
}

.article-scope span,
.article-scope--internal span,
.article-scope--admin span,
.article-scope--developer span {
  background: #e8f0ff !important;
  color: #1647d6 !important;
}

.kb-article[data-article="docs-home"] > .article-section:not(.kb-doc-portal) {
  padding-left: clamp(28px, 4vw, 54px) !important;
  padding-right: clamp(28px, 4vw, 54px) !important;
}

.issue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 22px !important;
}

.issue-card,
.capability-card {
  min-width: 0 !important;
  padding: 24px !important;
  border-color: #dbe5f4 !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7faff) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.055) !important;
}

.issue-card::before,
.capability-card::before {
  background: var(--brand-blue) !important;
}

.issue-card > span,
.capability-card > span {
  top: 22px !important;
  right: 22px !important;
  color: #1647d6 !important;
}

.issue-card p,
.capability-card p {
  color: #526176 !important;
}

.issue-card__actions,
.capability-card div {
  gap: 9px !important;
}

@media (min-width: 1680px) {
  .issue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .kb-article[data-article="docs-home"] > .article-section:not(.kb-doc-portal) {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .issue-grid {
    grid-template-columns: 1fr !important;
  }
}

.guide-grid {
  gap: 18px !important;
}

.guide-grid > div {
  border-color: #dbe5f4 !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 107, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7faff) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.055) !important;
}

.guide-grid > div::before {
  background: var(--brand-blue) !important;
}

.decision-tree__options button:hover,
.decision-tree__options button.is-active,
.decision-tree__links button:hover {
  border-color: rgba(47, 107, 255, 0.36) !important;
  background: #edf4ff !important;
  color: #102b7a !important;
}

.decision-tree__result {
  border-color: rgba(47, 107, 255, 0.16) !important;
  background: linear-gradient(135deg, rgba(239, 245, 255, 0.86), rgba(255, 255, 255, 0.94)) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055) !important;
}

.decision-tree__block {
  border-color: #dbe5f4 !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

.decision-tree__block h3 {
  color: #1647d6 !important;
}

.decision-tree__links button {
  border-color: #dbe5f4 !important;
  background: #ffffff !important;
  color: #17233a !important;
}

.search-hit-highlight {
  outline-color: rgba(47, 107, 255, 0.46) !important;
  background: rgba(47, 107, 255, 0.1) !important;
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.13) !important;
}

tr.search-hit-highlight > * {
  background: rgba(47, 107, 255, 0.1) !important;
}

.search-term-highlight {
  background: #dbe8ff !important;
  color: #102b7a !important;
}

@media (max-width: 1180px) {
  .kb-topbar {
    background:
      linear-gradient(90deg, rgba(47, 107, 255, 0.045) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.94)) !important;
  }
}

@media (max-width: 760px) {
  .kb-topbar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.96)) !important;
  }

  .kb-copy {
    background: #ffffff !important;
    color: var(--ink) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  }

  .kb-copy::before {
    color: #64748b !important;
    background-color: #64748b !important;
  }
}

.entry-switchboard {
  margin-top: 22px !important;
}

.entry-switchboard-grid {
  gap: 20px !important;
}

.entry-switch-card {
  min-height: 206px !important;
  padding: 26px 28px 24px 76px !important;
  border-color: #d7e3f5 !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 107, 255, 0.065), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06) !important;
}

.entry-switch-card::before {
  left: 28px !important;
  top: 32px !important;
  width: 28px !important;
  height: 28px !important;
  background: var(--brand-blue) !important;
}

.entry-switch-card > span {
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 24px !important;
  margin: 0 0 4px !important;
  padding: 3px 9px !important;
  border: 1px solid rgba(47, 107, 255, 0.14) !important;
  border-radius: 7px !important;
  background: #edf4ff !important;
  color: #1647d6 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.entry-switch-card > strong {
  margin-top: 0 !important;
  color: #101827 !important;
  font-size: 20px !important;
}

.entry-switch-card p {
  margin-top: 8px !important;
  color: #526176 !important;
}

.entry-switch-card button,
.role-entry-card button {
  border-color: #d7e3f5 !important;
  background: #ffffff !important;
  color: #13213a !important;
}

.entry-switch-card button:hover,
.role-entry-card button:hover {
  border-color: rgba(47, 107, 255, 0.42) !important;
  background: #edf4ff !important;
  color: #123aaf !important;
}

.role-entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  gap: 20px !important;
}

.role-entry-card {
  min-height: 226px !important;
  padding: 24px !important;
  border-color: #d7e3f5 !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 107, 255, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055) !important;
}

.role-entry-card--external {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 107, 255, 0.07), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

.role-entry-card > span {
  padding: 4px 9px !important;
  border: 1px solid rgba(47, 107, 255, 0.14) !important;
  border-radius: 7px !important;
  background: #edf4ff !important;
  color: #1647d6 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.role-entry-card strong {
  color: #101827 !important;
}

.role-entry-card p {
  color: #526176 !important;
}

.role-entry-card button {
  border-radius: 8px !important;
}

.portal-quick-grid small,
.collection-card header span,
.article-template span,
.launch-brief-grid article > span,
.article-completion span,
.kb-search-category,
.feature-showcase-card > span,
.coverage-metric > span,
.api-endpoint-card > span,
.wizard-flow span,
.resource-card-grid article > span,
.publish-mode-card span,
.article-next-steps span {
  border-color: rgba(47, 107, 255, 0.14) !important;
  background: #edf4ff !important;
  color: #1647d6 !important;
}

.role-entry-card *,
.entry-switch-card * {
  text-shadow: none !important;
}

.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.screenshot-grid .doc-image {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.screenshot-grid .doc-image img {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top left !important;
}

.code-block-frame {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 !important;
}

.code-block-frame pre {
  margin: 0 !important;
  max-width: 100% !important;
  padding: 22px 64px 22px 20px !important;
  overflow-x: auto !important;
}

.code-copy {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3 !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #e7eefc !important;
  box-shadow: 0 10px 24px rgba(7, 12, 21, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease !important;
}

.code-copy::before {
  width: 16px !important;
  height: 16px !important;
  background: currentColor !important;
  content: "" !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8h10v12H8zM6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8h10v12H8zM6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.code-copy:hover {
  border-color: rgba(134, 162, 255, 0.52) !important;
  background: rgba(47, 107, 255, 0.22) !important;
  transform: translateY(-1px) !important;
}

.code-copy:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.42) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .screenshot-grid {
    grid-template-columns: 1fr !important;
  }

  .code-block-frame pre {
    padding-right: 56px !important;
  }
}

.kb-actions::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
}

.kb-article .article-section:not(.kb-doc-portal) > h2::before {
  --section-icon: var(--i-file) !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  aspect-ratio: 1 / 1 !important;
  background: var(--brand-blue) !important;
  -webkit-mask: var(--i-file) center / 24px 24px no-repeat !important;
  mask: var(--i-file) center / 24px 24px no-repeat !important;
}

/* Final commercial polish: remove home stats, compact strip labels, and stabilize portal card icons. */
.kb-article[data-article="docs-home"] .article-head .article-tools {
  display: none !important;
}

.article-template div {
  overflow: hidden !important;
  padding: 20px 22px !important;
}

.article-template span,
.kb-article[data-article="docs-home"] .article-template span,
.collection-card header span,
.entry-switch-card > span,
.launch-brief-grid article > span,
.feature-showcase-card > span,
.coverage-metric > span,
.api-endpoint-card > span,
.wizard-flow span,
.resource-card-grid article > span,
.publish-mode-card span,
.article-next-steps span,
.article-scope span,
.article-completion span,
.kb-search-category {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 24px !important;
  margin: 0 0 10px !important;
  padding: 3px 9px !important;
  border: 1px solid rgba(47, 107, 255, 0.18) !important;
  border-radius: 7px !important;
  background: #f3f7ff !important;
  color: #1647d6 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

.portal-quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
  gap: 16px !important;
}

.portal-quick-grid button {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) 18px !important;
  grid-template-rows: auto auto 1fr !important;
  gap: 10px 18px !important;
  align-items: start !important;
  align-content: start !important;
  min-height: 188px !important;
  padding: 28px 26px 24px !important;
  overflow: hidden !important;
  text-align: left !important;
}

.portal-quick-grid button::before {
  --icon-url: var(--portal-icon, var(--i-file));
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  background: var(--brand-blue) !important;
  content: "" !important;
  transform: none !important;
  -webkit-mask: var(--icon-url) center / 32px 32px no-repeat !important;
  mask: var(--icon-url) center / 32px 32px no-repeat !important;
}

.portal-quick-grid button::after {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 2 / 4 !important;
  justify-self: end !important;
  align-self: center !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  background: #7c8796 !important;
  color: #7c8796 !important;
  content: "" !important;
  transform: none !important;
  -webkit-mask: var(--i-arrow-right) center / contain no-repeat !important;
  mask: var(--i-arrow-right) center / contain no-repeat !important;
}

.portal-quick-grid small {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 32px !important;
  min-width: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(47, 107, 255, 0.12) !important;
  border-radius: 9px !important;
  background: #edf4ff !important;
  color: #1647d6 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.portal-quick-grid strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  color: #101827 !important;
  font-size: 20px !important;
  line-height: 1.24 !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.portal-quick-grid span {
  grid-column: 2 !important;
  grid-row: 3 !important;
  min-width: 0 !important;
  width: auto !important;
  color: #5b687b !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.portal-quick-grid [data-article-target="platform-settings"]::before {
  --portal-icon: var(--i-grid) !important;
}

.collection-card:nth-child(2)::before {
  --card-icon: var(--i-grid) !important;
}

.module-grid > div:nth-child(6)::before,
.issue-card:nth-child(6)::before {
  --tile-icon: var(--i-file) !important;
  --card-icon: var(--i-file) !important;
}

.kb-nav [data-article-target*="settings"]::before,
.kb-nav [data-article-target="platform-settings"]::before {
  --nav-icon: var(--i-grid) !important;
}

.kb-search input[type="search"]::-webkit-search-cancel-button,
.kb-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

.kb-topbar .kb-search input {
  padding: 0 58px 0 46px !important;
}

.kb-search-clear {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  z-index: 82 !important;
  inline-size: 34px !important;
  block-size: 34px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--accent) !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
}

.kb-search-clear[hidden] {
  display: none !important;
}

.kb-search-clear::before,
.kb-search-clear::after {
  position: absolute !important;
  inline-size: 15px !important;
  block-size: 2.5px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  content: "" !important;
}

.kb-search-clear::before {
  transform: rotate(45deg) !important;
}

.kb-search-clear::after {
  transform: rotate(-45deg) !important;
}

.kb-search-clear:hover,
.kb-search-clear:focus-visible {
  background: oklch(0.94 0.044 258) !important;
  color: var(--accent-ink) !important;
}

.kb-search-clear:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

.kb-back-to-top {
  position: fixed !important;
  right: clamp(16px, 2.4vw, 32px) !important;
  bottom: clamp(18px, 2.6vw, 34px) !important;
  z-index: 90 !important;
  inline-size: 48px !important;
  block-size: 48px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(47, 107, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--accent) !important;
  box-shadow: 0 18px 42px rgba(13, 22, 38, 0.16), 0 4px 12px rgba(13, 22, 38, 0.08) !important;
  cursor: pointer !important;
  backdrop-filter: blur(16px) !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
}

.kb-back-to-top[hidden] {
  display: none !important;
}

.kb-back-to-top::before {
  inline-size: 21px !important;
  block-size: 21px !important;
  background: currentColor !important;
  content: "" !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.kb-back-to-top:hover,
.kb-back-to-top:focus-visible {
  border-color: rgba(47, 107, 255, 0.32) !important;
  background: #ffffff !important;
  color: var(--accent-ink) !important;
  box-shadow: 0 22px 52px rgba(13, 22, 38, 0.2), 0 5px 14px rgba(13, 22, 38, 0.1) !important;
  transform: translateY(-2px) !important;
}

.kb-back-to-top:active {
  transform: translateY(0) !important;
}

.kb-back-to-top:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

.kb-brand {
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

.kb-brand:hover .kb-brand__logo,
.kb-brand:focus-visible .kb-brand__logo {
  filter: drop-shadow(0 8px 18px rgba(47, 107, 255, 0.12)) !important;
}

.kb-brand:focus {
  outline: none !important;
}

.kb-brand:focus-visible {
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 2px rgba(47, 107, 255, 0.22) !important;
}

.kb-path::before {
  display: none !important;
  content: none !important;
}

.kb-path-home {
  inline-size: 30px !important;
  block-size: 30px !important;
  flex: 0 0 30px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 -1px 0 -6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
}

.kb-path-home::before {
  inline-size: 18px !important;
  block-size: 18px !important;
  background: currentColor !important;
  content: "" !important;
  -webkit-mask: var(--i-home) center / contain no-repeat !important;
  mask: var(--i-home) center / contain no-repeat !important;
}

.kb-path-home:hover,
.kb-path-home:focus-visible {
  background: rgba(47, 107, 255, 0.1) !important;
  color: var(--accent) !important;
}

.kb-path-home:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .kb-back-to-top {
    right: 16px !important;
    bottom: 18px !important;
    inline-size: 44px !important;
    block-size: 44px !important;
  }
}

.kb-website-home {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(47, 107, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #162033 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055) !important;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.kb-website-home::before {
  inline-size: 18px !important;
  block-size: 18px !important;
  flex: 0 0 18px !important;
  background: currentColor !important;
  content: "" !important;
  -webkit-mask: var(--i-home) center / contain no-repeat !important;
  mask: var(--i-home) center / contain no-repeat !important;
}

.kb-website-home:hover,
.kb-website-home:focus-visible {
  border-color: rgba(47, 107, 255, 0.34) !important;
  background: #eef4ff !important;
  color: var(--brand-blue) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

.kb-website-home:focus-visible {
  outline: 2px solid var(--brand-blue) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  .kb-website-home {
    inline-size: 42px !important;
    min-inline-size: 42px !important;
    padding: 0 !important;
  }

  .kb-website-home span {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}
