.spdf-convert {
    width: min(1100px, calc(100% - 32px));
    margin: 56px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}
.spdf-convert__header { text-align: center; margin-bottom: 32px; }
.spdf-convert__header h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 56px); line-height: 1.08; }
.spdf-convert__header p { margin: 0; color: #6b7280; font-size: 18px; }
.spdf-convert__upload {
    padding: 72px 24px;
    border: 3px dashed #c4b5fd;
    border-radius: 22px;
    background: #f5f3ff;
    text-align: center;
    transition: .2s ease;
}
.spdf-convert__upload.is-dragging { border-color: #6d28d9; background: #ede9fe; }
.spdf-convert__upload p { margin: 17px 0 0; color: #6b7280; }
.spdf-convert__primary,
.spdf-convert__controls button {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}
.spdf-convert__primary { background: #6d28d9; color: white; font-size: 17px; }
.spdf-convert__primary:hover { background: #5b21b6; }
.spdf-convert__workspace {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 32px rgba(31,41,55,.08);
}
.spdf-convert__controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.spdf-convert__controls label { display: grid; gap: 7px; color: #4b5563; font-size: 14px; font-weight: 700; }
.spdf-convert__controls select {
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: white;
}
.spdf-convert__controls button { margin-left: auto; border: 1px solid #ddd6fe; background: white; color: #5b21b6; }
.spdf-convert__status { min-height: 22px; margin: 20px 0 12px; color: #5b21b6; font-weight: 700; text-align: center; }
.spdf-convert__status.is-error { color: #b91c1c; }
.spdf-convert__progress { height: 10px; overflow: hidden; border-radius: 999px; background: #ede9fe; }
.spdf-convert__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #6d28d9; transition: width .2s ease; }
.spdf-convert__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 16px; margin-top: 22px; }
.spdf-convert__card { padding: 10px; border: 1px solid #ddd6fe; border-radius: 13px; background: #fafafa; text-align: center; }
.spdf-convert__card canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 9px; box-shadow: 0 3px 12px rgba(0,0,0,.12); background: white; }
.spdf-convert__card strong { font-size: 14px; }
.spdf-convert__download { display: block; margin: 26px auto 0; }
.spdf-convert button:disabled,
.spdf-convert select:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 650px) {
    .spdf-convert { width: min(100% - 16px, 1100px); margin: 34px auto; }
    .spdf-convert__workspace { padding: 15px; }
    .spdf-convert__controls { align-items: stretch; flex-direction: column; }
    .spdf-convert__controls button { margin-left: 0; }
    .spdf-convert__controls select,
    .spdf-convert__controls button,
    .spdf-convert__download { width: 100%; }
}
