.nexus-pdf-workflow .nexus-pdf-job {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #2d4b68;
  border-radius: 12px;
  background: #0c2033;
  color: #c7def4;
}
.nexus-pdf-job p {
  margin: 0 0 8px;
  font: 13px/1.5 system-ui;
  overflow-wrap: anywhere;
}
.nexus-pdf-job p.error {
  color: #ffb5bd;
}
.nexus-pdf-job > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nexus-pdf-job button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #406b94;
  border-radius: 9px;
  color: #def0ff;
  background: #163955;
  font: 12px/1.4 system-ui;
  cursor: pointer;
}
.nexus-pdf-job progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 8px 0 12px;
  accent-color: #64baff;
}
.nexus-pdf-workflow [hidden] {
  display: none !important;
}
.nexus-pdf-job button:disabled {
  opacity: 0.5;
  cursor: default;
}
.nexus-pdf-workflow :focus-visible {
  outline: 2px solid #8edaff;
  outline-offset: 3px;
}
.nexus-pdf-limit-note {
  color: #a8bfd8;
  font: 13px/1.6 system-ui;
  margin: 0 0 16px;
}
.nexus-pdf-limit-note summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
.nexus-pdf-limit-note a {
  color: #94d6ff;
  text-decoration: underline;
}
.nexus-pdf-workflow .pdf-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.nexus-pdf-workflow .pdf-name {
  white-space: normal;
  overflow-wrap: anywhere;
}
.nexus-pdf-workflow .pdf-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
.nexus-pdf-workflow .pdf-actions button {
  min-width: 44px;
  min-height: 44px;
}
.nexus-pdf-workflow .pdf-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.nexus-pdf-workflow .page-grid {
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
}
.nexus-pdf-workflow .page-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  aspect-ratio: auto;
  padding: 10px;
  margin: 0;
  cursor: pointer;
}
.nexus-pdf-workflow .page-card input {
  position: static;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}
.nexus-pdf-workflow .selection-summary span {
  overflow-wrap: anywhere;
}
.nexus-pdf-workflow .result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nexus-pdf-workflow #resultList {
  max-height: none;
  overflow: visible;
  display: block;
}
.nexus-pdf-workflow .result-actions > button {
  flex: 1 1 140px;
  white-space: normal;
  min-height: 44px;
}
.nexus-pdf-workflow .pdf-owned-exports .nexus-export-card {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.nexus-pdf-workflow .pdf-owned-exports label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  overflow-wrap: anywhere;
}
.nexus-pdf-workflow .pdf-owned-exports label input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nexus-pdf-workflow .pdf-owned-exports label strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nexus-pdf-workflow .pdf-owned-exports .nexus-export-actions a {
  min-height: 44px;
  align-content: center;
}
.nexus-pdf-workflow .pdf-zip-export a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
  white-space: normal;
}
.nexus-pdf-workflow .nexus-pdf-source-preview {
  border: 1px solid #305372;
  background: #0b1b2b;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: #cce4fb;
}
.nexus-pdf-source-preview summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font: 13px/1.5 system-ui;
}
.pdf-preview-controls {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.pdf-preview-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font: 12px/1.5 system-ui;
}
.pdf-preview-controls select,
.pdf-preview-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: #d5eaff;
  background: #102941;
  border: 1px solid #3b6084;
  border-radius: 8px;
  padding: 8px;
  font: 14px system-ui;
}
.pdf-preview-controls > div {
  display: flex;
  align-items: end;
  gap: 10px;
}
.pdf-preview-controls > div label {
  flex: 1;
  max-width: 130px;
}
.pdf-preview-controls button {
  min-width: 44px;
  min-height: 44px;
  color: #d5eaff;
  background: #173d5e;
  border: 1px solid #416d94;
  border-radius: 8px;
}
.pdf-preview-canvas {
  width: 100%;
  overflow: hidden;
}
.pdf-preview-canvas canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.nexus-pdf-source-preview p {
  font: 12px/1.6 system-ui;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .nexus-pdf-workflow .nexus-app-notice {
    bottom: calc(
      260px + env(safe-area-inset-bottom) + var(--pdf-keyboard, 0px)
    );
    z-index: 125;
  }
  body.nexus-studio-v4.nexus-pdf-workflow {
    padding-bottom: calc(245px + env(safe-area-inset-bottom)) !important;
  }
  .nexus-pdf-workflow .nexus-pdf-job {
    position: fixed;
    z-index: 120;
    bottom: calc(78px + env(safe-area-inset-bottom) + var(--pdf-keyboard, 0px));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    margin: 0;
    padding: 10px;
    box-shadow: 0 6px 20px #0005;
  }
  .nexus-pdf-job > div {
    flex-wrap: nowrap;
  }
  .nexus-pdf-job button {
    flex: 1;
    min-width: 0;
    padding: 8px;
  }
  .nexus-pdf-workflow .lab-canvas,
  .nexus-pdf-workflow .lab-options,
  .nexus-pdf-workflow .lab-canvas-body,
  .nexus-pdf-workflow .lab-option-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }
  .nexus-pdf-workflow .pdf-actions {
    width: 100%;
    justify-content: end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nexus-pdf-job progress {
    animation: none;
  }
}
@media print {
  .nexus-pdf-job,
  .nexus-pdf-source-preview {
    display: none !important;
  }
}
