.silepi-pdf-toolkit{max-width:1000px;margin:20px auto;padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 8px 30px rgba(0,0,0,.06);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033}
.spt-head h2{margin:0 0 6px;font-size:30px}.spt-head p{margin:0 0 20px;color:#64748b}
.spt-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;margin-bottom:18px}.spt-tab{border:1px solid #cbd5e1;background:#f8fafc;color:#334155;padding:13px 16px;font-weight:800;cursor:pointer;border-radius:11px;font-size:15px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.spt-tab.active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.2)}
.spt-panel{display:none}.spt-panel.active{display:block}.spt-drop{min-height:130px;border:2px dashed #94a3b8;border-radius:16px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-align:center}.spt-drop input{display:none}.spt-drop span{font-size:19px;font-weight:800}.spt-drop small{color:#64748b}
.spt-filebar{display:flex;justify-content:space-between;align-items:center;margin:16px 0}.spt-ghost{border:1px solid #cbd5e1;background:#fff;border-radius:9px;padding:8px 12px;cursor:pointer}
.spt-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:16px}.spt-page-card{border:2px solid #e2e8f0;border-radius:12px;padding:9px;background:#fff;cursor:grab}.spt-page-card.selected{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.1)}.spt-page-card.dragging{opacity:.5}.spt-page-top{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:7px}.spt-thumb{background:#f1f5f9;border-radius:7px;min-height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden}.spt-thumb img{max-width:100%;max-height:210px}.spt-page-foot{font-size:11px;color:#64748b;margin-top:6px}
.spt-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.spt-action,.spt-primary{border:0;border-radius:10px;padding:12px 14px;font-weight:800;cursor:pointer}.spt-action{background:#eef2f7;color:#172033;border:1px solid #d8e0ea}.spt-primary{background:#2563eb;color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.18)}.spt-wide{width:100%;margin-top:18px}.spt-action:disabled,.spt-primary:disabled{opacity:.5;cursor:not-allowed}
.spt-help{margin-top:16px;padding:12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:13px;line-height:1.5}.spt-status{min-height:22px;margin-top:16px;font-weight:700}.spt-status.ok{color:#15803d}.spt-status.error{color:#b91c1c}
.spt-image-list{margin-top:14px;display:flex;flex-direction:column;gap:8px}.spt-img-row{display:grid;grid-template-columns:30px 54px 1fr 34px;gap:10px;align-items:center;padding:8px;border:1px solid #e2e8f0;border-radius:10px}.spt-img-row img{width:54px;height:54px;object-fit:cover;border-radius:7px}.spt-img-row button{border:0;background:#fee2e2;border-radius:8px;font-size:18px;cursor:pointer}
.spt-image-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.spt-image-options label{font-weight:700}.spt-image-options select,.spt-image-options input{width:100%;box-sizing:border-box;margin-top:5px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
@media(max-width:700px){.silepi-pdf-toolkit{margin:10px;padding:17px}.spt-pages{grid-template-columns:repeat(2,1fr)}.spt-image-options{grid-template-columns:1fr 1fr}.spt-actions>*{flex:1 1 45%}}
@media(max-width:430px){.spt-pages{grid-template-columns:1fr 1fr}.spt-image-options{grid-template-columns:1fr}.spt-actions>*{flex-basis:100%}}
@media(max-width:430px){.spt-tabs{grid-template-columns:1fr}.spt-tab{width:100%}}
