/* Animated banner art for the docs pages (js/banner-anim.js). Stage is 340 x 210, scaled to fit.
   Not part of the generated dark theme: dark values are set on .bx below. */

@property --bx-acc {
  syntax: '<color>';
  inherits: true;
  initial-value: #2563eb;
}
@property --bx-r {
  syntax: '<length>';
  inherits: true;
  initial-value: 8px;
}
@property --bx-gap {
  syntax: '<length>';
  inherits: true;
  initial-value: 8px;
}

.bx {
  --bx-card: #ffffff;
  --bx-line: #e4e9f4;
  --bx-soft: #f2f5fb;
  --bx-ink: #101828;
  --bx-mut: #667085;
  --bx-brand: #2563eb;
  --bx-sh: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 30px -16px rgba(60, 60, 160, 0.35);
  position: absolute;
  right: 32px;
  top: 50%;
  z-index: 1;
  width: min(320px, 38%);
  aspect-ratio: 340 / 210;
  transform: translateY(-50%);
  pointer-events: none;
}
html[data-px-theme='dark'] .bx {
  --bx-card: #161d2c;
  --bx-line: #263049;
  --bx-soft: #1c2436;
  --bx-ink: #e9eef8;
  --bx-mut: #8c98ae;
  --bx-brand: #60a5fa;
  --bx-sh: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
}
.bx__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  height: 210px;
  transform: scale(var(--bx-s, 1));
  transform-origin: 0 0;
  font-family: var(--font-family);
  color: var(--bx-ink);
  -webkit-font-smoothing: antialiased;
}
.bx .bx-card {
  position: absolute;
  background: var(--bx-card);
  border: 1px solid var(--bx-line);
  border-radius: 12px;
  box-shadow: var(--bx-sh);
}
.bx svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bx p {
  margin: 0;
}
.bx code,
.bx .bx-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}
.bx * {
  box-sizing: border-box;
}

/* ================= hub (Overview) ================= */
.bx-hub__svg {
  position: absolute;
  inset: 0;
}
.bx-hub__ln {
  fill: none;
  stroke: var(--bx-line);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}
.bx--hub[data-step='0'] .bx-hub__ln[data-k='0'],
.bx--hub[data-step='1'] .bx-hub__ln[data-k='1'],
.bx--hub[data-step='2'] .bx-hub__ln[data-k='2'],
.bx--hub[data-step='3'] .bx-hub__ln[data-k='3'],
.bx--hub[data-step='4'] .bx-hub__ln[data-k='4'] {
  stroke: var(--bx-brand);
  stroke-dasharray: 1 0;
  animation: bx-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes bx-draw {
  from {
    stroke-dasharray: 0 1;
  }
  to {
    stroke-dasharray: 1 0;
  }
}
.bx-hub__tile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 10px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--bx-mut);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.4s,
    color 0.4s;
}
.bx-hub__tile i {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 6px;
  background: var(--bx-soft);
  transition:
    background-color 0.4s,
    color 0.4s;
}
.bx--hub[data-step='0'] .bx-hub__tile[data-k='0'],
.bx--hub[data-step='1'] .bx-hub__tile[data-k='1'],
.bx--hub[data-step='2'] .bx-hub__tile[data-k='2'],
.bx--hub[data-step='3'] .bx-hub__tile[data-k='3'],
.bx--hub[data-step='4'] .bx-hub__tile[data-k='4'] {
  transform: translateY(-3px) scale(1.06);
  border-color: color-mix(in oklab, var(--bx-brand) 45%, var(--bx-line));
  color: var(--bx-ink);
}
.bx--hub[data-step='0'] .bx-hub__tile[data-k='0'] i,
.bx--hub[data-step='1'] .bx-hub__tile[data-k='1'] i,
.bx--hub[data-step='2'] .bx-hub__tile[data-k='2'] i,
.bx--hub[data-step='3'] .bx-hub__tile[data-k='3'] i,
.bx--hub[data-step='4'] .bx-hub__tile[data-k='4'] i {
  background: var(--bx-brand);
  color: #fff;
}
.bx-hub__core {
  position: absolute;
  left: 140px;
  top: 62px;
  width: 60px;
  height: 60px;
}
.bx-hub__core b {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.6);
}
.bx-hub__core span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  animation: bx-ring 3s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}
.bx-hub__core span + span {
  animation-delay: 1.5s;
}
@keyframes bx-ring {
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ================= tokens ================= */
.bx--tokens {
  --bx-acc: #2563eb;
  --bx-r: 6px;
  --bx-gap: 8px;
  transition:
    --bx-acc 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    --bx-r 0.8s cubic-bezier(0.34, 1.4, 0.64, 1),
    --bx-gap 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.bx--tokens.ge1 {
  --bx-acc: #1e40af;
}
.bx--tokens.ge2 {
  --bx-r: 14px;
}
.bx--tokens.ge3 {
  --bx-gap: 13px;
}
.bx-tk__list {
  left: 0;
  top: 34px;
  width: 164px;
  padding: 8px;
}
.bx-tk__h {
  padding: 2px 6px 6px;
  font:
    500 9.5px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--bx-mut);
}
.bx-tk__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  transition:
    background-color 0.4s,
    box-shadow 0.4s;
}
.bx-tk__row code {
  font-size: 9px;
  color: var(--bx-mut);
}
.bx-tk__row span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bx-tk__sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--bx-acc);
}
.bx-v {
  font-size: 9.5px;
  font-weight: 600;
}
.bx-v1::after {
  content: '#2563EB';
}
.bx--tokens.ge1 .bx-v1::after {
  content: '#1E40AF';
}
.bx-v2::after {
  content: '6px';
}
.bx--tokens.ge2 .bx-v2::after {
  content: '14px';
}
.bx-v3::after {
  content: '8px';
}
.bx--tokens.ge3 .bx-v3::after {
  content: '13px';
}
.bx--tokens[data-step='1'] .bx-tk__row[data-r='1'],
.bx--tokens[data-step='2'] .bx-tk__row[data-r='2'],
.bx--tokens[data-step='3'] .bx-tk__row[data-r='3'] {
  background: color-mix(in oklab, var(--bx-brand) 10%, var(--bx-card));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bx-brand) 40%, transparent);
}
.bx-tk__arrow {
  position: absolute;
  left: 167px;
  top: 95px;
  width: 18px !important;
  height: 18px !important;
  fill: none;
  stroke: var(--bx-mut);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}
.bx-tk__ui {
  left: 190px;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: var(--bx-gap);
  width: 150px;
  padding: 14px;
}
.bx-tk__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: var(--bx-r);
  background: var(--bx-acc);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--bx-acc) 70%, transparent);
}
.bx-tk__in {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--bx-r);
  border: 1.5px solid var(--bx-acc);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--bx-acc) 14%, transparent);
  font-size: 9.5px;
  color: var(--bx-mut);
}
.bx-tk__row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bx-tk__tg {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--bx-acc);
}
.bx-tk__tg i {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
}
.bx-tk__badge {
  padding: 3px 8px;
  border-radius: calc(var(--bx-r) * 0.7);
  background: color-mix(in oklab, var(--bx-acc) 12%, var(--bx-card));
  color: var(--bx-acc);
  font-size: 9.5px;
  font-weight: 500;
}
.bx-tk__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bx-soft);
  overflow: hidden;
}
.bx-tk__bar i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 3px;
  background: var(--bx-acc);
}

/* ================= components ================= */
.bx-cp__stage {
  left: 0;
  top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 166px;
  background-color: var(--bx-card);
  background-image: radial-gradient(var(--bx-line) 1px, transparent 1px);
  background-size: 12px 12px;
}
.bx-cp__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1.5px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.7);
  transition: all 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}
/* steps: 0 solid M, 1 outline M, 2 outline L, 3 soft L hover, 4 solid S off */
.bx--comps[data-step='1'] .bx-cp__btn,
.bx--comps[data-step='2'] .bx-cp__btn {
  background: transparent;
  color: #2563eb;
  box-shadow: none;
}
.bx--comps[data-step='2'] .bx-cp__btn,
.bx--comps[data-step='3'] .bx-cp__btn {
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
  border-radius: 10px;
}
.bx--comps[data-step='3'] .bx-cp__btn {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}
.bx--comps[data-step='4'] .bx-cp__btn {
  height: 26px;
  padding: 0 12px;
  font-size: 10px;
  background: #c9d3e3;
  border-color: #c9d3e3;
  color: #fff;
  box-shadow: none;
}
.bx-cp__panel {
  left: 190px;
  top: 8px;
  width: 150px;
  padding: 9px 10px 10px;
}
.bx-cp__h {
  margin-bottom: 4px !important;
  font-size: 10.5px;
  font-weight: 600;
}
.bx-cp__ctl {
  margin-top: 6px;
}
.bx-cp__ctl small {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  color: var(--bx-mut);
}
.bx-cp__seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2px;
  border-radius: 7px;
  background: var(--bx-soft);
}
.bx-cp__seg span {
  position: relative;
  z-index: 1;
  padding: 4px 0;
  text-align: center;
  font-size: 9px;
  color: var(--bx-mut);
  transition: color 0.4s;
}
.bx-cp__seg i {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: 5px;
  background: var(--bx-card);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}
/* variant: 0 solid, 1-2 outline, 3 soft, 4 solid */
.bx--comps[data-step='1'] .bx-cp__seg--v i,
.bx--comps[data-step='2'] .bx-cp__seg--v i {
  transform: translateX(100%);
}
.bx--comps[data-step='3'] .bx-cp__seg--v i {
  transform: translateX(200%);
}
/* size: M, M, L, L, S */
.bx-cp__seg--s i {
  transform: translateX(100%);
}
.bx--comps[data-step='2'] .bx-cp__seg--s i,
.bx--comps[data-step='3'] .bx-cp__seg--s i {
  transform: translateX(200%);
}
.bx--comps[data-step='4'] .bx-cp__seg--s i {
  transform: none;
}
/* state: default, default, default, hover, off */
.bx--comps[data-step='3'] .bx-cp__seg--t i {
  transform: translateX(100%);
}
.bx--comps[data-step='4'] .bx-cp__seg--t i {
  transform: translateX(200%);
}

/* ================= patterns ================= */
.bx-pt__card {
  left: 74px;
  top: 6px;
  width: 192px;
  height: 198px;
  transition:
    border-color 0.5s,
    box-shadow 0.5s;
}
.bx--patterns.ge3 .bx-pt__card {
  border-color: color-mix(in oklab, var(--bx-brand) 45%, var(--bx-line));
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--bx-brand) 12%, transparent),
    var(--bx-sh);
}
.bx-pt__title {
  position: absolute;
  left: 16px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bx-pt__title b {
  width: 70px;
  height: 9px;
  border-radius: 3px;
  background: var(--bx-ink);
}
.bx-pt__title i {
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: var(--bx-line);
}
.bx-pt__slot,
.bx-pt__p {
  position: absolute;
  left: 16px;
  width: 160px;
  border-radius: 7px;
}
.bx-pt__slot {
  border: 1.5px dashed var(--bx-line);
}
.bx-pt__s1,
.bx-pt__p1 {
  top: 48px;
  height: 28px;
}
.bx-pt__s2,
.bx-pt__p2 {
  top: 84px;
  height: 28px;
}
.bx-pt__s3,
.bx-pt__p3 {
  top: 122px;
  height: 18px;
}
.bx-pt__s4,
.bx-pt__p4 {
  top: 152px;
  height: 30px;
}
.bx-pt__p {
  display: flex;
  align-items: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.34, 1.25, 0.64, 1),
    opacity 0.4s;
}
.bx-pt__in {
  padding: 0 9px;
  border: 1px solid #d0d5dd;
  background: var(--bx-card);
  font-size: 9.5px;
  color: var(--bx-mut);
}
.bx-pt__p1 {
  transform: translate(-110px, -20px) rotate(-8deg);
}
.bx-pt__p2 {
  transform: translate(-120px, 30px) rotate(6deg);
}
.bx-pt__ck {
  gap: 6px;
  font-size: 9.5px;
  color: var(--bx-mut);
  transform: translate(120px, -10px) rotate(6deg);
}
.bx-pt__ck i {
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
}
.bx-pt__btn {
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  transform: translate(130px, 30px) rotate(-6deg);
}
.bx--patterns.ge1 .bx-pt__p1,
.bx--patterns.ge1 .bx-pt__p2,
.bx--patterns.ge2 .bx-pt__p3,
.bx--patterns.ge2 .bx-pt__p4 {
  opacity: 1;
  transform: none;
}
.bx--patterns.ge1 .bx-pt__p2,
.bx--patterns.ge2 .bx-pt__p4 {
  transition-delay: 0.12s;
}
.bx-pt__tag {
  position: absolute;
  left: 214px;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 9.5px;
  font-weight: 500;
  box-shadow: 0 10px 20px -8px rgba(16, 24, 40, 0.5);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition:
    opacity 0.4s,
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bx-pt__tag i {
  width: 12px;
  height: 12px;
  color: #6ee7b7;
}
.bx--patterns.ge3 .bx-pt__tag {
  opacity: 1;
  transform: none;
}

/* ================= icons ================= */
.bx-ic__grid {
  left: 0;
  top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 34px);
  grid-auto-rows: 34px;
  gap: 4px;
  padding: 10px;
  color: var(--bx-mut);
}
.bx-ic__grid > span {
  position: relative;
  z-index: 1;
  padding: 9px;
}
.bx-ic__hl {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--bx-brand) 14%, var(--bx-card));
  box-shadow: inset 0 0 0 1.5px var(--bx-brand);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
/* picks: heart (0,1) lock (1,3) camera (2,2) user (0,4) chat (2,0); cell pitch 38px */
.bx--icons[data-step='0'] .bx-ic__hl {
  transform: translate(38px, 0);
}
.bx--icons[data-step='1'] .bx-ic__hl {
  transform: translate(114px, 38px);
}
.bx--icons[data-step='2'] .bx-ic__hl {
  transform: translate(76px, 76px);
}
.bx--icons[data-step='3'] .bx-ic__hl {
  transform: translate(152px, 0);
}
.bx--icons[data-step='4'] .bx-ic__hl {
  transform: translate(0, 76px);
}
.bx-ic__insp {
  left: 222px;
  top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 118px;
  height: 166px;
  padding: 12px;
}
.bx-ic__view {
  position: relative;
  width: 94px;
  height: 84px;
  border-radius: 10px;
  background-color: var(--bx-soft);
  background-image: linear-gradient(var(--bx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bx-line) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: center;
}
.bx-ic__big {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  color: var(--bx-brand);
  opacity: 0;
  transform: scale(0.6) rotate(-10deg);
  transition:
    opacity 0.35s,
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bx--icons[data-step='0'] .bx-ic__big[data-k='0'],
.bx--icons[data-step='1'] .bx-ic__big[data-k='1'],
.bx--icons[data-step='2'] .bx-ic__big[data-k='2'],
.bx--icons[data-step='3'] .bx-ic__big[data-k='3'],
.bx--icons[data-step='4'] .bx-ic__big[data-k='4'] {
  opacity: 1;
  transform: none;
}
.bx-ic__name {
  margin-top: 10px;
  font:
    600 11px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.bx--icons[data-step='0'] .bx-ic__name::after {
  content: 'heart';
}
.bx--icons[data-step='1'] .bx-ic__name::after {
  content: 'lock';
}
.bx--icons[data-step='2'] .bx-ic__name::after {
  content: 'camera';
}
.bx--icons[data-step='3'] .bx-ic__name::after {
  content: 'user';
}
.bx--icons[data-step='4'] .bx-ic__name::after {
  content: 'chat';
}
.bx-ic__meta {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.bx-ic__meta em {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bx-soft);
  font:
    400 8.5px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-style: normal;
  color: var(--bx-mut);
}

/* ================= templates ================= */
.bx-tp__win {
  left: 10px;
  top: 10px;
  width: 320px;
  height: 190px;
  overflow: hidden;
}
.bx-tp__bar {
  display: flex;
  gap: 4px;
  height: 18px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--bx-line);
}
.bx-tp__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bx-line);
}
.bx-tp__body {
  display: flex;
  height: calc(100% - 18px);
}
.bx-tp__side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 64px;
  padding: 10px 8px;
  border-right: 1px solid var(--bx-line);
}
.bx-tp__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 10px;
}
/* skeleton look, then real content as steps advance */
.bx-tp__side b,
.bx-tp__side i,
.bx-tp__head b,
.bx-tp__head em,
.bx-tp__stat i,
.bx-tp__stat b,
.bx-tp__stat small {
  display: block;
  border-radius: 4px;
  background: var(--bx-soft);
  transition:
    background-color 0.6s,
    width 0.6s;
}
.bx-tp__side b {
  width: 34px;
  height: 10px;
}
.bx-tp__side i {
  width: 44px;
  height: 6px;
}
.bx--templates.ge1 .bx-tp__side b {
  background: #2563eb;
}
.bx--templates.ge1 .bx-tp__side i {
  background: var(--bx-line);
}
.bx--templates.ge1 .bx-tp__side i:nth-of-type(1) {
  background: color-mix(in oklab, #2563eb 35%, var(--bx-card));
}
.bx-tp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bx-tp__head b {
  width: 90px;
  height: 10px;
}
.bx-tp__head em {
  width: 46px;
  height: 16px;
  border-radius: 5px;
}
.bx--templates.ge1 .bx-tp__head b {
  background: var(--bx-ink);
}
.bx--templates.ge1 .bx-tp__head em {
  background: #2563eb;
}
.bx-tp__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bx-tp__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  padding: 7px;
  border: 1px solid var(--bx-line);
  border-radius: 7px;
}
.bx-tp__stat i {
  width: 12px;
  height: 12px;
}
.bx-tp__stat b {
  width: 36px;
  height: 7px;
}
.bx-tp__stat small {
  width: 22px;
  height: 5px;
}
.bx--templates.ge2 .bx-tp__stat b {
  background: var(--bx-ink);
}
.bx--templates.ge2 .bx-tp__stat small {
  background: var(--bx-line);
}
.bx--templates.ge2 .bx-tp__stat1 i {
  background: #3b82f6;
}
.bx--templates.ge2 .bx-tp__stat2 i {
  background: #12b76a;
}
.bx--templates.ge2 .bx-tp__stat3 i {
  background: #f79009;
}
.bx-tp__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  padding: 8px;
  border: 1px solid var(--bx-line);
  border-radius: 7px;
}
.bx-tp__chart i {
  flex: 1;
  height: 18%;
  border-radius: 3px;
  background: var(--bx-soft);
  transition:
    height 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) calc(var(--k) * 60ms),
    background-color 0.5s;
}
.bx--templates.ge3 .bx-tp__chart i {
  height: var(--h);
  background: color-mix(in oklab, #3b82f6 45%, var(--bx-card));
}
.bx--templates.ge3 .bx-tp__chart i:nth-child(6) {
  background: #2563eb;
}
/* gentle shimmer while it is still a wireframe */
.bx--templates[data-step='0'] .bx-tp__win::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  animation: bx-shimmer 1.4s ease-in-out infinite;
}
html[data-px-theme='dark'] .bx--templates[data-step='0'] .bx-tp__win::after {
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
}
@keyframes bx-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* ================= guidelines ================= */
.bx-gd__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  text-align: center;
}
.bx-gd__title span,
.bx-gd__rule {
  opacity: 0;
  transition:
    opacity 0.45s,
    transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.bx-gd__title span {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bx-mut);
  transform: translateY(4px);
}
.bx--guide[data-step='0'] [data-k='0'],
.bx--guide[data-step='1'] [data-k='1'],
.bx--guide[data-step='2'] [data-k='2'] {
  opacity: 1;
  transform: none;
}
.bx-gd__card {
  top: 26px;
  width: 160px;
  height: 178px;
  padding: 10px;
}
.bx-gd__card--do {
  left: 0;
}
.bx-gd__card--dont {
  left: 176px;
}
.bx-gd__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.bx-gd__badge i {
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 50%;
  color: #fff;
}
.bx-gd__card--do .bx-gd__badge {
  background: #ecfdf3;
  color: #067647;
}
.bx-gd__card--do .bx-gd__badge i {
  background: #12b76a;
}
.bx-gd__card--dont .bx-gd__badge {
  background: #fef3f2;
  color: #b42318;
}
.bx-gd__card--dont .bx-gd__badge i {
  background: #f04438;
}
.bx-gd__card--do {
  border-top: 3px solid #12b76a;
}
.bx-gd__card--dont {
  border-top: 3px solid #f04438;
}
.bx-gd__rule {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 40px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(6px);
}
.bx-gd__rule em {
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  color: var(--bx-mut);
}
.bx-gd__cbtn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
}
.bx-gd__card--dont .bx-gd__cbtn {
  background: #e0e3ef;
  color: #b8bdd0;
}
.bx-gd__tgt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  outline: 1.5px dashed #12b76a;
  outline-offset: 3px;
}
.bx-gd__tgt i {
  width: 22px;
  height: 22px;
  color: #2563eb;
}
.bx-gd__card--dont .bx-gd__tgt {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  outline-color: #f04438;
  outline-offset: 1px;
}
.bx-gd__card--dont .bx-gd__tgt i {
  width: 14px;
  height: 14px;
}
.bx-gd__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 104px;
}
.bx-gd__stack i {
  height: 14px;
  border-radius: 4px;
  background: color-mix(in oklab, #3b82f6 25%, var(--bx-card));
}
.bx-gd__card--dont .bx-gd__stack i:nth-child(1) {
  margin-bottom: -5px;
}
.bx-gd__card--dont .bx-gd__stack i:nth-child(2) {
  margin-left: 14px;
  margin-bottom: 9px;
}

/* ================= host banners: one look on every docs page ================= */
.dp .dp-hero,
.dt .dt-hero,
.cmp .hero,
.gl-app .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 268px;
  margin: 0;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: radial-gradient(55% 95% at 82% 50%, rgba(96, 165, 250, 0.42), transparent 70%),
    radial-gradient(45% 80% at 8% -10%, rgba(147, 197, 253, 0.6), transparent 70%),
    radial-gradient(45% 80% at 45% 125%, rgba(125, 211, 252, 0.45), transparent 70%),
    linear-gradient(120deg, #eef4ff 0%, #edf4ff 45%, #e8f3ff 100%);
  container-type: inline-size;
}
/* fine dot grid fading toward the text */
.dp .dp-hero::before,
.dt .dt-hero::before,
.cmp .hero::before,
.gl-app .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
  pointer-events: none;
}
html[data-px-theme='dark'] .dp .dp-hero,
html[data-px-theme='dark'] .dt .dt-hero,
html[data-px-theme='dark'] .cmp .hero,
html[data-px-theme='dark'] .gl-app .hero {
  border-color: rgba(96, 165, 250, 0.2);
  background: radial-gradient(55% 95% at 82% 50%, rgba(59, 130, 246, 0.34), transparent 70%),
    radial-gradient(45% 80% at 8% -10%, rgba(37, 99, 235, 0.3), transparent 70%),
    radial-gradient(45% 80% at 45% 125%, rgba(56, 189, 248, 0.16), transparent 70%),
    linear-gradient(120deg, #0f1830 0%, #0f1d3d 45%, #0f1a33 100%);
}
html[data-px-theme='dark'] .dp .dp-hero::before,
html[data-px-theme='dark'] .dt .dt-hero::before,
html[data-px-theme='dark'] .cmp .hero::before,
html[data-px-theme='dark'] .gl-app .hero::before {
  background-image: radial-gradient(rgba(147, 197, 253, 0.14) 1px, transparent 1px);
}

/* text column */
.dp .dp-hero .dp-hero__text,
.dt .dt-hero .dt-hero__text,
.cmp .hero .hero__text,
.gl-app .hero .hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: min(440px, calc(100% - min(320px, 38%) - 40px));
}
.dp .dp-hero .dp-kicker,
.dt .dt-hero .dt-hero__cat,
.cmp .hero .hero__cat,
.gl-app .hero .eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}
.dp .dp-hero h1,
.dt .dt-hero .dt-hero__title,
.cmp .hero .hero__title,
.gl-app .hero h1 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-content-primary, #101828);
  text-wrap: balance;
}
.dp .dp-hero .dp-hero__text p:not(.dp-kicker),
.dt .dt-hero .dt-hero__desc,
.cmp .hero .hero__desc,
.gl-app .hero .hero__sub {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #475467;
}
html[data-px-theme='dark'] .dp .dp-hero .dp-kicker,
html[data-px-theme='dark'] .dt .dt-hero .dt-hero__cat,
html[data-px-theme='dark'] .cmp .hero .hero__cat,
html[data-px-theme='dark'] .gl-app .hero .eyebrow {
  color: #93c5fd;
}
html[data-px-theme='dark'] .dp .dp-hero h1,
html[data-px-theme='dark'] .dt .dt-hero .dt-hero__title,
html[data-px-theme='dark'] .cmp .hero .hero__title,
html[data-px-theme='dark'] .gl-app .hero h1 {
  color: #f2f4f7;
}
html[data-px-theme='dark'] .dp .dp-hero .dp-hero__text p:not(.dp-kicker),
html[data-px-theme='dark'] .dt .dt-hero .dt-hero__desc,
html[data-px-theme='dark'] .cmp .hero .hero__desc,
html[data-px-theme='dark'] .gl-app .hero .hero__sub {
  color: #b4bccd;
}

@container (max-width: 720px) {
  .bx {
    display: none;
  }
  .dp-hero__text,
  .dt-hero__text,
  .hero__text,
  .hero__copy {
    max-width: none !important;
  }
}
@media (max-width: 700px) {
  .dp .dp-hero,
  .dt .dt-hero,
  .cmp .hero,
  .gl-app .hero {
    min-height: 0;
    padding: 28px 22px;
  }
  .dp .dp-hero h1,
  .dt .dt-hero .dt-hero__title,
  .cmp .hero .hero__title,
  .gl-app .hero h1 {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 900px) {
  .bx {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bx *,
  .bx *::before,
  .bx *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* the Pixels mark at the hub */
.bx-hub__core b.bx-hub__logo {
  padding: 0;
  background: none;
  overflow: hidden;
}
.bx-hub__logo img {
  display: block;
  width: 100%;
  height: 100%;
}
