.editor-pdf-tools [hidden] {
  display: none !important;
}
.editor-pdf-tools .intro-hero {
  text-align: center;
  padding: 46px 0 30px;
}
.editor-pdf-tools h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin: 12px 0;
}
.editor-pdf-tools .subtitle {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
  color: #a4afbe;
}
.editor-pdf-tools .workbench-panel,
.editor-pdf-tools .workbench-info {
  display: block;
  background: #0d131c;
  border: 1px solid #26313e;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
}
.editor-pdf-tools .workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.editor-pdf-tools label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #cdd6e2;
}
.editor-pdf-tools input,
.editor-pdf-tools select,
.editor-pdf-tools textarea {
  background: #080d14;
  color: #edf3fb;
  border: 1px solid #344250;
  border-radius: 9px;
  padding: 11px 12px;
  max-width: 100%;
  min-width: 0;
  font: inherit;
}
.editor-pdf-tools input:focus-visible,
.editor-pdf-tools select:focus-visible,
.editor-pdf-tools textarea:focus-visible,
.editor-pdf-tools button:focus-visible {
  outline: 2px solid #83e5ce;
  outline-offset: 3px;
}
.editor-pdf-tools .workbench-code {
  width: 100%;
  min-height: 350px;
  resize: vertical;
  font:
    13px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
}
.editor-pdf-tools .workbench-toolbar,
.editor-pdf-tools .workbench-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.editor-pdf-tools .workbench-toolbar label {
  flex: 1;
  min-width: 160px;
}
.editor-pdf-tools .btn {
  border: 1px solid #344250;
  background: #151f2b;
  border-radius: 9px;
  color: #e1e9f3;
  min-height: 42px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.editor-pdf-tools .btn.primary {
  background: #82e7cf;
  color: #07140f;
  border-color: #82e7cf;
}
.editor-pdf-tools button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.editor-pdf-tools .workbench-status {
  min-height: 24px;
  line-height: 1.6;
  color: #a9e8d8;
  overflow-wrap: anywhere;
  margin: 10px 0 18px;
}
.editor-pdf-tools .workbench-status.error {
  color: #ffb8ba;
}
.editor-pdf-tools .workbench-note {
  font-size: 12px;
  line-height: 1.65;
  color: #a4afbe;
  overflow-wrap: anywhere;
}
.editor-pdf-tools .workbench-block {
  margin-bottom: 14px;
}
.editor-pdf-tools .workbench-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.editor-pdf-tools .workbench-info p {
  color: #a4afbe;
  font-size: 14px;
  line-height: 1.8;
}
.editor-pdf-tools .workbench-info h2 {
  margin: 8px 0 10px;
}
.editor-pdf-tools .workbench-info h2:not(:first-child) {
  margin-top: 25px;
}
.editor-pdf-tools .workbench-details {
  margin-top: 16px;
}
.editor-pdf-tools .workbench-details summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 700;
}
.editor-pdf-tools .workbench-details textarea {
  min-height: 150px;
}
.editor-pdf-tools .workbench-label {
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 8px;
  color: #cdd6e2;
}
@media (max-width: 700px) {
  .editor-pdf-tools .workbench-grid {
    grid-template-columns: 1fr;
  }
  .editor-pdf-tools .workbench-panel,
  .editor-pdf-tools .workbench-info {
    padding: 16px;
  }
  .editor-pdf-tools .workbench-code {
    min-height: 270px;
  }
  .editor-pdf-tools .workbench-actions .btn {
    flex: 1 1 auto;
  }
}
.pdf-file-picker {
  border: 1px dashed #526e86;
  border-radius: 12px;
  padding: 22px;
  background: #101b27;
}
.pdf-file-picker input {
  width: 100%;
}
.pdf-file-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdf-file-list li {
  border: 1px solid #344250;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: #101923;
}
.pdf-file-list li[draggable="true"] {
  cursor: grab;
}
.pdf-file-list .pdf-file-info {
  flex: 1;
  min-width: 160px;
  overflow-wrap: anywhere;
}
.pdf-file-list strong {
  display: block;
  font-size: 14px;
}
.pdf-file-list small {
  display: block;
  color: #a4afbe;
  margin-top: 5px;
}
.pdf-file-list .pdf-order-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pdf-file-list li.drag-over {
  border-color: #82e7cf;
  background: #19302e;
}
.pdf-file-list .btn {
  font-size: 12px;
  padding: 8px 10px;
}
.pdf-output-list {
  font-size: 13px;
  line-height: 1.8;
  color: #a4afbe;
  overflow-wrap: anywhere;
}
