.pdf-local-note {
  color: #a8c7e3;
  line-height: 1.7;
  font-size: 13px;
  overflow-wrap: anywhere;
}
/* Keep the real running-job controls below the fixed desktop header as well. */
@media (min-width: 701px) {
  .nexus-file-workflow:is(
    [data-offline-group="pdf-security"],
    [data-offline-group="pdf-raster"]
  ) {
    /* overflow-x:hidden creates a second, non-scrolling sticky ancestor. */
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
  .nexus-file-workflow:is(
      [data-offline-group="pdf-security"],
      [data-offline-group="pdf-raster"]
    )
    .nexus-file-job[aria-busy="true"] {
    position: sticky;
    top: calc(80px + env(safe-area-inset-top));
    z-index: 80;
  }
}
.nexus-file-workflow .lab-canvas-body .password-input-row {
  display: flex;
  gap: 8px;
}
.nexus-file-workflow .password-input-row input {
  min-width: 0;
  width: 100%;
}
.nexus-file-workflow .password-input-row button {
  min-width: 64px;
  min-height: 44px;
}
.nexus-file-workflow #downloadBtn {
  display: inline-flex;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nexus-file-workflow #pdfName {
  overflow-wrap: anywhere;
}
.nexus-file-workflow #generateOwnerPassword {
  min-height: 44px;
  margin-top: 10px;
}
.nexus-file-workflow #pdfPasswordRetry {
  min-height: 44px;
  margin-top: 12px;
}
.pdf-jpg-exports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pdf-jpg-exports article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #315473;
  border-radius: 12px;
  background: #102237;
  color: #d6eaff;
}
.pdf-jpg-exports img {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 180px;
  object-fit: contain;
}
.pdf-jpg-exports label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.pdf-jpg-exports input {
  width: 22px;
  height: 22px;
}
.pdf-jpg-exports a {
  display: block;
  min-height: 44px;
  overflow-wrap: anywhere;
  padding: 10px;
}
.pdf-jpg-exports p {
  font-size: 12px;
  line-height: 1.6;
  color: #abc5df;
}
.raster-transfer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #315473;
}
.raster-transfer summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  color: #b4dcff;
}
.raster-transfer label {
  display: block;
}
.raster-transfer select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 8px 0;
  padding: 8px;
  background: #0b192b;
  color: #dfedff;
  border: 1px solid #315473;
  border-radius: 8px;
}
.nexus-file-workflow .raster-transfer button {
  min-height: 44px !important;
  width: 100%;
  white-space: normal;
  padding: 10px;
  background: #132d48;
  color: #dfedff;
  border: 1px solid #365c7b;
  border-radius: 8px;
  font: inherit;
}
.raster-transfer button:disabled {
  opacity: 0.5;
}
.raster-transfer div {
  display: grid;
  gap: 8px;
}
.raster-transfer a,
.raster-transfer a:visited {
  color: #b4dcff;
}
.pdf-local-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pdf-local-actions button {
  min-height: 44px;
}
.nexus-file-workflow #pagesRange {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.nexus-file-workflow #results {
  max-height: none;
  overflow: visible;
}
@media (max-width: 760px) {
  .pdf-jpg-exports {
    grid-template-columns: 1fr;
  }
}

.nexus-file-workflow #pdfPasswordRetry {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nexus-file-workflow #clearBtn {
  min-height: 44px;
}
/* Compact page-selection/export toolbar, with the same actions and native links. */
.nexus-file-workflow #batchControls:not(.hidden) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  background: #102237;
  border: 1px solid #315473;
  border-radius: 14px;
}
.nexus-file-workflow #batchControls h2,
.nexus-file-workflow #selectionCount,
.nexus-file-workflow #pdfJPGZipSave {
  grid-column: 1/-1;
  margin: 0;
}
.nexus-file-workflow #batchControls button {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid #355e80;
  border-radius: 9px;
  background: #142f48;
  color: #d8eaff;
  font:
    500 12px/1.5 Inter,
    system-ui,
    sans-serif;
}
.nexus-file-workflow #batchControls :is(#zipSelectedBtn, #zipAllBtn) {
  background: #246cb9;
  border-color: #4d9de8;
  color: #fff;
}
