.employee-onboarding-launch {
  position: relative;
  border-color: #d6a83c;
  background: #fff9e9;
  color: #71500a;
}

.employee-onboarding-launch[data-incomplete="true"]::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d89316;
}

.employee-onboarding:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.employee-onboarding.is-tour {
  pointer-events: none;
  place-items: end end;
}

.employee-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 27, 20, .58);
  backdrop-filter: blur(3px);
}

.employee-onboarding.is-tour .employee-onboarding-backdrop {
  background: rgba(4, 27, 20, .28);
  backdrop-filter: none;
}

.employee-onboarding-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(620px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(103, 148, 132, .55);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(3, 32, 23, .30);
  color: #102820;
  pointer-events: auto;
}

.employee-onboarding.is-tour .employee-onboarding-card {
  width: min(460px, calc(100vw - 32px));
  margin: 0 18px 18px 0;
  border-radius: 16px;
}

.employee-onboarding-card > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  gap: 13px;
  align-items: center;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e2ebe7;
  background: linear-gradient(135deg, #f8fcfa, #fffaf0);
}

.employee-onboarding-mark {
  display: grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #e5b445;
  color: #08271e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.employee-onboarding-card h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.employee-onboarding-card header small {
  color: #7b5a13;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.employee-onboarding-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe6e1;
  border-radius: 10px;
  background: #fff;
  color: #52635d;
  font-size: 22px;
  cursor: pointer;
}

.employee-onboarding-content {
  display: grid;
  gap: 15px;
  padding: 20px 24px;
}

.employee-onboarding-content > p {
  margin: 0;
  color: #42554e;
  line-height: 1.55;
}

.employee-onboarding-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.employee-onboarding-checklist span {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dce8e3;
  border-radius: 11px;
  background: #f8fbfa;
  color: #24443a;
  font-size: 12px;
  font-weight: 750;
}

.employee-onboarding-checklist span::before {
  content: "✓";
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e2f4ed;
  color: #087552;
}

.employee-onboarding-note {
  padding: 11px 12px;
  border-left: 3px solid #d7aa43;
  border-radius: 0 8px 8px 0;
  background: #fffaf0;
  font-size: 12px;
}

.employee-onboarding-card > footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 24px 22px;
  border-top: 1px solid #e2ebe7;
}

.employee-onboarding-card > footer button {
  min-height: 42px;
}

.employee-onboarding-spotlight:not([hidden]) {
  position: fixed;
  z-index: 1395;
  border: 3px solid #e5b445;
  border-radius: 13px;
  box-shadow: 0 0 0 6px rgba(229, 180, 69, .24), 0 12px 38px rgba(4, 41, 30, .24);
  pointer-events: none;
  transition: inset .18s ease, width .18s ease, height .18s ease;
}

body.employee-onboarding-open {
  overflow: hidden;
}

body.employee-onboarding-tour-open {
  overflow: auto;
}

@media (max-width: 720px) {
  .employee-onboarding:not([hidden]) { padding: 10px; }
  .employee-onboarding.is-tour { place-items: end center; }
  .employee-onboarding.is-tour .employee-onboarding-card {
    width: calc(100vw - 20px);
    max-height: min(58vh, 520px);
    margin: 0;
  }
  .employee-onboarding-card > header { padding: 17px 16px 13px; }
  .employee-onboarding-content { padding: 16px; }
  .employee-onboarding-checklist { grid-template-columns: 1fr; }
  .employee-onboarding-card > footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 16px;
  }
  #employeeOnboardingNext { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .employee-onboarding-spotlight:not([hidden]) { transition: none; }
}
