.spdf-images-pdf {
    width: min(1150px, calc(100% - 32px));
    margin: 56px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}
.spdf-images-pdf__header { margin-bottom: 32px; text-align: center; }
.spdf-images-pdf__header h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 56px); line-height: 1.08; }
.spdf-images-pdf__header p { margin: 0; color: #6b7280; font-size: 18px; }
.spdf-images-pdf__upload {
    padding: 72px 24px;
    border: 3px dashed #c4b5fd;
    border-radius: 22px;
    background: #f5f3ff;
    text-align: center;
    transition: .2s ease;
}
.spdf-images-pdf__upload.is-dragging { border-color: #6d28d9; background: #ede9fe; }
.spdf-images-pdf__upload p { margin: 17px 0 0; color: #6b7280; }
.spdf-images-pdf__primary,
.spdf-images-pdf__controls button {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}
.spdf-images-pdf__primary { background: #6d28d9; color: #fff; font-size: 17px; }
.spdf-images-pdf__primary:hover { background: #5b21b6; }
.spdf-images-pdf__workspace {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31,41,55,.08);
}
.spdf-images-pdf__controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.spdf-images-pdf__controls label { display: grid; gap: 7px; color: #4b5563; font-size: 14px; font-weight: 700; }
.spdf-images-pdf__controls select {
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}
.spdf-images-pdf__controls button { border: 1px solid #ddd6fe; background: #fff; color: #5b21b6; }
.spdf-images-pdf__controls button:first-of-type { margin-left: auto; }
.spdf-images-pdf__summary { margin: 20px 0 6px; color: #6b7280; font-size: 14px; font-weight: 700; }
.spdf-images-pdf__status { min-height: 22px; margin: 8px 0 12px; color: #5b21b6; font-weight: 700; text-align: center; }
.spdf-images-pdf__status.is-error { color: #b91c1c; }
.spdf-images-pdf__progress { height: 10px; overflow: hidden; border-radius: 999px; background: #ede9fe; }
.spdf-images-pdf__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #6d28d9; transition: width .2s ease; }
.spdf-images-pdf__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 16px; margin-top: 22px; }
.spdf-images-pdf__card {
    position: relative;
    display: grid;
    grid-template-rows: 160px auto;
    padding: 10px;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    background: #fafafa;
    cursor: grab;
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}
.spdf-images-pdf__card.is-dragging { opacity: .4; }
.spdf-images-pdf__card.is-target { border-color: #6d28d9; transform: translateY(3px); }
.spdf-images-pdf__card img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.spdf-images-pdf__order {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #6d28d9;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.spdf-images-pdf__info { display: grid; min-width: 0; gap: 4px; margin-top: 10px; padding-right: 34px; }
.spdf-images-pdf__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.spdf-images-pdf__info span { color: #6b7280; font-size: 12px; }
.spdf-images-pdf__remove {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 22px;
    cursor: pointer;
}
.spdf-images-pdf__download { display: block; margin: 26px auto 0; }
.spdf-images-pdf button:disabled,
.spdf-images-pdf select:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 700px) {
    .spdf-images-pdf { width: min(100% - 16px, 1150px); margin: 34px auto; }
    .spdf-images-pdf__workspace { padding: 15px; }
    .spdf-images-pdf__controls { align-items: stretch; flex-direction: column; }
    .spdf-images-pdf__controls button:first-of-type { margin-left: 0; }
    .spdf-images-pdf__controls select,
    .spdf-images-pdf__controls button,
    .spdf-images-pdf__download { width: 100%; }
}
