/* One persistent work-area navigator, shown only while its section is in view. */
html .mrai-work-sticky-host {
  position: fixed;
  z-index: 900;
  top: var(--mrai-work-tabs-top, 80px);
  left: 50%;
  width: max-content;
  max-width: min(980px, calc(100% - 40px));
  transform: translateX(-50%);
  pointer-events: none;
}

html .mrai-work-sticky-host[hidden],
html .mrai-work-jump-slot[hidden] { display: none !important; }

html .mrai-work-sticky-host > .mrai-work-jump-nav {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px;
  gap: 3px;
  overflow-x: auto;
  border: 1px solid rgba(23, 23, 23, .08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 23, 23, .07);
  scrollbar-width: none;
  pointer-events: auto;
}

html .mrai-work-sticky-host .mrai-work-jump-nav::-webkit-scrollbar { display: none; }

html .mrai-work-sticky-host .mrai-work-jump-link {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #5e5e62;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

html .mrai-work-sticky-host .mrai-work-jump-link:is(:hover,:focus-visible),
html .mrai-work-sticky-host .mrai-work-jump-link.is-active {
  color: #171717;
  background: #f7f6f3;
}

html .mrai-work-sticky-host .mrai-work-jump-link:focus-visible {
  outline: 2px solid #ff7417;
  outline-offset: -2px;
}

html #creation .creation-scroll-card:not(.creation-scroll-card-intro) {
  scroll-margin-top: var(--mrai-work-jump-scroll-margin, 156px);
}

@media (max-width: 820px) {
  html .mrai-work-sticky-host { width: calc(100% - 40px); }
  html .mrai-work-sticky-host > .mrai-work-jump-nav { width: 100%; gap: 8px; }
  html .mrai-work-sticky-host .mrai-work-jump-link { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html .mrai-work-sticky-host .mrai-work-jump-link { transition: none; }
}
