.hr-help-root {
  --hr-help-primary: var(--primary, var(--hr-primary, #2563eb));
  --hr-help-on-primary: var(--business-brand-on, var(--hr-on-primary, #fff));
  --hr-help-ink: #0f172a;
  --hr-help-muted: #5b6b82;
  --hr-help-line: #d8e1ec;
  --hr-help-soft: #f4f7fb;
  color: var(--hr-help-ink);
  font: inherit;
}

.hr-help-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1180;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hr-help-launcher.is-magnetic {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: left 180ms ease, top 180ms ease, box-shadow 180ms ease;
}

.hr-help-launcher.is-magnetic.is-collapsed {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}

.hr-help-launcher.is-collapsed .hr-help-launcher-label {
  display: none;
}

.hr-help-launcher.is-magnetic.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
}

.hr-help-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.hr-help-launcher-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hr-help-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hr-help-primary);
  color: var(--hr-help-on-primary);
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .hr-help-launcher.is-magnetic.is-collapsed {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hr-help-launcher-icon {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }
}

.hr-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 23, 42, 0.48);
}

.hr-help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: min(440px, 100vw);
  background: #fff;
  box-shadow: -18px 0 44px rgba(15, 23, 42, 0.22);
  overflow: auto;
}

.hr-help-drawer[hidden],
.hr-help-backdrop[hidden] {
  display: none;
}

.hr-help-shell {
  width: 100%;
  min-width: 0;
  background: #fff;
}

.hr-help-root:not(.is-public) .hr-help-shell {
  border: 1px solid var(--hr-help-line);
  border-radius: 8px;
  overflow: hidden;
}

.hr-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--hr-help-line);
}

.hr-help-head-copy {
  min-width: 0;
}

.hr-help-eyebrow {
  margin: 0 0 5px;
  color: var(--hr-help-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hr-help-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hr-help-intro {
  margin: 7px 0 0;
  color: var(--hr-help-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hr-help-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hr-help-line);
  border-radius: 6px;
  background: #fff;
  color: var(--hr-help-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hr-help-tools {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hr-help-line);
  background: var(--hr-help-soft);
}

.hr-help-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hr-help-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #b9c7d8;
  border-radius: 6px;
  background: #fff;
  color: var(--hr-help-ink);
  font: inherit;
}

.hr-help-search input:focus {
  outline: 3px solid color-mix(in srgb, var(--hr-help-primary) 22%, transparent);
  border-color: var(--hr-help-primary);
}

.hr-help-search button,
.hr-help-action {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hr-help-primary);
  border-radius: 6px;
  background: var(--hr-help-primary);
  color: var(--hr-help-on-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hr-help-categories {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hr-help-category {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #cbd6e3;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.hr-help-category.is-active {
  border-color: var(--hr-help-primary);
  background: var(--hr-help-primary);
  color: var(--hr-help-on-primary);
}

.hr-help-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfd7f5;
  border-radius: 6px;
  background: #edf6ff;
  color: #174ea6;
  font-size: 13px;
  line-height: 1.45;
}

.hr-help-content {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.45fr);
  min-height: 390px;
}

.hr-help-topics {
  margin: 0;
  padding: 14px;
  border-right: 1px solid var(--hr-help-line);
  background: #fbfcfe;
  list-style: none;
}

.hr-help-topic {
  width: 100%;
  margin: 0 0 7px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #24334a;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
}

.hr-help-topic:hover,
.hr-help-topic.is-active {
  border-color: #c8d6e7;
  background: #fff;
  color: var(--hr-help-primary);
}

.hr-help-answer {
  min-width: 0;
  padding: 24px;
}

.hr-help-answer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  color: var(--hr-help-muted);
  text-align: center;
}

.hr-help-answer h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hr-help-answer p {
  margin: 0;
  color: #42526a;
  line-height: 1.65;
}

.hr-help-steps {
  margin: 18px 0 0;
  padding-left: 23px;
  color: #24334a;
}

.hr-help-steps li {
  margin: 0 0 9px;
  padding-left: 4px;
  line-height: 1.5;
}

.hr-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  text-decoration: none;
}

.hr-help-related {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hr-help-line);
}

.hr-help-related strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.hr-help-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hr-help-related button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hr-help-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.hr-help-loading {
  opacity: 0.62;
  pointer-events: none;
}

.hr-help-error {
  margin: 18px 24px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 720px) {
  .hr-help-launcher {
    left: 12px;
    bottom: 78px;
    min-height: 44px;
    padding: 0 13px;
    font-size: 14px;
  }

  .hr-help-launcher.is-magnetic.is-collapsed {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .hr-help-launcher-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .hr-help-drawer {
    top: max(12px, env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .hr-help-head,
  .hr-help-tools,
  .hr-help-answer {
    padding: 18px;
  }

  .hr-help-title {
    font-size: 21px;
  }

  .hr-help-search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .hr-help-search button {
    padding: 0;
    font-size: 0;
  }

  .hr-help-search button::before {
    content: "⌕";
    font-size: 24px;
  }

  .hr-help-content {
    display: block;
    min-height: 0;
  }

  .hr-help-topics {
    display: flex;
    gap: 7px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--hr-help-line);
    overflow-x: auto;
  }

  .hr-help-topic {
    flex: 0 0 min(78vw, 310px);
    margin: 0;
    background: #fff;
    border-color: #d8e1ec;
  }

  .hr-help-answer-empty {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hr-help-drawer {
    animation: hr-help-enter 180ms ease-out;
  }

  @keyframes hr-help-enter {
    from { transform: translateX(24px); opacity: 0.82; }
    to { transform: translateX(0); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-help-launcher.is-magnetic {
    transition: none;
  }
}
