.tool-page:has(#reorder-workspace:not([hidden])){grid-template-columns:1fr}
#reorder-workspace{margin-top:16px;padding:16px;border-radius:12px;background:#fff}
#reorder-summary{font-size:17px;overflow-wrap:anywhere}
.reorder-actions,.reorder-moves{display:flex;gap:8px;flex-wrap:wrap}
#reorder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}
.reorder-card{min-width:0;padding:10px;border:1px solid #dce0ef;border-radius:10px;background:#f8f8fe}
.reorder-card[draggable=true] .reorder-thumb{cursor:grab}
.reorder-thumb{display:grid;place-items:center;height:180px;background:white;border-radius:8px}
.reorder-thumb canvas{max-width:100%;max-height:100%;object-fit:contain}
.reorder-target{outline:2px solid var(--blue,#5153de)}
.reorder-actions button,.reorder-moves button{padding:7px 10px;border:1px solid #ccd2e4;border-radius:6px;background:#fff;font:inherit}
.reorder-card p{font-size:13px}
.reorder-header,#reorder-jump{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.reorder-header{justify-content:space-between;align-items:center;margin-bottom:12px}
.reorder-header h2{margin:0}
.reorder-settings{background:#f3f7fc;border:1px solid #dbe4f3;border-radius:12px;padding:14px}
#reorder-jump{margin-top:12px}
#reorder-jump label{display:grid;gap:5px;font-size:14px;font-weight:600}
#reorder-jump input,#reorder-jump select{max-width:100%;min-height:36px;border:1px solid #b9c7dd;border-radius:8px;padding:5px 8px;background:#fff;font:inherit}
#reorder-position{width:90px}
#reorder-jump button,.reorder-header button{padding:7px 10px;border:1px solid #ccd2e4;border-radius:7px;background:#fff;font:inherit}
#reorder-state{margin:10px 0 0;color:#445672;font-size:14px}
.reorder-settings button:disabled,.reorder-moves button:disabled{opacity:.55}
.reorder-thumb{overflow:hidden}
