.bb-onboarding-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: "Noto Sans TC", "DM Sans", system-ui, sans-serif;
}

.bb-onboarding-highlight {
  position: fixed;
  z-index: 2147483001;
  border: 2px solid rgba(215, 189, 98, 0.98);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 9999px rgba(11, 25, 45, 0.56),
    0 18px 52px rgba(12, 25, 45, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease, border-radius 180ms ease;
}

.bb-onboarding-popover {
  position: fixed;
  z-index: 2147483002;
  width: min(380px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(207, 216, 226, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: #1f2933;
  box-shadow: 0 24px 70px rgba(11, 25, 45, 0.26);
  pointer-events: auto;
}

.bb-onboarding-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf2ee;
  color: #27476f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.bb-onboarding-title {
  margin: 12px 0 8px;
  color: #142f4f;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.bb-onboarding-body {
  margin: 0;
  color: #5f6b78;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.bb-onboarding-progress {
  display: flex;
  gap: 6px;
  margin: 16px 0 4px;
}

.bb-onboarding-progress span {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: #dfe5ea;
}

.bb-onboarding-progress span.is-active {
  background: linear-gradient(90deg, #2f2a74, #226b50);
}

.bb-onboarding-dismiss {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 229, 234, 0.95);
  border-radius: 14px;
  background: #f8faf8;
  color: #4f5d68;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.bb-onboarding-dismiss input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #2f2a74;
}

.bb-onboarding-dismiss-text {
  min-width: 0;
}

.bb-onboarding-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.bb-onboarding-spacer {
  flex: 1;
}

.bb-onboarding-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  background: #f7f8f7;
  color: #193450;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.bb-onboarding-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.bb-onboarding-actions .bb-onboarding-next {
  border-color: transparent;
  background: linear-gradient(135deg, #302a73, #183f69);
  color: #fff;
  box-shadow: 0 12px 26px rgba(38, 43, 105, 0.22);
}

.bb-onboarding-actions .bb-onboarding-skip {
  color: #66717d;
}

@media (max-width: 640px) {
  .bb-onboarding-highlight {
    border-width: 2px;
    box-shadow:
      0 0 0 9999px rgba(11, 25, 45, 0.50),
      0 12px 34px rgba(12, 25, 45, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  }

  .bb-onboarding-popover {
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    padding: 16px;
    border-radius: 18px;
  }

  .bb-onboarding-title {
    font-size: 19px;
  }

  .bb-onboarding-body {
    font-size: 14px;
    line-height: 1.55;
  }

  .bb-onboarding-dismiss {
    margin-top: 12px;
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .bb-onboarding-actions {
    gap: 7px;
  }

  .bb-onboarding-actions button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
  }
}
