/* Independent modal styles; existing product screenshot zoom is untouched. */
html.workflow-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.workflow-lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #151719;
  color: #fff;
  overflow: hidden;
  font-family: var(--font-sans, system-ui, sans-serif);
}
.workflow-lightbox::backdrop {
  background: rgba(10, 12, 14, 0.96);
}
.workflow-lightbox[open] {
  display: block;
}
.workflow-lightbox * {
  box-sizing: border-box;
}
.workflow-lightbox__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}
.workflow-lightbox__toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: max(10px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) 10px
    max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #41464b;
  background: #151719;
  z-index: 1;
}
.workflow-lightbox__label {
  color: #dce2e5;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.workflow-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.workflow-lightbox button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.workflow-lightbox button:hover:not(:disabled) {
  background: #30363b;
}
.workflow-lightbox button:disabled {
  color: #7f8990;
  cursor: default;
}
.workflow-lightbox button:focus-visible,
.workflow-lightbox__stage:focus-visible {
  outline: 3px solid #f0a419;
  outline-offset: -3px;
}
.workflow-lightbox .workflow-lightbox__close {
  justify-self: end;
}
.workflow-lightbox__zoom {
  min-width: 48px;
  text-align: center;
  color: #dce2e5;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.workflow-lightbox__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.workflow-lightbox__stage.is-zoomed {
  cursor: grab;
}
.workflow-lightbox__stage.is-dragging {
  cursor: grabbing;
}
.workflow-lightbox__image-holder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.workflow-lightbox__image-holder img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.workflow-lightbox__image-holder img[hidden] {
  display: none;
}
.workflow-lightbox__status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80%, 420px);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #dce2e5;
  text-align: center;
  pointer-events: none;
}
.workflow-lightbox__status:empty {
  display: none;
}
.workflow-lightbox__footer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
  padding: 10px max(20px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid #41464b;
  background: #151719;
  z-index: 1;
}
.workflow-lightbox__caption-wrap {
  min-width: 0;
  text-align: center;
}
.workflow-lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.workflow-lightbox__counter {
  display: block;
  margin-top: 2px;
  color: #b6c0c6;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .workflow-lightbox__toolbar {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding-inline: max(8px, env(safe-area-inset-right));
  }
  .workflow-lightbox__label {
    font-size: 12px;
  }
  .workflow-lightbox__tools {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }
  .workflow-lightbox .workflow-lightbox__close {
    grid-column: 2;
    grid-row: 1;
  }
  .workflow-lightbox__footer {
    gap: 8px;
    padding-inline: max(8px, env(safe-area-inset-right));
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  .workflow-lightbox__toolbar,
  .workflow-lightbox__footer {
    padding-block: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-lightbox *,
  .workflow-lightbox *::before,
  .workflow-lightbox *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
