.tpdf { max-width: 720px; margin: 0 auto; }
.tpdf-drop { display: block; border: 2px dashed #9aa4b2; border-radius: 12px; padding: 40px 16px;
  text-align: center; cursor: pointer; transition: background .15s; }
.tpdf-drop.over, .tpdf-drop:hover { background: #f1f5f9; }
.tpdf-drop small { display: block; margin-top: 6px; color: #64748b; }
.tpdf-list { list-style: none; padding: 0; margin: 16px 0; }
.tpdf-list li { display: flex; gap: 6px; align-items: center; padding: 8px 10px;
  border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 6px; }
.tpdf-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Theme button styles are strong, so these selectors are scoped tightly. */
.tpdf .tpdf-list button { padding: 4px 10px; background: #fff; color: #356df1; border: 1px solid #356df1;
  border-radius: 6px; cursor: pointer; line-height: 1.2; }
.tpdf .tpdf-list button:hover { background: #356df1; color: #fff; }
.tpdf .tpdf-list button[data-a="del"] { color: #c62828; border-color: #c62828; }
.tpdf .tpdf-list button[data-a="del"]:hover { background: #c62828; color: #fff; }

.tpdf button.tpdf-run { padding: 12px 24px; font-size: 16px; font-weight: 600; border: 0; border-radius: 6px;
  background: #356df1; color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(53, 109, 241, .35);
  transition: background .15s, box-shadow .15s; }
.tpdf button.tpdf-run:hover:not(:disabled) { background: #2453c9; box-shadow: 0 4px 12px rgba(53, 109, 241, .45); }
.tpdf button.tpdf-run:disabled { background: #e2e8f0; color: #94a3b8; box-shadow: none; cursor: not-allowed; }
.tpdf button.tpdf-run.busy { background: #356df1; color: #fff; opacity: .75; cursor: progress; }
.tpdf-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tpdf-controls select { margin-left: 6px; }
.tpdf-note, .tpdf-status { font-size: 14px; color: #64748b; }
.tpdf-status { color: inherit; font-weight: 600; }